GSMA version
Dependencies: FXOS8700CQ mbed sfh7779
Fork of StarterKit by
sensors.h
- Committer:
- stefanrousseau
- Date:
- 2016-07-11
- Revision:
- 4:f83bedd9cab4
- Child:
- 12:7c94ec5069dc
File content as of revision 4:f83bedd9cab4:
void sensors_init(void); void read_sensors(void); #define SENSOR_FIELD_LEN_LIMIT 32 typedef struct { char Temperature[SENSOR_FIELD_LEN_LIMIT]; char Humidity[SENSOR_FIELD_LEN_LIMIT]; char AccelX[SENSOR_FIELD_LEN_LIMIT]; char AccelY[SENSOR_FIELD_LEN_LIMIT]; char AccelZ[SENSOR_FIELD_LEN_LIMIT]; char MagnetometerX[SENSOR_FIELD_LEN_LIMIT]; char MagnetometerY[SENSOR_FIELD_LEN_LIMIT]; char MagnetometerZ[SENSOR_FIELD_LEN_LIMIT]; char AmbientLightVis[SENSOR_FIELD_LEN_LIMIT]; char AmbientLightIr[SENSOR_FIELD_LEN_LIMIT]; char UVindex[SENSOR_FIELD_LEN_LIMIT]; char Proximity[SENSOR_FIELD_LEN_LIMIT]; char Temperature_Si7020[SENSOR_FIELD_LEN_LIMIT]; char Humidity_Si7020[SENSOR_FIELD_LEN_LIMIT]; } K64F_Sensors_t ; static K64F_Sensors_t SENSOR_DATA = { .Temperature = "0", .Humidity = "0", .AccelX = "0", .AccelY = "0", .AccelZ = "0", .MagnetometerX = "0", .MagnetometerY = "0", .MagnetometerZ = "0", .AmbientLightVis = "0", .AmbientLightIr = "0", .UVindex = "0", .Proximity = "0", .Temperature_Si7020 = "0", .Humidity_Si7020 = "0" };