HiveMind
SystemStates.h
Go to the documentation of this file.
1 #ifndef SYSTEMSTATES_H_
2 #define SYSTEMSTATES_H_
3 
5 
6 enum class DeviceState {
7  Ok = 0,
11  ErrorVMPc,
16  ErrorVMRet,
20  ErrorVMMem,
22  Error // Error outside the scope of the user code
23 };
24 
25 struct SystemStates {
27  bool m_remoteHandshaked = false;
28 
30  bool m_hostHandshaked = false;
31 
34 
37 };
38 
39 #endif // SYSTEMSTATES_H_
DeviceState::ErrorVMMem
@ ErrorVMMem
ConnectionState::Error
@ Error
SystemStates
Definition: SystemStates.h:25
DeviceState::ErrorVMRet
@ ErrorVMRet
DeviceState::ErrorVMMath
@ ErrorVMMath
DeviceState::ErrorVMStack
@ ErrorVMStack
ConnectionState::USB
@ USB
DeviceState::ErrorVMInstr
@ ErrorVMInstr
SystemStates::m_connection
ConnectionState m_connection
the state of the connection with the host
Definition: SystemStates.h:33
DeviceState::ErrorVMNotimpl
@ ErrorVMNotimpl
ConnectionState::Unconnected
@ Unconnected
DeviceState::ErrorVMVstig
@ ErrorVMVstig
DeviceState::ErrorVMFlist
@ ErrorVMFlist
DeviceState::ErrorVMType
@ ErrorVMType
DeviceState::ErrorVMPc
@ ErrorVMPc
ConnectionState::Booting
@ Booting
DeviceState::ErrorVMSwarm
@ ErrorVMSwarm
ConnectionState
ConnectionState
Definition: SystemStates.h:4
DeviceState::ErrorVMString
@ ErrorVMString
ConnectionState::Ethernet
@ Ethernet
DeviceState::ErrorVMOutofrange
@ ErrorVMOutofrange
SystemStates::m_device
DeviceState m_device
the overall state of the device
Definition: SystemStates.h:36
DeviceState::Ok
@ Ok
DeviceState
DeviceState
Definition: SystemStates.h:6
SystemStates::m_hostHandshaked
bool m_hostHandshaked
if the handshake with the host is successfull
Definition: SystemStates.h:30
SystemStates::m_remoteHandshaked
bool m_remoteHandshaked
if the handshake with the esp is successfull
Definition: SystemStates.h:27
DeviceState::ErrorVMLnum
@ ErrorVMLnum