Classes | Typedefs | Enumerations | Functions

fsm.h File Reference

#include <types.h>
#include <stdbool.h>
Include dependency graph for fsm.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  fsm
 fsm structure for pusher and lift More...

Typedefs

typedef void(* state_fcn )(struct fsm *fsm, enum event my_event)

Enumerations

enum  event {
  EVENT_ENTRY, EVENT_DO, EVENT_EXIT, EVENT_ENTRY,
  EVENT_DO, EVENT_EXIT, EVENT_ENTRY, EVENT_DO,
  EVENT_EXIT, EVENT_ENTRY, EVENT_DO, EVENT_EXIT
}

Functions

void init_fsm (struct fsm *fsm, state_fcn initial_state)
void run_fsm (struct fsm *fsm)

Typedef Documentation

typedef void(* state_fcn)(struct fsm *fsm, enum event my_event)

Enumeration Type Documentation

enum event
Enumerator:
EVENT_ENTRY 
EVENT_DO 
EVENT_EXIT 
EVENT_ENTRY 
EVENT_DO 
EVENT_EXIT 
EVENT_ENTRY 
EVENT_DO 
EVENT_EXIT 
EVENT_ENTRY 
EVENT_DO 
EVENT_EXIT 

Function Documentation

void init_fsm ( struct fsm fsm,
state_fcn  initial_state 
)
void run_fsm ( struct fsm fsm  )