Rev 190 | Rev 245 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 190 | Rev 220 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | #define ANY_ADDRESS 0 |
5 | #define ANY_ADDRESS 0 |
6 | #define FC_ADDRESS 1 |
6 | #define FC_ADDRESS 1 |
7 | #define NC_ADDRESS 2 |
7 | #define NC_ADDRESS 2 |
8 | #define MK3MAG_ADDRESS 3 |
8 | #define MK3MAG_ADDRESS 3 |
9 | #define MKOSD_ADDRESS 4 |
9 | #define MKOSD_ADDRESS 4 |
- | 10 | #define BL_ADDRESS 5 |
|
Line 10... | Line 11... | ||
10 | 11 | ||
11 | typedef struct |
12 | typedef struct |
12 | { |
13 | { |
13 | u8* pData; |
14 | u8* pData; |
Line 24... | Line 25... | ||
24 | typedef struct |
25 | typedef struct |
25 | { |
26 | { |
26 | u8 Address; |
27 | u8 Address; |
27 | u8 CmdID; |
28 | u8 CmdID; |
28 | u8* pData; |
29 | u8* pData; |
29 | u16 DataLen; |
30 | u16 DataLen; |
30 | } __attribute__((packed)) SerialMsg_t; |
31 | } __attribute__((packed)) SerialMsg_t; |
Line 31... | Line 32... | ||
31 | 32 | ||
32 | extern u8 MKProtocol_CollectSerialFrame(Buffer_t* pRxBuff, u8 c); |
33 | extern u8 MKProtocol_CollectSerialFrame(Buffer_t* pRxBuff, u8 c); |
33 | extern void MKProtocol_CreateSerialFrame(Buffer_t* pTxBuff, u8 CmdID, u8 Address, u8 numofbuffers , ...); //u8 *data, u8 len, ....; |
34 | extern void MKProtocol_CreateSerialFrame(Buffer_t* pTxBuff, u8 CmdID, u8 Address, u8 numofbuffers , ...); //u8 *data, u8 len, ....; |