GSMA version

Dependencies:   FXOS8700CQ mbed

Fork of AvnetATT_shape_hackathon by Rick McConney

Revision:
4:f83bedd9cab4
Child:
12:7c94ec5069dc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sensors.h	Mon Jul 11 06:53:41 2016 +0000
@@ -0,0 +1,40 @@
+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"
+};
+