Frederico Prado / smartRamalEZR

Dependencies:   CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04

Fork of smartRamalKW by Equipe Firmware V2COM

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers alarm.h Source File

alarm.h

00001 #ifndef ALARM_H
00002 #define ALARM_H
00003 
00004 #include "mbed.h"
00005 #include "queue.h"
00006 #include "appParameters.h"
00007 #include "debug.h"
00008 
00009 typedef struct{
00010     unsigned int time;
00011     unsigned short int code;
00012     unsigned short int state;
00013 } AlarmEntry;
00014 
00015 class Alarm {
00016 
00017     PersistentCircularQueue alarmQueue;
00018     
00019   public:
00020     void loadQueue(int size, int sector);
00021     void writeAlarm(int code, bool state, bool previousState);
00022     char* getAllAlarms();
00023 
00024 };
00025 
00026 #endif