TuyaOS
tal_ota.h
浏览该文件的文档.
1
11#ifndef __TAL_OTA_H__
12#define __TAL_OTA_H__
13
14#include "tuya_cloud_types.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20/***********************************************************************
21 ********************* constant ( macro and enum ) *********************
22 **********************************************************************/
23
24
25/***********************************************************************
26 ********************* struct ******************************************
27 **********************************************************************/
28
29
30/***********************************************************************
31 ********************* variable ****************************************
32 **********************************************************************/
33
34
35/***********************************************************************
36 ********************* function ****************************************
37 **********************************************************************/
38
47OPERATE_RET tal_ota_get_ability(UINT32_T *image_size, TUYA_OTA_TYPE_E *type);
48
58OPERATE_RET tal_ota_start_notify(UINT32_T image_size, TUYA_OTA_TYPE_E type, TUYA_OTA_PATH_E path);
59
68OPERATE_RET tal_ota_data_process(TUYA_OTA_DATA_T *pack, UINT32_T* remain_len);
69
77OPERATE_RET tal_ota_end_notify(BOOL_T reset);
78
86OPERATE_RET tal_ota_get_old_firmware_info(TUYA_OTA_FIRMWARE_INFO_T **info);
87
88
89#ifdef __cplusplus
90}
91#endif
92
93#endif /* __TAL_OTA_H__ */
94
OPERATE_RET tal_ota_start_notify(UINT32_T image_size, TUYA_OTA_TYPE_E type, TUYA_OTA_PATH_E path)
This API is used for ota start notify
OPERATE_RET tal_ota_get_old_firmware_info(TUYA_OTA_FIRMWARE_INFO_T **info)
This API is used for old firmware info, and only used in resumes transmission at break-points
OPERATE_RET tal_ota_get_ability(UINT32_T *image_size, TUYA_OTA_TYPE_E *type)
This API is used for get chip ota ability diff package upgrade use TUYA_OTA_DIFF
OPERATE_RET tal_ota_data_process(TUYA_OTA_DATA_T *pack, UINT32_T *remain_len)
This API is used for ota data process
OPERATE_RET tal_ota_end_notify(BOOL_T reset)
This API is used for ota end notify