EZR
Dependencies: CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04
Fork of smartRamalKW by
memoriaMassa.h
- Committer:
- tpadovani
- Date:
- 2015-07-23
- Revision:
- 10:7a1d1abb5172
- Child:
- 13:eed9484a89bc
File content as of revision 10:7a1d1abb5172:
#ifndef MM_H #define MM_H #include "mbed.h" #include "queue.h" #include "sensor.h" typedef struct{ unsigned int time; union{ float floatValue; unsigned char bytes[4]; } value; } LeituraMM; class MemoriaMassa { Ticker leituraPeriodica; int mmPeriodoSec; bool lerAgora; PersistentCircularQueue queue[2]; public: void iniciaLeituras(int periodoSec, int size); void disparaLeitura(); void executaLeitura(); char* getMM(int channel); }; #endif