102 int xStatesAdd(
void (*probe)(
void), 
void (*enter)(
void),
 
  103                void (*run)(
void), 
void (*exit)(
void), 
int ID,
 
unsigned char uStatesRun(void)
Ticks the state machine over.
Definition: states.c:235
 
int xStatesAdd(void(*probe)(void), void(*enter)(void), void(*run)(void), void(*exit)(void), int ID, char *name)
Adds a state to the state machine.
Definition: states.c:286
 
int xStatesGetStateID(void)
Returns the ID of the current state.
Definition: states.c:152
 
void vStatesClearInput(void)
Clears the 8 bit input vector stored in the state machine.
 
unsigned char uStatesSetState(unsigned int state_id)
Sets the next state of the state machine using the state's ID.
Definition: states.c:106
 
char * pStatesGetStateName(void)
Returns the string of the current state's name.
Definition: states.c:139
 
int xStatesDecrementState(void)
Decrements the state to the previous in the linked list of states.
Definition: states.c:205
 
int xStatesIncrementState(void)
Increments the state to the next in the linked list of states.
Definition: states.c:176
 
unsigned char uStatesInit(void)
Initialized the states stored in the state machine by calling their probe functions,...
Definition: states.c:347
 
void vStatesSetInput(unsigned char input)
Sets the input variable stored in the state machine.
 
void * pStatesGetData(void)
Returns a pointer to the data stored in the current state.
Definition: states.c:127
 
int xStatesGetStateCount(void)
Returns the number of states currently stored within the state machine.
Definition: states.c:164
 
void vStatesSetData(void *data)
Sets the data of the current state.
Definition: states.c:93
 
void vStatesSetCallback(void(*callback)(void))
Sets the callback function for the state machine.
Definition: states.c:83
 
unsigned char uStatesGetInput(void)
Retrieves the input vector stored within the state machine.