TuyaOS
枚举 | 函数
tkl_nbiot_misc.h 文件参考

Common process - the nbiot misc driver api 更多...

#include "tkl_nbiot_comm.h"
tkl_nbiot_misc.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

枚举

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

函数说明

◆ tkl_nbiot_atcmd_serial_port_off()

OPERATE_RET tkl_nbiot_atcmd_serial_port_off ( VOID  )

set AT serial port off

参数
[in]null
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_nbiot_atcmd_serial_port_on()

OPERATE_RET tkl_nbiot_atcmd_serial_port_on ( VOID  )

set AT serial port on

参数
[in]null
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_nbiot_chip_type()

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
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_nbiot_fota_status_acquire()

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
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_nbiot_fota_update_end()

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
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_nbiot_fota_update_start()

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
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_nbiot_get_app_len()

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
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_nbiot_get_app_offset()

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
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_nbiot_get_fota_len()

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
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_nbiot_get_fota_offset()

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
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_nbiot_get_fota_trigger_flag_offset()

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
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_nbiot_get_fota_update_info_offset()

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
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_nbiot_is_atcmd_serial_port_on()

BOOL_T tkl_nbiot_is_atcmd_serial_port_on ( VOID  )

if AT serial port is on or off

参数
[in]null
返回
true: on Other: off