demOS
 All Data Structures Files Modules Pages
Data Structures | Macros | Typedefs | Functions
FSM.H File Reference

FSM More...

#include "DEMOSDK\BASTYPES.H"
Include dependency graph for FSM.H:

Go to the source code of this file.

Data Structures

struct  FSM
 
struct  FSMstate
 

Macros

#define FSMgotoNextState(FSM)   FSMgoto((FSM),(FSM)->activeState+1)
 
#define FSMgetCurrentState(FSM)   (FSM)->activeState
 
#define FSMisLastState(FSM)   (((FSM)->activeState+1) == (FSM)->nbStates)
 

Typedefs

typedef void(* FSMfunction )(FSM *_fsm)
 

Functions

void FSMinit (FSM *_m, FSMstate *_states, u16 _nbStates, u16 _startState)
 
void FSMupdate (FSM *_m)
 
void FSMgoto (FSM *_m, u16 _newState)
 

Detailed Description

FSM