/****************************************************************************
 
  Header file for CommunicationsMaster hierarchical state machine
  based on the Gen 2 Events and Services Framework

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

#ifndef CommunicationsMaster_H
#define CommunicationsMaster_H

// State definitions for use with the query function
typedef enum { ComWaiting, ComXmitting } CommunicationsMaster_State_t ;

// Public Function Prototypes
uint8_t GetGameStatus(void);
bool InitComMasterSM ( uint8_t Priority );
bool PostComMasterSM( ES_Event_t ThisEvent );
ES_Event_t RunComMasterSM ( ES_Event_t CurrentEvent );
void StartComMasterSM ( ES_Event_t CurrentEvent );

uint8_t GetCurrentPosession(void);

#endif