Go to the documentation of this file. 1 #ifndef APPLICATIONINTERFACE_H_
2 #define APPLICATIONINTERFACE_H_
24 void* context)
override;
46 #endif // APPLICATIONINTERFACE_H_
void setSystemDeviceState(DeviceState state) override
set the system Connection state and set the seven segment accordingly
Definition: ApplicationInterface.cpp:41
Definition: SystemStates.h:25
static constexpr LED s_remoteLed
Definition: ApplicationInterface.h:36
UserStates getUserStates() const override
get the user states
Definition: ApplicationInterface.cpp:76
LED
LED present on the board.
Definition: IUserInterface.h:22
Definition: IApplicationInterface.h:7
Definition: UserStates.h:23
ApplicationStates getApplicationState() const override
get the application states
Definition: ApplicationInterface.cpp:81
Definition: ApplicationStates.h:7
ApplicationInterface(IUserInterface &userInterface, IMutex &mutex)
Definition: ApplicationInterface.cpp:4
void setSystemHostHandshaked(bool handshaked) override
set the system Host handshake and light the necessary LED
Definition: ApplicationInterface.cpp:13
void setSystemRemoteHandshaked(bool handshaked) override
set the system Remote handshake and light the necessary LED
Definition: ApplicationInterface.cpp:7
Button
Buttons present on the board.
Definition: IUserInterface.h:16
void setSystemButtonCallback(Button button, buttonCallbackFunction_t callback, void *context) override
set the systems button to a callback
Definition: ApplicationInterface.cpp:51
SystemStates getSystemStates() const override
set the system states
Definition: ApplicationInterface.cpp:71
void setUserSegment(UserSegment segment) override
set the user seven segment
Definition: ApplicationInterface.cpp:63
IUserInterface & m_userInterface
Definition: ApplicationInterface.h:41
static constexpr LED s_userLed
Definition: ApplicationInterface.h:38
void setUserLed(bool state) override
set the user LED
Definition: ApplicationInterface.cpp:57
void setSystemConnectionState(ConnectionState state) override
set the system Connection state and light the necessary LED the right color
Definition: ApplicationInterface.cpp:19
ConnectionState
Definition: SystemStates.h:4
IMutex & m_mutex
Definition: ApplicationInterface.h:42
static constexpr LED s_hostLed
Definition: ApplicationInterface.h:37
Manages the user interface The user interface can consist of buttons, LED, serial print ports,...
Definition: IUserInterface.h:36
UserSegment
Definition: UserStates.h:4
~ApplicationInterface() override=default
void(* buttonCallbackFunction_t)(void *instance)
Prototype for a callback from a button press.
Definition: IUserInterface.h:28
DeviceState
Definition: SystemStates.h:6
ApplicationStates m_states
Definition: ApplicationInterface.h:43
Definition: ApplicationInterface.h:8