-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMachState.h
More file actions
21 lines (16 loc) · 1008 Bytes
/
MachState.h
File metadata and controls
21 lines (16 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _H_MACHSTATE
#define _H_MACHSTATE
#include <stddef.h>
#include <functional>
typedef uint8_t machinestates_t;
static const machinestates_t BOOTING = 0, /* Startup state */
OUTOFORDER = 1, /* device not functional. */
REBOOT = 2, /* forcefull reboot */
TRANSIENTERROR = 3, /* hopefully goes away level error */
NOCONN = 4, /* sort of fairly hopless (though we can cache RFIDs!) */
WAITINGFORCARD = 5, /* waiting for card. */
CHECKINGCARD = 6, /* checking card. with server */
SWITCHEDOFF = 7, /* unit is switched off completely */
POWERED = 8, /* unit is powered on */
RUNNING = 9; /* unit is running (opto sees light). */
#endif