pwm period is now 200us instead of the default 20ms veml6040 config is now AF_BIT | TRIG_BIT

Dependencies:   mbed MMA8451Q USBDevice WakeUp vt100

Fork of afero_node_suntory_2017_06_15 by Orefatoi

Revision:
0:20bce0dcc921
Child:
1:b2a9a6f2c30e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sensors/ToDoQ.h	Tue Dec 20 01:51:02 2016 +0000
@@ -0,0 +1,49 @@
+#ifndef _TODO_QUEUE_H_
+#define _TODO_QUEUE_H_
+
+#include "mbed.h"
+#include "debugIO.h"
+
+#define TODO_QUEUE_SIZE 10
+
+namespace MaruSolSensorManager
+{
+    class ToDo;
+    class ToDoQ
+    {
+    public:
+        typedef void (*onGetTodo)(ToDo*);
+        static ToDoQ* create(onGetTodo);
+        void loop();
+        static void queuePut(ToDo*);
+    private:
+        ToDo *q[TODO_QUEUE_SIZE];
+        onGetTodo _onGetTodo;
+        ToDoQ(onGetTodo);
+        void _queuePut(ToDo*);
+    };
+    class ToDo
+    {
+    public:
+        virtual void toJSON(char *buf) = 0;
+        virtual void getBytes(uint8_t *buf) = 0;
+    };
+    class DeviceCommonParameters
+    {
+    public:
+        const char *devType;
+        const char *partNum;
+        const char *unit;
+        uint32_t sensingInterval;
+        DeviceCommonParameters(char *devType, char *partNum, char *unit, uint32_t sensingInterval)
+        {
+            this->devType = devType;
+            this->partNum = partNum;
+            this->unit = unit;
+            this->sensingInterval = sensingInterval;
+        }
+    };
+};
+
+
+#endif //_TODO_QUEUE_H_
\ No newline at end of file