001 /****************************************************************
002  
003   Header file for DOG TX STATE MACHINE 
004   based on the Gen 2 Events and Services Framework
005 
006  ***************************************************************/
007 
008 #ifndef DOG_TX_H
009 #define DOG_TX_H
010 
011 #include "ES_Configure.h"
012 #include "ES_Types.h"
013 
014 typedef enum {WaitToPair, PairedWaitForKey, Paired} DogTXState_t;
015 typedef enum {WaitFor7E, WaitForMSBLen, WaitForLSBLen, GetDataPacket, 
016 GetCheckSum} DogRXState_t;
017 // Public Function Prototypes
018 
019 bool InitDogTX ( uint8_t Priority );
020 bool PostDogTX( ES_Event ThisEvent );
021 ES_Event RunDogTX( ES_Event ThisEvent );
022 void DOG_UART1__ISR(void);
023 uint8_t GetRXBuffer(int index);
024 #endif /* ServTemplate_H */
025