HiveMind
|
#include <ApplicationInterface.h>
Public Member Functions | |
ApplicationInterface (IUserInterface &userInterface, IMutex &mutex) | |
~ApplicationInterface () override=default | |
void | setSystemRemoteHandshaked (bool handshaked) override |
set the system Remote handshake and light the necessary LED More... | |
void | setSystemHostHandshaked (bool handshaked) override |
set the system Host handshake and light the necessary LED More... | |
void | setSystemConnectionState (ConnectionState state) override |
set the system Connection state and light the necessary LED the right color More... | |
void | setSystemDeviceState (DeviceState state) override |
set the system Connection state and set the seven segment accordingly More... | |
void | setSystemButtonCallback (Button button, buttonCallbackFunction_t callback, void *context) override |
set the systems button to a callback More... | |
void | setUserLed (bool state) override |
set the user LED More... | |
void | setUserSegment (UserSegment segment) override |
set the user seven segment More... | |
SystemStates | getSystemStates () const override |
set the system states More... | |
UserStates | getUserStates () const override |
get the user states More... | |
ApplicationStates | getApplicationState () const override |
get the application states More... | |
Public Member Functions inherited from IApplicationInterface | |
virtual | ~IApplicationInterface ()=default |
Static Public Attributes | |
static constexpr LED | s_remoteLed = LED::LED_0 |
static constexpr LED | s_hostLed = LED::LED_1 |
static constexpr LED | s_userLed = LED::LED_2 |
Private Attributes | |
IUserInterface & | m_userInterface |
IMutex & | m_mutex |
ApplicationStates | m_states |
ApplicationInterface::ApplicationInterface | ( | IUserInterface & | userInterface, |
IMutex & | mutex | ||
) |
|
overridedefault |
|
overridevirtual |
get the application states
Implements IApplicationInterface.
|
overridevirtual |
set the system states
Implements IApplicationInterface.
|
overridevirtual |
get the user states
Implements IApplicationInterface.
|
overridevirtual |
set the systems button to a callback
Implements IApplicationInterface.
|
overridevirtual |
set the system Connection state and light the necessary LED the right color
Implements IApplicationInterface.
|
overridevirtual |
set the system Connection state and set the seven segment accordingly
Implements IApplicationInterface.
|
overridevirtual |
set the system Host handshake and light the necessary LED
Implements IApplicationInterface.
|
overridevirtual |
set the system Remote handshake and light the necessary LED
Implements IApplicationInterface.
|
overridevirtual |
|
overridevirtual |
set the user seven segment
Implements IApplicationInterface.
|
private |
|
private |
|
private |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |