dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
alarms.h
Go to the documentation of this file.
1 
13 /*
14  * This program is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 3 of the License, or
17  * (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful, but
20  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  * for more details.
23  *
24  * You should have received a copy of the GNU General Public License along
25  * with this program; if not, see <http://www.gnu.org/licenses/>
26  */
27 #ifndef ALARMS_H
28 #define ALARMS_H
29 
30 #include "systemalarms.h"
31 #define SYSTEMALARMS_ALARM_DEFAULT SYSTEMALARMS_ALARM_UNINITIALISED
32 
33 int32_t AlarmsInitialize(void);
34 int32_t AlarmsSet(SystemAlarmsAlarmElem alarm, SystemAlarmsAlarmOptions severity);
35 SystemAlarmsAlarmOptions AlarmsGet(SystemAlarmsAlarmElem alarm);
36 int32_t AlarmsDefault(SystemAlarmsAlarmElem alarm);
37 void AlarmsDefaultAll();
38 int32_t AlarmsClear(SystemAlarmsAlarmElem alarm);
39 void AlarmsClearAll();
40 int32_t AlarmsHasWarnings();
41 int32_t AlarmsHasErrors();
42 int32_t AlarmsHasCritical();
53 int32_t AlarmString(SystemAlarmsData *alarm, char *buf, size_t buflen,
54  bool blink, uint8_t *state);
55 const char *AlarmBootReason(uint8_t reason);
56 
57 #endif // ALARMS_H
58 
static bool blink
int32_t AlarmsSet(SystemAlarmsAlarmElem alarm, SystemAlarmsAlarmOptions severity)
Definition: alarms.c:97
void AlarmsClearAll()
Definition: alarms.c:179
void AlarmsDefaultAll()
Definition: alarms.c:157
int32_t AlarmsHasCritical()
Definition: alarms.c:210
const char * AlarmBootReason(uint8_t reason)
int32_t AlarmsClear(SystemAlarmsAlarmElem alarm)
Definition: alarms.c:171
int32_t AlarmsHasErrors()
Definition: alarms.c:201
int32_t AlarmsHasWarnings()
Definition: alarms.c:192
int32_t AlarmString(SystemAlarmsData *alarm, char *buf, size_t buflen, bool blink, uint8_t *state)
int32_t AlarmsInitialize(void)
Definition: alarms.c:51
SystemAlarmsAlarmOptions AlarmsGet(SystemAlarmsAlarmElem alarm)
Definition: alarms.c:129
int32_t AlarmsDefault(SystemAlarmsAlarmElem alarm)
Definition: alarms.c:149
enum arena_state state