HiveMind
IApplicationInterface.h
Go to the documentation of this file.
1 #ifndef IAPPLICATIONINTERFACE_H_
2 #define IAPPLICATIONINTERFACE_H_
3 
5 #include <bsp/IUserInterface.h>
6 
8  public:
9  virtual ~IApplicationInterface() = default;
10 
12  virtual void setSystemRemoteHandshaked(bool handshaked) = 0;
13 
15  virtual void setSystemHostHandshaked(bool handshaked) = 0;
16 
18  virtual void setSystemConnectionState(ConnectionState state) = 0;
19 
21  virtual void setSystemDeviceState(DeviceState state) = 0;
22 
24  virtual void setSystemButtonCallback(Button button,
25  buttonCallbackFunction_t callback,
26  void* context) = 0;
27 
29  virtual void setUserLed(bool state) = 0;
30 
32  virtual void setUserSegment(UserSegment segment) = 0;
33 
35  virtual SystemStates getSystemStates() const = 0;
36 
38  virtual UserStates getUserStates() const = 0;
39 
41  virtual ApplicationStates getApplicationState() const = 0;
42 };
43 
44 #endif // IAPPLICATIONINTERFACE_H_
IApplicationInterface::setSystemConnectionState
virtual void setSystemConnectionState(ConnectionState state)=0
set the system Connection state and light the necessary LED the right color
SystemStates
Definition: SystemStates.h:25
IApplicationInterface
Definition: IApplicationInterface.h:7
IApplicationInterface::setUserLed
virtual void setUserLed(bool state)=0
set the user LED
UserStates
Definition: UserStates.h:23
ApplicationStates.h
ApplicationStates
Definition: ApplicationStates.h:7
IApplicationInterface::setSystemButtonCallback
virtual void setSystemButtonCallback(Button button, buttonCallbackFunction_t callback, void *context)=0
set the systems button to a callback
IApplicationInterface::setSystemRemoteHandshaked
virtual void setSystemRemoteHandshaked(bool handshaked)=0
set the system Remote handshake and light the necessary LED
IApplicationInterface::setSystemHostHandshaked
virtual void setSystemHostHandshaked(bool handshaked)=0
set the system Host handshake and light the necessary LED
Button
Button
Buttons present on the board.
Definition: IUserInterface.h:16
IUserInterface.h
IApplicationInterface::~IApplicationInterface
virtual ~IApplicationInterface()=default
IApplicationInterface::setSystemDeviceState
virtual void setSystemDeviceState(DeviceState state)=0
set the system Connection state and set the seven segment accordingly
ConnectionState
ConnectionState
Definition: SystemStates.h:4
UserSegment
UserSegment
Definition: UserStates.h:4
IApplicationInterface::setUserSegment
virtual void setUserSegment(UserSegment segment)=0
set the user seven segment
IApplicationInterface::getApplicationState
virtual ApplicationStates getApplicationState() const =0
get the application states
buttonCallbackFunction_t
void(* buttonCallbackFunction_t)(void *instance)
Prototype for a callback from a button press.
Definition: IUserInterface.h:28
DeviceState
DeviceState
Definition: SystemStates.h:6
IApplicationInterface::getSystemStates
virtual SystemStates getSystemStates() const =0
set the system states
IApplicationInterface::getUserStates
virtual UserStates getUserStates() const =0
get the user states