9#ifndef __TKL_INIT_NBIOT_H__
10#define __TKL_INIT_NBIOT_H__
26 OPERATE_RET (*ctcc_lwm2m_deregister) (VOID);
27 OPERATE_RET (*ctcc_data_send) (UINT8_T* data, UINT_T data_len);
28 OPERATE_RET (*ctcc_lifetime_update) (UINT_T lifetime);
31 OPERATE_RET (*cmcc_deregister) (VOID);
32 OPERATE_RET (*cmcc_data_send) (UINT8_T* data, UINT_T data_len);
33 OPERATE_RET (*cmcc_lifetime_update) (UINT_T lifetime);
35 OPERATE_RET (*psm_plat_config) (VOID);
37 OPERATE_RET (*psm_create_sleeplock) (CONST PCHAR_T lock_name, UCHAR_T *handle);
38 OPERATE_RET (*psm_acquire_sleeplock) (UCHAR_T handle);
39 OPERATE_RET (*psm_release_sleeplock) (UCHAR_T handle);
40 VOID (*psm_force_sleep) (VOID);
41 OPERATE_RET (*psm_get_poweron_result) (TKL_NB_POWER_ON_RESULT_E *result);
42 OPERATE_RET (*psm_get_wakeup_source) (TKL_NB_WAKEUP_SOURCE_E *src);
43 OPERATE_RET (*psm_rtc_timer_create) (UINT_T time_period_sec, BOOL_T is_periodic,
TKL_NB_SLP_TIMER_CB_T cb);
44 OPERATE_RET (*psm_rtc_timer_start) (VOID);
45 OPERATE_RET (*psm_rtc_timer_stop) (VOID);
46 OPERATE_RET (*psm_rtc_timer_delete) (VOID);
47 BOOL_T (*psm_usb_is_active) (VOID);
48 OPERATE_RET (*psm_wakeup_pin_cfg) (INT_T pin_num,
TKL_NB_WAKEUP_CB wakeup_cb);
50 OPERATE_RET (*ril_init) (VOID);
51 OPERATE_RET (*ril_register_event_callback) (TKL_RIL_EVENT_SEND_T evt_cb,
TKL_RIL_EVENT_ID_T *evt_id);
52 OPERATE_RET (*ril_attach_event_inquire) (VOID);
53 BOOL_T (*ril_is_sim_ready) (VOID);
55 OPERATE_RET (*ril_get_t3324) (UINT_T *t3324);
56 OPERATE_RET (*ril_get_t3412) (UINT_T *t3412);
57 OPERATE_RET (*ril_set_t3412) (UINT_T req_time);
58 OPERATE_RET (*ril_set_t3324) (UINT_T req_time);
59 OPERATE_RET (*ril_set_apn) (PCHAR_T apn_name, PCHAR_T pdp_type);
60 OPERATE_RET (*ril_get_apn) (PCHAR_T apn);
61 OPERATE_RET (*ril_get_rssi) (INT_T *out_rssi);
62 OPERATE_RET (*ril_get_imsi) (PCHAR_T imsi);
63 OPERATE_RET (*ril_get_iccid) (PCHAR_T iccid);
65 OPERATE_RET (*ril_set_cfun) (UCHAR_T val);
66 OPERATE_RET (*ril_get_cfun) (INT_T *val);
67 OPERATE_RET (*ril_get_rf_flag) (INT_T *flag);
68 OPERATE_RET (*ril_set_imei) (PCHAR_T imei);
69 OPERATE_RET (*ril_get_imei) (PCHAR_T buf, UINT8_T len);
70 OPERATE_RET (*ril_release_rrc) (VOID);
71 OPERATE_RET (*ril_set_band) (PCHAR_T band_array_str);
72 OPERATE_RET (*ril_get_band) (PCHAR_T
pbuf, UCHAR_T len);
73 OPERATE_RET (*ril_psm_mode_enable) (UCHAR_T enable);
74 OPERATE_RET (*ril_edrx_mode_enable) (UCHAR_T enable);
75 OPERATE_RET (*ril_get_serving_cellid) (PCHAR_T
pbuf, UCHAR_T len);
78 OPERATE_RET (*misc_chip_type) (TKL_MISC_CHIP_TYPE_E *out_type);
79 BOOL_T (*misc_is_atcmd_serial_port_on) (VOID);
80 OPERATE_RET (*misc_atcmd_serial_port_off) (VOID);
81 OPERATE_RET (*misc_atcmd_serial_port_on) (VOID);
82 OPERATE_RET (*misc_get_app_offset) (UINT_T *out_addr);
83 OPERATE_RET (*misc_get_app_len) (UINT_T *out_len);
84 OPERATE_RET (*misc_fota_update_start) (VOID);
85 OPERATE_RET (*misc_fota_status_acquire) (VOID);
86 OPERATE_RET (*misc_fota_update_end) (VOID);
87 OPERATE_RET (*misc_get_fota_offset) (UINT_T *out_addr,UCHAR_T *_1st_data, UINT32_T _1st_data_size);
88 OPERATE_RET (*misc_get_fota_len) (UINT_T *out_len);
89 OPERATE_RET (*misc_get_fota_update_info_offset)(UINT_T *out_addr);
90 OPERATE_RET (*misc_get_fota_trigger_flag_offset)(UINT_T *out_addr);
Definition: tkl_nbiot_comm.h:31
Definition: tkl_init_nbiot.h:23
Definition: tkl_nbiot_ril.h:33
Definition: tkl_nbiot_ril.h:18
Definition: tkl_nbiot_ril.h:42
Definition: tkl_nbiot_ril.h:26
TKL_NBIOT_DESC_T * tkl_nbiot_desc_get(VOID_T)
register gpio description to tuya object manage
Common process - adapter the nbiot cmcc api
Common process - common defination
Common process - adapter the nbiot ctcc api
Common process - the nbiot misc driver api
Common process - adapter the nbiot psm api
VOID_T(* TKL_NB_WAKEUP_CB)(PVOID_T user_data)
prototype of the ext trigger call back
Definition: tkl_nbiot_psm.h:70
VOID_T(* TKL_NB_SLP_TIMER_CB_T)(PVOID_T user_data)
prototype of the sleep timer call back
Definition: tkl_nbiot_psm.h:63
VOID_T(* TKL_NB_PSM_NOTIFY_CB_T)(TKL_NB_PSM_SLP_TYPE_E sleep_type)
prototype of the PSM notify call back
Definition: tkl_nbiot_psm.h:56
Common process - adapter the nbiot ril api