|
TuyaOS
|
Common process - Initialization 更多...
#include "tal_ota.h"
枚举 | |
| enum | OTA_TYPE { AIR_OTA_TYPE , UART_OTA_TYPE } |
函数 | |
| int | tuya_hal_ota_data_process (const unsigned int total_len, const unsigned int offset, const unsigned char *data, const unsigned int len, unsigned int *remain_len, void *pri_data) |
| Ota data packet processing 更多... | |
| int | tuya_hal_ota_end_inform (BOOL_T reset) |
| Ota data transfer completion notification 更多... | |
| int | tuya_hal_ota_start_inform (unsigned int file_size, OTA_TYPE type) |
| Start upgrade notification 更多... | |
| VOID_T | tuya_os_ota_intf_init (VOID_T) |
| Ota interface initialization 更多... | |
Common process - Initialization
| int tuya_hal_ota_data_process | ( | const unsigned int | total_len, |
| const unsigned int | offset, | ||
| const unsigned char * | data, | ||
| const unsigned int | len, | ||
| unsigned int * | remain_len, | ||
| void * | pri_data | ||
| ) |
Ota data packet processing
| [in] | total_len | total lenth of upgrade package |
| [in] | offset | offset of current data in upgrade package |
| [in] | data | ota data |
| [in] | len | ota data length |
| [out] | remain_len | the length of data that has been distributed internally but not yet processed |
| [in] | pri_data | reserved data |
| int tuya_hal_ota_end_inform | ( | BOOL_T | reset | ) |
Ota data transfer completion notification
| [in] | reset | if need reset or not |
| int tuya_hal_ota_start_inform | ( | unsigned int | file_size, |
| OTA_TYPE | type | ||
| ) |
Start upgrade notification
| [in] | file_size | file size |
| [in] | type | ota type |
| VOID_T tuya_os_ota_intf_init | ( | VOID_T | ) |
Ota interface initialization
| VOID |