Sendcommand H

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 1

#ifndef SendCommand_H

#define SendCommand_H
// typedefs for the states
// State definitions for use with the query function
typedef enum { WaitSendCommand, SendBytes, WaitFor2MS } SendCommandState_t;
#define WaitForStartFlag 0x00
#define FlagDropped 0x01
#define CautionFlag 0x02
#define RaceOverFlag 0x03
// Public Function Prototypes
ES_Event RunSendCommandSM( ES_Event CurrentEvent );
void StartSendCommandSM ( ES_Event CurrentEvent );
SendCommandState_t QuerySendCommandSM ( void );
//query functions
uint16_t GetX1(void);
uint16_t GetX2(void);
uint16_t GetX3(void);
uint16_t GetY1(void);
uint16_t GetY2(void);
uint16_t GetY3(void);
int16_t GetO1(void);
int16_t GetO2(void);
int16_t GetO3(void);
uint8_t
uint8_t
uint8_t
uint8_t

GetTargetStatus(void);
GetObstacleStatus(void);
GetNumLapsLeft(void);
GetFlagDroppedStatus (void);

uint16_t GetKartX(void);
uint16_t GetKartY(void);
void SetKartNumber (uint8_t N);
#endif /*SHMTemplate_H */

You might also like