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


  Header file for servo service

  based on the Gen 2 Events and Services Framework


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


#ifndef Servo_H

#define Servo_H


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

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

#include "ES_Events.h"


typedef enum

{

  Init_Servo,

  Running_Servo,

  Completion_Win,

  Completion_Lose,

  Completion_User_Left

}ServoState_t;


// Public Function Prototypes


bool InitServo(uint8_t Priority);

bool PostServo(ES_Event_t ThisEvent);

ES_Event_t RunServo(ES_Event_t ThisEvent);


#endif /* Serv0_H */