You are on page 1of 1

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

Header file for Motor service


based on the Gen 2 Events and Services Framework

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

#ifndef ServMotor_H
#define ServMotor_H

#include "ES_Types.h"

// Public Function Prototypes

bool InitMotorService(uint8_t Priority);


bool PostMotorService(ES_Event ThisEvent);

void MotorPlayerForward(void);
void MotorPlayerReverse(void);
void MotorPlayerStop(void);

void MotorOpponentForward(void);
void MotorOpponentReverse(void);
void MotorOpponentStop(void);

void MotorFlagUp(void);
void MotorFlagDown(void);
void MotorFlagStop(void);

void MotorBuzzStart(uint8_t Pattern);


void MotorBuzzStop(void);

ES_Event RunMotorService(ES_Event ThisEvent);

#endif /* ServMotor_H */

You might also like