1 /****************************************************************************
 2 
 3   Header file for template service
 4   based on the Gen 2 Events and Services Framework
 5 
 6  ****************************************************************************/
 7 
 8 #ifndef ServLeader_H
 9 #define ServLeader_H
10 
11 #include <xc.h>
12 #include "ES_Types.h"
13 #include "PIC32_SPI_HAL.h"
14 
15 
16 typedef enum {
17    InitPState = 0,
18    GameIdle,
19    GameStart,   
20    Loading,
21    Dunking,
22    GameEnd
23 } LeaderState_t;
24 
25 // Public Function Prototypes
26 bool InitLeaderService(uint8_t Priority);
27 bool PostLeaderService(ES_Event_t ThisEvent);
28 ES_Event_t RunLeaderService(ES_Event_t ThisEvent);
29 LeaderState_t GetLeaderState(void);
30 void PrintCmdDesc(uint8_t command);
31 
32 #endif /* ServLeader_H */
33