HiveMind
src
application-interface
include
application-interface
SystemStates.h
Go to the documentation of this file.
1
#ifndef SYSTEMSTATES_H_
2
#define SYSTEMSTATES_H_
3
4
enum class
ConnectionState
{
Booting
= 0,
Unconnected
,
USB
,
Ethernet
,
Error
};
5
6
enum class
DeviceState
{
7
Ok
= 0,
8
ErrorVMInstr
,
9
ErrorVMStack
,
10
ErrorVMLnum
,
11
ErrorVMPc
,
12
ErrorVMFlist
,
13
ErrorVMType
,
14
ErrorVMOutofrange
,
15
ErrorVMNotimpl
,
16
ErrorVMRet
,
17
ErrorVMString
,
18
ErrorVMSwarm
,
19
ErrorVMVstig
,
20
ErrorVMMem
,
21
ErrorVMMath
,
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
33
ConnectionState
m_connection
=
ConnectionState::Unconnected
;
34
36
DeviceState
m_device
=
DeviceState::Ok
;
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
Generated by
1.8.17