dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
alarms.c File Reference

Library for setting and clearing system alarms. More...

#include "openpilot.h"
#include "alarms.h"
#include "pios_mutex.h"
#include "pios_reset.h"

Go to the source code of this file.

Macros

#define LONGEST_MESSAGE   17
 

Functions

static int32_t hasSeverity (SystemAlarmsAlarmOptions severity)
 
int32_t AlarmsInitialize (void)
 
int32_t AlarmsSet (SystemAlarmsAlarmElem alarm, SystemAlarmsAlarmOptions severity)
 
SystemAlarmsAlarmOptions AlarmsGet (SystemAlarmsAlarmElem alarm)
 
int32_t AlarmsDefault (SystemAlarmsAlarmElem alarm)
 
void AlarmsDefaultAll ()
 
int32_t AlarmsClear (SystemAlarmsAlarmElem alarm)
 
void AlarmsClearAll ()
 
int32_t AlarmsHasWarnings ()
 
int32_t AlarmsHasErrors ()
 
int32_t AlarmsHasCritical ()
 
 DONT_BUILD_IF (NELEMENTS(alarm_names)!=SYSTEMALARMS_ALARM_NUMELEM, AlarmArrayMismatch)
 

Variables

static struct pios_mutexlock
 
static const char alarm_names [][10]
 
static const char config_error_names [][15]
 
static const char manual_control_names [][13]
 
static const char boot_reason_names [][16]
 

Detailed Description

Library for setting and clearing system alarms.

Author
The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
Tau Labs, http://taulabs.org, Copyright (C) 2014
dRonin, http://dronin.org Copyright (C) 2015-2016
See Also
The GNU Public License (GPL) Version 3

Definition in file alarms.c.