/****************************************************************************
Header file for template Flat Sate Machine
based on the Gen2 Events and Services Framework
****************************************************************************/
#ifndef GameFSM_H
#define GameFSM_H
// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Types.h" /* gets bool type for returns */
// typedefs for the states
// State definitions for use with the query function
typedef enum
{
InitPState, Idle, OutputSeq, Wait4Input
}GAMEState_t;
// Public Function Prototypes
bool InitGameFSM(uint8_t Priority);
bool PostGameFSM(ES_Event_t ThisEvent);
ES_Event_t RunGameFSM(ES_Event_t ThisEvent);
GAMEState_t QueryGameFSM(void);
void sendTo595(uint8_t data);
#endif /* FSMTemplate_H */