7 // events of each state of state machine
16 typedef void (*state_fcn)(struct fsm *fsm, enum event my_event);//pointer to function returning void and two input parametr
19 state_fcn current_state; // current state
20 state_fcn last_state; // last state
21 int32_t act_pos; // actual position
22 int32_t last_pos; // last position
23 int32_t delta; //indicate change betwen each move(should be used as absolute value)
28 bool trigger_can_send;
31 void init_fsm(struct fsm *fsm, state_fcn initial_state);
32 void run_fsm(struct fsm *fsm);