diff options
| author | Donald Delmar Davis <don@suspectdevices.com> | 2017-10-20 21:54:08 -0700 |
|---|---|---|
| committer | Donald Delmar Davis <don@suspectdevices.com> | 2017-10-20 21:54:08 -0700 |
| commit | fbc0b415c9d53aaa8e5dde388a7a975ef9ff09ae (patch) | |
| tree | a2aea20b57c2a06126fca461304ef00d16983bd3 /Arduino | |
| parent | 88f0a233a5fef57c9f0efc73103fbe7ef5721a99 (diff) | |
""
Diffstat (limited to 'Arduino')
| -rwxr-xr-x | Arduino/ems-light/Machine.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Arduino/ems-light/Machine.h b/Arduino/ems-light/Machine.h index a2680a9..95b4d21 100755 --- a/Arduino/ems-light/Machine.h +++ b/Arduino/ems-light/Machine.h @@ -3,6 +3,39 @@ #include "Common.h" #include "Monitor.h" #include "TaskScheduler.h" +// This stuff probably belongs in Machine.h + +#define STATENAMELEN 25 + +enum machine_states { + STATE_OFF, + STATE_SELF_TEST_INIT, + STATE_WARM_UP, + STATE_RUN_MODE, + STATE_SHUTDOWN, + STATE_POST_FAILURE, + STATE_E_SHUTDOWN, + STATE_MANUAL_MODE, + STATE_DIAGNOSTICS_MODE, + STATE_UNKNOWN_STATE, +}; + +#define NSTATES (STATE_UNKNOWN_STATE) + +#define STATENAMES \ +"OFF\000 ",\ +"SELF TEST INIT\000 ",\ +"WARMUP\000 ",\ +"NORMAL OPERATION\000 ",\ +"SHUT DOWN\000 ",\ +"POST FAILURE\000 ",\ +"EMERGENCY STOP\000 ",\ +"MANUAL MODE ",\ +"DIAGNOSTICS MODE\000 ",\ +"UNKNOWN\000 " + +#endif // EMS_COMMON_H + class Machine; extern Machine machine; |
