|
|
|
|
/home/brennan/Software/sensix/tools/sim/sim_phenomena.h File Reference#include <iostream>
#include <vector>
Go to the source code of this file.
|
Classes |
class | Phenomenon |
class | SensorData |
class | Sound |
class | Light |
class | Accel |
class | Mag |
class | Rad |
class | AmbientPhenomenon |
class | AmbientSound |
class | AmbientLight |
class | AmbientTemp |
class | AmbientRad |
Enumerations |
enum | {
TOS_ADC_PHOTO_PORT = 1,
TOS_ADC_TEMP_PORT = 2,
TOS_ADC_MIC_PORT = 3,
TOS_ADC_ACCEL_X_PORT = 4,
TOS_ADC_ACCEL_Y_PORT = 5,
TOS_ADC_MAG_X_PORT = 6,
TOS_ADC_MAG_Y_PORT = 8
} |
enum | Phenom {
NONE,
AMBSOUND,
AMBLIGHT,
AMBTEMP,
AMBRAD,
SOUND,
LIGHT,
ACCEL_X,
ACCEL_Y,
MAG_X,
MAG_Y,
RAD,
STARTSOUND,
STARTLIGHT,
STARTTEMP,
STARTRAD,
STARTACCEL_X,
STARTACCEL_Y,
STARTMAG_X,
STARTMAG_Y,
Phenom_MIN = NONE,
Phenom_MAX = STARTMAG_Y,
Phenom_SIZE = (Phenom_MAX - Phenom_MIN)
} |
Functions |
Phenom & | operator++ (Phenom &p) |
Phenom & | operator++ (Phenom &p, int) |
int | compute_adc (const char *scenario, const char *network, const char *adc) |
int | read_scenario (FILE *file, std::vector< SensorData > &data) |
Enumeration Type Documentation
- Enumerator:
-
TOS_ADC_PHOTO_PORT |
|
TOS_ADC_TEMP_PORT |
|
TOS_ADC_MIC_PORT |
|
TOS_ADC_ACCEL_X_PORT |
|
TOS_ADC_ACCEL_Y_PORT |
|
TOS_ADC_MAG_X_PORT |
|
TOS_ADC_MAG_Y_PORT |
|
Definition at line 44 of file sim_phenomena.h.
- Enumerator:
-
NONE |
|
AMBSOUND |
|
AMBLIGHT |
|
AMBTEMP |
|
AMBRAD |
|
SOUND |
|
LIGHT |
|
ACCEL_X |
|
ACCEL_Y |
|
MAG_X |
|
MAG_Y |
|
RAD |
|
STARTSOUND |
|
STARTLIGHT |
|
STARTTEMP |
|
STARTRAD |
|
STARTACCEL_X |
|
STARTACCEL_Y |
|
STARTMAG_X |
|
STARTMAG_Y |
|
Phenom_MIN |
|
Phenom_MAX |
|
Phenom_SIZE |
|
Definition at line 57 of file sim_phenomena.h.
Function Documentation
int compute_adc |
( |
const char * |
scenario, |
|
|
const char * |
network, |
|
|
const char * |
adc | |
|
) |
| | |
int read_scenario |
( |
FILE * |
file, |
|
|
std::vector< SensorData > & |
data | |
|
) |
| | |
|