sevencore fota solution development project
Diff: ext_fota/BleMsgHandler.h
- Revision:
- 3:1e70387e1337
- Parent:
- 2:dba344c91bce
- Child:
- 4:60be78a172c2
--- a/ext_fota/BleMsgHandler.h Mon Jun 22 09:43:13 2015 +0000 +++ b/ext_fota/BleMsgHandler.h Tue Jun 23 06:32:40 2015 +0000 @@ -7,6 +7,13 @@ namespace sevencore_fota{ +typedef struct { + unsigned short bType; + unsigned short bDstid; + unsigned short bSrcid; + unsigned short bLength; +} ble_hdr; + class BleMsgHandler { public: @@ -14,13 +21,18 @@ BleMsgHandler(Serial* _device, Serial* _hostpc); ~BleMsgHandler(void); void PrintTitle(void); - + void BleMsgAlloc(unsigned short id,unsigned short dest_id,unsigned short src_id,unsigned short data_len,void *pdata,uint8_t *msg); + int BleSendMsg(uint8_t *msg, unsigned short size); + void BleReceiveMsg(void); + void BleMsgHandle(void); private: bool print_flag; Serial* device; Serial* hostpc; SerialManager* SerialM; + MsgQueue* MsgQ; + unsigned char recv_msg[512]; }; }//namespace