Professional Documents
Culture Documents
h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Page 1
/****************************************************************************
Header File
MasterSM.h
Author
Anne Alter
Date
2/14/16
****************************************************************************/
#ifndef MasterSM_H
#define MasterSM_H
#include "ES_Types.h"
#include "ES_Configure.h"
//type defines
typedef enum{Idle, Sending, PlayingGame, GameOver} CurrentMasterState_t;
//public function prototypes
bool InitMasterSM(uint8_t Priority);
bool PostMasterSM(ES_Event CurrentEvent);
bool CheckMasterSM(void);
ES_Event RunMasterSM(ES_Event CurrentEvent);
void StartMasterSM(ES_Event CurrentEvent);
#endif /* MasterSM_H */