PID
Dependencies: BLE_API mbed nRF51822
Diff: StateMachine.h
- Revision:
- 1:d3e12393b71d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/StateMachine.h Thu Jan 12 16:04:37 2017 +0000 @@ -0,0 +1,25 @@ +#ifndef _StateMachine_ +#define _StateMachine + +typedef enum +{ + shut_down = 0, + safe_state, + monitoring, + local_control_PID, + local_control_RST, + remote_control +} States; + +typedef enum +{ + start_advertising = 0, + stop_advertising, + stop_connection, + connected +} conn_update; + +void decode_state_machine(States st, uint8_t buf[20]); +void conn_state_machine(uint8_t* buf1, uint8_t* buf2); + +#endif