12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #include "ZComDef.h"
- #include "MT.h"
- #include "APSMEDE.h"
- #include "AF.h"
- #include "ota_common.h"
- #if !defined( WIN32 )
- #include "OnBoard.h"
- #endif
- typedef struct
- {
- osal_event_hdr_t hdr;
- uint8 cmd;
- uint8 data[];
- } OTA_MtMsg_t;
- #define MT_OTA_FILE_READ_REQ_LEN 26
- #define MT_OTA_FILE_READ_RSP_LEN 26
- #define MT_OTA_GET_IMG_MSG_LEN 31
- extern uint8 MT_OtaCommandProcessing(uint8* pBuf);
- extern uint8 MT_OtaFileReadReq(afAddrType_t *pAddr, zclOTA_FileID_t *pFileId,
- uint8 len, uint32 offset);
- extern uint8 MT_OtaGetImage(afAddrType_t *pAddr, zclOTA_FileID_t *pFileId,
- uint16 hwVer, uint8 *ieee, uint8 options);
- extern uint8 MT_OtaSendStatus(uint16 shortAddr, uint8 type, uint8 status, uint8 optional);
- extern void MT_OtaRegister(uint8 taskId);
|