EZR

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

Fork of smartRamalKW by Equipe Firmware V2COM

alarm.h

Committer:
fprado
Date:
2016-06-16
Revision:
35:78614a27b9e6
Parent:
22:b66e36356dd4

File content as of revision 35:78614a27b9e6:

#ifndef ALARM_H
#define ALARM_H

#include "mbed.h"
#include "queue.h"
#include "appParameters.h"
#include "debug.h"

typedef struct{
    unsigned int time;
    unsigned short int code;
    unsigned short int state;
} AlarmEntry;

class Alarm {

    PersistentCircularQueue alarmQueue;
    
  public:
    void loadQueue(int size, int sector);
    void writeAlarm(int code, bool state, bool previousState);
    char* getAllAlarms();

};

#endif