/****************************************************************************


  Header file for template Flat Sate Machine

  based on the Gen2 Events and Services Framework


 ****************************************************************************/


#ifndef MasterService_H

#define MasterService_H


// Event Definitions

#include "ES_Configure.h" /* gets us event definitions */

#include "ES_Types.h"     /* gets bool type for returns */

#include "ES_Events.h"


// typedefs for the states

// State definitions for use with the query function

typedef enum

{

  Master_Idle,

  One_Coin_In,

  Game_Running,

  Game_Complete

}MasterServiceState_t;


// Public Function Prototypes


bool InitMasterService(uint8_t Priority);

bool PostMasterService(ES_Event_t ThisEvent);

ES_Event_t RunMasterService(ES_Event_t ThisEvent);

void ShowMessage(ES_Event_t ThisEvent, char* message);

void InitProgressLED(void);


#endif /* MasterService_H */