|
TuyaOS
|
Common process - the nbiot misc driver api 更多...
#include "tkl_nbiot_comm.h"

枚举 | |
| enum | TKL_MISC_CHIP_TYPE_E { TKL_CHIP_MTK2625 = 0 , TKL_CHIP_EC616 = 1 , TKL_CHIP_XY1100 = 2 , TKL_CHIP_MAX = 3 } |
函数 | |
| OPERATE_RET | tkl_nbiot_atcmd_serial_port_off (VOID) |
| set AT serial port off 更多... | |
| OPERATE_RET | tkl_nbiot_atcmd_serial_port_on (VOID) |
| set AT serial port on 更多... | |
| OPERATE_RET | tkl_nbiot_chip_type (TKL_MISC_CHIP_TYPE_E *out_type) |
| get the chip type 更多... | |
| OPERATE_RET | tkl_nbiot_fota_status_acquire (VOID) |
| some upgrade status needs to be obtained from the platform,such as NX1, others return directly 更多... | |
| OPERATE_RET | tkl_nbiot_fota_update_end (VOID) |
| notify fota update end, some platform need acquire this info to clear update status,such as NX1, others return directly 更多... | |
| OPERATE_RET | tkl_nbiot_fota_update_start (VOID) |
| notify fota update start, some platform need acquire this info then restart system,such as NX1, others return directly 更多... | |
| OPERATE_RET | tkl_nbiot_get_app_len (UINT_T *out_len) |
| get the app firmware space length 更多... | |
| OPERATE_RET | tkl_nbiot_get_app_offset (UINT_T *out_addr) |
| get the offset address of app firmware 更多... | |
| OPERATE_RET | tkl_nbiot_get_fota_len (UINT_T *out_len) |
| get the space legth to save firmware 更多... | |
| OPERATE_RET | tkl_nbiot_get_fota_offset (UINT_T *out_addr, UCHAR_T *_1st_data, UINT32_T _1st_data_size) |
| get the offset address to save firmware 更多... | |
| OPERATE_RET | tkl_nbiot_get_fota_trigger_flag_offset (UINT_T *out_addr) |
| get the offset address to save trigger fota indicator 更多... | |
| OPERATE_RET | tkl_nbiot_get_fota_update_info_offset (UINT_T *out_addr) |
| get the offset address to save update info 更多... | |
| BOOL_T | tkl_nbiot_is_atcmd_serial_port_on (VOID) |
| if AT serial port is on or off 更多... | |
Common process - the nbiot misc driver api
| OPERATE_RET tkl_nbiot_atcmd_serial_port_off | ( | VOID | ) |
set AT serial port off
| [in] | null |
| OPERATE_RET tkl_nbiot_atcmd_serial_port_on | ( | VOID | ) |
set AT serial port on
| [in] | null |
| OPERATE_RET tkl_nbiot_chip_type | ( | TKL_MISC_CHIP_TYPE_E * | out_type | ) |
get the chip type
| [in,out] | out_type | :output the chip type |
| OPERATE_RET tkl_nbiot_fota_status_acquire | ( | VOID | ) |
some upgrade status needs to be obtained from the platform,such as NX1, others return directly
| [in] | null |
| OPERATE_RET tkl_nbiot_fota_update_end | ( | VOID | ) |
notify fota update end, some platform need acquire this info to clear update status,such as NX1, others return directly
| [in] | null |
| OPERATE_RET tkl_nbiot_fota_update_start | ( | VOID | ) |
notify fota update start, some platform need acquire this info then restart system,such as NX1, others return directly
| [in] | null |
| OPERATE_RET tkl_nbiot_get_app_len | ( | UINT_T * | out_len | ) |
get the app firmware space length
| [in,out] | out_addr | :output the offset address |
| OPERATE_RET tkl_nbiot_get_app_offset | ( | UINT_T * | out_addr | ) |
get the offset address of app firmware
| [in,out] | out_addr | :output the offset address |
| OPERATE_RET tkl_nbiot_get_fota_len | ( | UINT_T * | out_len | ) |
get the space legth to save firmware
| [in,out] | out_addr | :output the offset address |
| OPERATE_RET tkl_nbiot_get_fota_offset | ( | UINT_T * | out_addr, |
| UCHAR_T * | _1st_data, | ||
| UINT32_T | _1st_data_size | ||
| ) |
get the offset address to save firmware
| [in,out] | out_addr | :output the offset address |
| [in,out] | _1st_data | :the first fota data pointer |
| [in,out] | _1st_data_size | :the first fota data length |
| OPERATE_RET tkl_nbiot_get_fota_trigger_flag_offset | ( | UINT_T * | out_addr | ) |
get the offset address to save trigger fota indicator
| [in,out] | out_addr | :output the offset address |
| OPERATE_RET tkl_nbiot_get_fota_update_info_offset | ( | UINT_T * | out_addr | ) |
get the offset address to save update info
| [in,out] | out_addr | :output the offset address |
| BOOL_T tkl_nbiot_is_atcmd_serial_port_on | ( | VOID | ) |
if AT serial port is on or off
| [in] | null |