PID
Dependencies: BLE_API mbed nRF51822
StateMachine.h@1:d3e12393b71d, 2017-01-12 (annotated)
- Committer:
- stoicancristi
- Date:
- Thu Jan 12 16:04:37 2017 +0000
- Revision:
- 1:d3e12393b71d
v2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
stoicancristi | 1:d3e12393b71d | 1 | #ifndef _StateMachine_ |
stoicancristi | 1:d3e12393b71d | 2 | #define _StateMachine |
stoicancristi | 1:d3e12393b71d | 3 | |
stoicancristi | 1:d3e12393b71d | 4 | typedef enum |
stoicancristi | 1:d3e12393b71d | 5 | { |
stoicancristi | 1:d3e12393b71d | 6 | shut_down = 0, |
stoicancristi | 1:d3e12393b71d | 7 | safe_state, |
stoicancristi | 1:d3e12393b71d | 8 | monitoring, |
stoicancristi | 1:d3e12393b71d | 9 | local_control_PID, |
stoicancristi | 1:d3e12393b71d | 10 | local_control_RST, |
stoicancristi | 1:d3e12393b71d | 11 | remote_control |
stoicancristi | 1:d3e12393b71d | 12 | } States; |
stoicancristi | 1:d3e12393b71d | 13 | |
stoicancristi | 1:d3e12393b71d | 14 | typedef enum |
stoicancristi | 1:d3e12393b71d | 15 | { |
stoicancristi | 1:d3e12393b71d | 16 | start_advertising = 0, |
stoicancristi | 1:d3e12393b71d | 17 | stop_advertising, |
stoicancristi | 1:d3e12393b71d | 18 | stop_connection, |
stoicancristi | 1:d3e12393b71d | 19 | connected |
stoicancristi | 1:d3e12393b71d | 20 | } conn_update; |
stoicancristi | 1:d3e12393b71d | 21 | |
stoicancristi | 1:d3e12393b71d | 22 | void decode_state_machine(States st, uint8_t buf[20]); |
stoicancristi | 1:d3e12393b71d | 23 | void conn_state_machine(uint8_t* buf1, uint8_t* buf2); |
stoicancristi | 1:d3e12393b71d | 24 | |
stoicancristi | 1:d3e12393b71d | 25 | #endif |