
Test1
TxRxService.h
- Committer:
- VASKO
- Date:
- 2019-08-04
- Revision:
- 13:b9e066badefa
- Parent:
- 12:6f63e376c0aa
- Child:
- 14:b113f676ef42
File content as of revision 13:b9e066badefa:
#define HeaderByte 0 #define HeaderByteQty 5 #define MsgCmdSize 1 #define MsgParsSize 4 #define MsgCS_Size 1 #define ArrTxSize (HeaderByteQty + MsgCmdSize + MsgParsSize + MsgCS_Size) #define ArrRxSize (HeaderByteQty + MsgCmdSize + MsgParsSize + MsgCS_Size) //#define ArrTxInitializer {0x20,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4A,0x4b,0x4c,0x4d,0x4e,0x4f} #define ArrTxInitializer {} //#define ArrRxInitializer {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00} #define ArrRxInitializer {} extern uint8_t RxBuff[ArrRxSize]; extern uint8_t TxBuff[ArrTxSize]; extern bool RxBuffFull; extern bool ArrTxBusy; extern bool TxBuffFull; extern void StartTx(); extern void TxRxServiceInit(); typedef union { uint8_t ui8[4]; int8_t i8[4]; uint16_t ui16[2]; int16_t i16[2]; uint32_t ui32; int32_t i32; float f; } ParsType; typedef struct { uint8_t cmd; ParsType pars; uint8_t cs; } MsgType;