Orefatoi / Mbed 2 deprecated afero_node_suntory_171018

Dependencies:   mbed MMA8451Q USBDevice WakeUp vt100

Fork of afero_node_suntory_2017_06_15 by Orefatoi

Committer:
wataloh
Date:
Thu Jan 19 09:17:16 2017 +0000
Revision:
1:b2a9a6f2c30e
Child:
21:d03c7bbb9f37
simplified

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wataloh 1:b2a9a6f2c30e 1 #ifndef _GAS_PRESSURE_H_
wataloh 1:b2a9a6f2c30e 2 #define _GAS_PRESSURE_H_
wataloh 1:b2a9a6f2c30e 3
wataloh 1:b2a9a6f2c30e 4 #if defined (__MBED__)
wataloh 1:b2a9a6f2c30e 5 #include "mbed.h"
wataloh 1:b2a9a6f2c30e 6 #endif
wataloh 1:b2a9a6f2c30e 7 #include "ToDoQ.h"
wataloh 1:b2a9a6f2c30e 8 #include "Preferences.hpp"
wataloh 1:b2a9a6f2c30e 9 #include "TimeEventHandler.hpp"
wataloh 1:b2a9a6f2c30e 10 #include "RTC_Handler.h"
wataloh 1:b2a9a6f2c30e 11
wataloh 1:b2a9a6f2c30e 12 namespace MaruSolSensorManager
wataloh 1:b2a9a6f2c30e 13 {
wataloh 1:b2a9a6f2c30e 14 class GasPressure : public ToDo, public TimeEventHandler<GasPressure>
wataloh 1:b2a9a6f2c30e 15 {
wataloh 1:b2a9a6f2c30e 16 GasPressure();
wataloh 1:b2a9a6f2c30e 17 ~GasPressure();
wataloh 1:b2a9a6f2c30e 18 float calc();
wataloh 1:b2a9a6f2c30e 19 float val;
wataloh 1:b2a9a6f2c30e 20 AnalogIn *ain;
wataloh 1:b2a9a6f2c30e 21 void go();
wataloh 1:b2a9a6f2c30e 22 public:
wataloh 1:b2a9a6f2c30e 23 friend class TimeEventHandler;
wataloh 1:b2a9a6f2c30e 24 virtual void toJSON(char*);
wataloh 1:b2a9a6f2c30e 25 virtual void getBytes(uint8_t*);
wataloh 1:b2a9a6f2c30e 26 };
wataloh 1:b2a9a6f2c30e 27 }; //MaruSolSensorManager
wataloh 1:b2a9a6f2c30e 28
wataloh 1:b2a9a6f2c30e 29 #endif //_GAS_PRESSURE_H_