ASCEND Flight Software
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ErrorDisplay Class Reference

Singleton class for the 3 GPIO LED Error Display. More...

#include <ErrorDisplay.h>

Collaboration diagram for ErrorDisplay:

Public Member Functions

void addCode (Error e)
 Sets the error code to the given value if the given error is of a higher priority then the current error.
 
void toggle ()
 Toggles the level of the error display.
 

Static Public Member Functions

static ErrorDisplay & instance ()
 Accesses the only instance of ErrorDisplay (Singleton)
 

Private Member Functions

 ErrorDisplay ()
 

Private Attributes

mutex_t error_display_mutex
 
int pin_level
 
Error code
 

Detailed Description

Singleton class for the 3 GPIO LED Error Display.

Constructor & Destructor Documentation

◆ ErrorDisplay()

ErrorDisplay::ErrorDisplay ( )
inlineprivate

Member Function Documentation

◆ addCode()

void ErrorDisplay::addCode ( Error  e)
inline

Sets the error code to the given value if the given error is of a higher priority then the current error.

Parameters
eThe error code to display
Here is the caller graph for this function:

◆ instance()

static ErrorDisplay & ErrorDisplay::instance ( )
inlinestatic

Accesses the only instance of ErrorDisplay (Singleton)

Returns
ErrorDisplay& Instance of ErrorDisplay
Here is the caller graph for this function:

◆ toggle()

void ErrorDisplay::toggle ( )
inline

Toggles the level of the error display.

Here is the caller graph for this function:

Member Data Documentation

◆ code

Error ErrorDisplay::code
private

◆ error_display_mutex

mutex_t ErrorDisplay::error_display_mutex
private

◆ pin_level

int ErrorDisplay::pin_level
private

The documentation for this class was generated from the following file: