Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04
Fork of smartRamalKW by
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
Generated on Thu Jul 14 2022 00:24:57 by
1.7.2
