0% found this document useful (0 votes)
145 views1 page

Servoservice H

This C++ header file defines functions and types for a servo service. It includes event definitions and type definitions. It defines an enumeration for servo states including idle, wind, grow, construction, and reset. It also prototypes boolean functions for initializing the servo service, posting events to the servo service, and running the servo service to handle events.

Uploaded by

api-340729449
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
145 views1 page

Servoservice H

This C++ header file defines functions and types for a servo service. It includes event definitions and type definitions. It defines an enumeration for servo states including idle, wind, grow, construction, and reset. It also prototypes boolean functions for initializing the servo service, posting events to the servo service, and running the servo service to handle events.

Uploaded by

api-340729449
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

#ifndef ServoService_H

#define ServoService_H
// Event Definitions
#include "ES_Configure.h" /* gets us event definitions */
#include "ES_Types.h"
/* gets bool type for returns */
// typedefs for the states
// State definitions for use with the query function
typedef enum {Servo_Idle, Servo_Wind, Servo_Grow, Servo_Construction,
Servo_Reset} SSState_t;
// Public Function Prototypes
bool ServoSInit(uint8_t Priority);
bool PostServoS(ES_Event ThisEvent);
ES_Event RunServoS(ES_Event ThisEvent);
#endif /* ServoService_H */

You might also like