![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
external fota service implementation
ext_fota/blemsg_handler.h@0:bab3be8d31cf, 2015-06-19 (annotated)
- Committer:
- dudnwjs
- Date:
- Fri Jun 19 06:49:20 2015 +0000
- Revision:
- 0:bab3be8d31cf
add GAPM,GAPC header
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dudnwjs | 0:bab3be8d31cf | 1 | #ifndef __BLEMSG_HANDLER_H__ |
dudnwjs | 0:bab3be8d31cf | 2 | #define __BLEMSG_HANDLER_H__ |
dudnwjs | 0:bab3be8d31cf | 3 | |
dudnwjs | 0:bab3be8d31cf | 4 | typedef struct { |
dudnwjs | 0:bab3be8d31cf | 5 | unsigned short bType; |
dudnwjs | 0:bab3be8d31cf | 6 | unsigned short bDstid; |
dudnwjs | 0:bab3be8d31cf | 7 | unsigned short bSrcid; |
dudnwjs | 0:bab3be8d31cf | 8 | unsigned short bLength; |
dudnwjs | 0:bab3be8d31cf | 9 | } ble_hdr; |
dudnwjs | 0:bab3be8d31cf | 10 | |
dudnwjs | 0:bab3be8d31cf | 11 | class BleMsg_Handler |
dudnwjs | 0:bab3be8d31cf | 12 | { |
dudnwjs | 0:bab3be8d31cf | 13 | public: |
dudnwjs | 0:bab3be8d31cf | 14 | |
dudnwjs | 0:bab3be8d31cf | 15 | BleMsg_Handler(void); |
dudnwjs | 0:bab3be8d31cf | 16 | ~BleMsg_Handler(void); |
dudnwjs | 0:bab3be8d31cf | 17 | void HandleBleMsg(uint8_t *msg); |
dudnwjs | 0:bab3be8d31cf | 18 | void HandleGapmCmpEvt(unsigned short msgid, struct gapm_cmp_evt *param, unsigned short dest_id, unsigned short src_id); |
dudnwjs | 0:bab3be8d31cf | 19 | |
dudnwjs | 0:bab3be8d31cf | 20 | private: |
dudnwjs | 0:bab3be8d31cf | 21 | |
dudnwjs | 0:bab3be8d31cf | 22 | |
dudnwjs | 0:bab3be8d31cf | 23 | }; |
dudnwjs | 0:bab3be8d31cf | 24 | |
dudnwjs | 0:bab3be8d31cf | 25 | |
dudnwjs | 0:bab3be8d31cf | 26 | #endif //__BLEMSG_HANDLER_H__ |