#define _STATE_H_
/* set a new state, return 0 on success */
-int8_t state_set_mode(struct i2c_cmd_cobboard_set_mode *cmd);
+int8_t state_set_mode(uint8_t mode);
+void state_set_spickle(uint8_t side, uint8_t flags);
/* get current state */
uint8_t state_get_mode(void);
+uint8_t state_get_status(void);
+
+void state_set_i2c_ignore(uint8_t val);
+uint8_t state_get_i2c_ignore(void);
+
+uint8_t state_get_cob_count(void);
/* launch state machine */
void state_machine(void);
void state_init(void);
+extern uint8_t state_debug;
+
#endif