TuyaOS
tkl_zcl_ota.h
浏览该文件的文档.
1
11#ifndef __TKL_ZCL_OTA_H__
12#define __TKL_ZCL_OTA_H__
13
14#ifdef __cplusplus
15 extern "C" {
16#endif
17
18#include "tuya_cloud_types.h"
19
20/*
21 * zigbee ota end result micro
22 */
23#define ZG_OTA_DOWNLOAD_AND_VERIFY_SUCCESS 0
24#define ZG_OTA_DOWNLOAD_TIME_OUT 1
25#define ZG_OTA_VERIFY_FAILED 2
26#define ZG_OTA_SERVER_ABORTED 3
27#define ZG_OTA_CLIENT_ABORTED 4
28#define ZG_OTA_ERASE_FAILED 5
29
30
31typedef VOID_T (*TKL_ZG_OTA_START_CB)(UINT32_T image_size, VOID_T* argv);
32
33typedef VOID_T (*TKL_ZG_OTA_END_CB)(UINT8_T result);
34
35/*
36 * zigbee ota callback collection
37 */
38typedef struct {
39 // zigbee ota start callback
40 TKL_ZG_OTA_START_CB start_notify;
41 // zigbee ota end callback
42 TKL_ZG_OTA_END_CB end_notify;
44
51VOID_T tkl_zg_diff_ota_disable(BOOL_T is_enable);
52
60
61
62
75VOID_T tkl_ota_init(UINT_T app_ver, UINT16_T manuf_id, UINT16_T image_type);
76
77
88VOID_T tkl_ota_auto_query_enable(BOOL_T enable);
89
90#ifdef __cplusplus
91}
92#endif
93#endif
Definition: tkl_zcl_ota.h:38
VOID_T tkl_zg_diff_ota_disable(BOOL_T is_enable)
zigbee differential OTA disable(default enable)
OPERATE_RET tkl_zg_register_ota_cb(TKL_ZG_OTA_CB *ota_cb)
zigbee ota callback register
VOID_T tkl_ota_init(UINT_T app_ver, UINT16_T manuf_id, UINT16_T image_type)
ota init this API will insert to native SDK
VOID_T tkl_ota_auto_query_enable(BOOL_T enable)
ota auto query enable this API will insert to native SDK