LTE driver definitions. More...
Files | |
file | lte.h |
Classes | |
struct | lte_version |
struct | lte_getpin |
struct | lte_localtime |
struct | lte_quality |
struct | lte_neighbor_cell |
struct | lte_cellinfo |
struct | lte_edrx_setting |
struct | lte_psm_timeval |
struct | lte_psm_setting |
struct | lte_apn_setting |
struct | lte_ipaddr |
struct | lte_pdn |
struct | lte_reject_cause |
struct | lte_nw_err_info |
struct | lte_netinfo |
struct | lte_error_info |
struct | lte_ce_setting |
struct | lte_siminfo |
struct | lte_ratinfo |
struct | ltefw_injectdata_s |
Typedefs | |
typedef struct lte_version | lte_version_t |
typedef struct lte_getpin | lte_getpin_t |
typedef struct lte_localtime | lte_localtime_t |
typedef struct lte_quality | lte_quality_t |
typedef struct lte_neighbor_cell | lte_neighbor_cell_t |
typedef struct lte_cellinfo | lte_cellinfo_t |
typedef struct lte_edrx_setting | lte_edrx_setting_t |
typedef struct lte_psm_timeval | lte_psm_timeval_t |
typedef struct lte_psm_setting | lte_psm_setting_t |
typedef struct lte_apn_setting | lte_apn_setting_t |
typedef struct lte_ipaddr | lte_ipaddr_t |
typedef struct lte_pdn | lte_pdn_t |
typedef struct lte_reject_cause | lte_reject_cause_t |
typedef struct lte_nw_err_info | lte_nw_err_info_t |
typedef struct lte_netinfo | lte_netinfo_t |
typedef struct lte_error_info | lte_errinfo_t |
typedef struct lte_ce_setting | lte_ce_setting_t |
typedef struct lte_siminfo | lte_siminfo_t |
typedef struct lte_ratinfo | lte_ratinfo_t |
typedef void(* | get_ver_cb_t) (uint32_t result, lte_version_t *version) |
typedef void(* | get_phoneno_cb_t) (uint32_t result, uint8_t errcause, char *phoneno) |
typedef void(* | get_imsi_cb_t) (uint32_t result, uint8_t errcause, char *imsi) |
typedef void(* | get_imei_cb_t) (uint32_t result, char *imei) |
typedef void(* | get_pinset_cb_t) (uint32_t result, lte_getpin_t *pinset) |
typedef void(* | set_pinenable_cb_t) (uint32_t result, uint8_t attemptsleft) |
typedef void(* | change_pin_cb_t) (uint32_t result, uint8_t attemptsleft) |
typedef void(* | enter_pin_cb_t) (uint32_t result, uint8_t simstat, uint8_t attemptsleft) |
typedef void(* | get_localtime_cb_t) (uint32_t result, lte_localtime_t *localtime) |
typedef void(* | get_operator_cb_t) (uint32_t result, char *oper) |
typedef void(* | get_edrx_cb_t) (uint32_t result, lte_edrx_setting_t *settings) |
typedef void(* | set_edrx_cb_t) (uint32_t result) |
typedef void(* | get_psm_cb_t) (uint32_t result, lte_psm_setting_t *settings) |
typedef void(* | set_psm_cb_t) (uint32_t result) |
typedef void(* | get_ce_cb_t) (uint32_t result, lte_ce_setting_t *settings) |
typedef void(* | set_ce_cb_t) (uint32_t result) |
typedef void(* | simstat_report_cb_t) (uint32_t simstat) |
typedef void(* | localtime_report_cb_t) (lte_localtime_t *localtime) |
typedef void(* | quality_report_cb_t) (lte_quality_t *quality) |
typedef void(* | cellinfo_report_cb_t) (lte_cellinfo_t *cellinfo) |
typedef void(* | radio_on_cb_t) (uint32_t result) |
typedef void(* | radio_off_cb_t) (uint32_t result) |
typedef void(* | get_netinfo_cb_t) (uint32_t result, lte_netinfo_t *info) |
typedef void(* | get_imscap_cb_t) (uint32_t result, bool imscap) |
typedef void(* | activate_pdn_cb_t) (uint32_t result, lte_pdn_t *pdn) |
typedef void(* | deactivate_pdn_cb_t) (uint32_t result) |
typedef void(* | data_allow_cb_t) (uint32_t result) |
typedef void(* | restart_report_cb_t) (uint32_t reason) |
typedef void(* | netinfo_report_cb_t) (lte_netinfo_t *info) |
typedef void(* | get_siminfo_cb_t) (uint32_t result, lte_siminfo_t *siminfo) |
typedef void(* | get_dynamic_edrx_param_cb_t) (uint32_t result, lte_edrx_setting_t *param) |
typedef void(* | get_dynamic_psm_param_cb_t) (uint32_t result, lte_psm_setting_t *param) |
typedef void(* | get_current_edrx_cb_t) (uint32_t result, lte_edrx_setting_t *settings) |
typedef void(* | get_current_psm_cb_t) (uint32_t result, lte_psm_setting_t *settings) |
typedef void(* | get_quality_cb_t) (uint32_t result, lte_quality_t *quality) |
typedef void(* | context_save_cb_t) (uint8_t *data, int size) |
LTE driver definitions.
#define LTE_RESULT_OK (0) |
Result code on success
#define LTE_RESULT_ERROR (1) |
Result code on failure
#define LTE_RESULT_CANCEL (2) |
Result code on cancel
#define LTE_VALID (true) |
Valid
#define LTE_INVALID (false) |
Invalid
#define LTE_ENABLE (true) |
Enable
#define LTE_DISABLE (false) |
Disable
#define LTE_ERR_WAITENTERPIN (1) |
Waiting for PIN enter
#define LTE_ERR_REJECT (2) |
Rejected from the network
#define LTE_ERR_MAXRETRY (3) |
No response from the network
#define LTE_ERR_BARRING (4) |
Network barring
#define LTE_ERR_DETACHED (5) |
Network detached
#define LTE_ERR_UNEXPECTED (255) |
Unexpected cause
#define LTE_SESSION_ID_MIN (1) |
Minimum value of session ID
#define LTE_SESSION_ID_MAX (5) |
Maximum value of session ID
#define LTE_NETSTAT_NOT_REG_NOT_SEARCHING (0) |
Network status: Not registered, MT is not currently searching a new operator to register to
#define LTE_NETSTAT_REG_HOME (1) |
Network status: Registered, home network
#define LTE_NETSTAT_NOT_REG_SEARCHING (2) |
Network status: Not registered, but MT is currently searching a new operator to register to
#define LTE_NETSTAT_REG_DENIED (3) |
Network status: Registration denied
#define LTE_NETSTAT_UNKNOWN (4) |
Network status: Unknown
#define LTE_NETSTAT_REG_ROAMING (5) |
Network status: Registered, roaming
#define LTE_NETSTAT_REG_SMS_ONLY_HOME (6) |
Network status: Registered for "SMS only", home network
#define LTE_NETSTAT_REG_SMS_ONLY_ROAMING (7) |
Network status: Registered for "SMS only", roaming
#define LTE_NETSTAT_NOT_REG_EMERGENCY (8) |
Network status: Attached for emergency bearer services only
#define LTE_NETSTAT_REG_CSFB_NOT_PREF_HOME (9) |
Network status: Registered for "CSFB not preferred", home network
#define LTE_NETSTAT_REG_CSFB_NOT_PREF_ROAMING (10) |
Network status: Registered for "CSFB not preferred", roaming
#define LTE_APN_LEN (101) |
The maximum string length of the APN name
#define LTE_APN_USER_NAME_LEN (64) |
The maximum string length of the APN user name
#define LTE_APN_PASSWD_LEN (32) |
The maximum string length of the APN password
#define LTE_IPTYPE_V4 (0) |
Internet protocol type: IPv4
#define LTE_IPTYPE_V6 (1) |
Internet protocol type: IPv6
#define LTE_IPTYPE_V4V6 (2) |
Internet protocol type: IPv4/v6
#define LTE_IPTYPE_NON (3) |
Internet protocol type: Non-IP Data Delivery
#define LTE_APN_AUTHTYPE_NONE (0) |
PPP authentication type: NONE
#define LTE_APN_AUTHTYPE_PAP (1) |
PPP authentication type: PAP
#define LTE_APN_AUTHTYPE_CHAP (2) |
PPP authentication type: CHAP
#define LTE_APN_TYPE_UNKNOWN (0x01) |
APN type: Unknown
#define LTE_APN_TYPE_DEFAULT (0x02) |
APN type: Default data traffic
#define LTE_APN_TYPE_MMS (0x04) |
APN type: MMS traffic(Multimedia Messaging Service)
#define LTE_APN_TYPE_SUPL (0x08) |
APN type: SUPL assisted GPS
#define LTE_APN_TYPE_DUN (0x10) |
APN type: DUN traffic(Dial Up Networking bridge )
#define LTE_APN_TYPE_HIPRI (0x20) |
APN type: HiPri traffic(High Priority Mobile data)
#define LTE_APN_TYPE_FOTA (0x40) |
APN type: FOTA(Firmware On The Air)
#define LTE_APN_TYPE_IMS (0x80) |
APN type: IMS(IP Multimedia Subsystem)
#define LTE_APN_TYPE_CBS (0x100) |
APN type: CBS(Carrier Branded Services)
#define LTE_APN_TYPE_IA (0x200) |
APN type: IA(Initial Attach APN)
#define LTE_APN_TYPE_EMERGENCY (0x400) |
APN type: Emergency PDN
#define LTE_NETERR_MAXRETRY (0) |
Network error type: MAX_RETRY
#define LTE_NETERR_REJECT (1) |
Network error type: REJECT
#define LTE_NETERR_NWDTCH (2) |
Network error type: Network Detach
#define LTE_REJECT_CATEGORY_EMM (0) |
Network reject category: NAS-EMM
#define LTE_REJECT_CATEGORY_ESM (1) |
Network reject category: NAS-ESM
#define LTE_VER_BB_PRODUCT_LEN (32) |
Length of character string for BB product
#define LTE_VER_NP_PACKAGE_LEN (32) |
Length of character string for NP package
#define LTE_VER_FIRMWARE_LEN (32) |
Length of character string for firmware version
#define LTE_PINSTAT_READY (0) |
PIN status: Not pending for any password
#define LTE_PINSTAT_SIM_PIN (1) |
PIN status: Waiting SIM PIN to be given
#define LTE_PINSTAT_SIM_PUK (2) |
PIN status: Waiting SIM PUK to be given
#define LTE_PINSTAT_PH_SIM_PIN (3) |
PIN status: Waiting phone to SIM card password to be given
#define LTE_PINSTAT_PH_FSIM_PIN (4) |
PIN status: Waiting phone-to-very first SIM card password to be given
#define LTE_PINSTAT_PH_FSIM_PUK (5) |
PIN status: Waiting phone-to-very first SIM card unblocking password to be given
#define LTE_PINSTAT_SIM_PIN2 (6) |
PIN status: Waiting SIM PIN2 to be given
#define LTE_PINSTAT_SIM_PUK2 (7) |
PIN status: Waiting SIM PUK2 to be given
#define LTE_PINSTAT_PH_NET_PIN (8) |
PIN status: Waiting network personalization password to be given
#define LTE_PINSTAT_PH_NET_PUK (9) |
PIN status: Waiting network personalization unblocking password to be given
#define LTE_PINSTAT_PH_NETSUB_PIN (10) |
PIN status: Waiting network subset personalization password to be given
#define LTE_PINSTAT_PH_NETSUB_PUK (11) |
PIN status: Waiting network subset personalization unblocking password to be given
#define LTE_PINSTAT_PH_SP_PIN (12) |
PIN status: Waiting service provider personalization password to be given
#define LTE_PINSTAT_PH_SP_PUK (13) |
PIN status: Waiting service provider personalization unblocking password to be given
#define LTE_PINSTAT_PH_CORP_PIN (14) |
PIN status: Waiting corporate personalization password to be given
#define LTE_PINSTAT_PH_CORP_PUK (15) |
PIN status: Waiting corporate personalization unblocking password to be given
#define LTE_TARGET_PIN (0) |
Select of PIN change
#define LTE_TARGET_PIN2 (1) |
Select of PIN2 change
#define LTE_SIMSTAT_REMOVAL (0) |
SIM status: SIM removal signal detected
#define LTE_SIMSTAT_INSERTION (1) |
SIM status: SIM insertion signal detected
#define LTE_SIMSTAT_WAIT_PIN_UNLOCK (2) |
SIM status: SIM init passed, wait for PIN unlock
#define LTE_SIMSTAT_PERSONAL_FAILED (3) |
SIM status: Personalization failed, wait for run-time depersonalization
#define LTE_SIMSTAT_ACTIVATE (4) |
SIM status: Activation completed. Event is sent always at any SIM activation completion
#define LTE_SIMSTAT_DEACTIVATE (5) |
SIM status: SIM is deactivated
#define LTE_MCC_DIGIT (3) |
Digit number of Mobile Country Code
#define LTE_MNC_DIGIT_MAX (3) |
Max digit number of Mobile Network Code
#define LTE_EDRX_ACTTYPE_WBS1 (0) |
E-UTRAN (WB-S1 mode)
#define LTE_EDRX_ACTTYPE_NBS1 (1) |
E-UTRAN (NB-S1 mode)
#define LTE_EDRX_ACTTYPE_ECGSMIOT (2) |
EC-GSM-IoT (A/Gb mode)
#define LTE_EDRX_ACTTYPE_GSM (3) |
GSM (A/Gb mode)
#define LTE_EDRX_ACTTYPE_IU (4) |
UTRAN (Iu mode)
#define LTE_EDRX_ACTTYPE_NOTUSE (5) |
eDRX is not running
#define LTE_EDRX_CYC_512 (0) |
eDRX cycle: 5.12 sec
#define LTE_EDRX_CYC_1024 (1) |
eDRX cycle: 10.24 sec
#define LTE_EDRX_CYC_2048 (2) |
eDRX cycle: 20.48 sec
#define LTE_EDRX_CYC_4096 (3) |
eDRX cycle: 40.96 sec
#define LTE_EDRX_CYC_6144 (4) |
eDRX cycle: 61.44 sec
#define LTE_EDRX_CYC_8192 (5) |
eDRX cycle: 81.92 sec
#define LTE_EDRX_CYC_10240 (6) |
eDRX cycle: 102.40 sec
#define LTE_EDRX_CYC_12288 (7) |
eDRX cycle: 122.88 sec
#define LTE_EDRX_CYC_14336 (8) |
eDRX cycle: 143.36 sec
#define LTE_EDRX_CYC_16384 (9) |
eDRX cycle: 163.84 sec
#define LTE_EDRX_CYC_32768 (10) |
eDRX cycle: 327.68 sec
#define LTE_EDRX_CYC_65536 (11) |
eDRX cycle: 655.36 sec
#define LTE_EDRX_CYC_131072 (12) |
eDRX cycle: 1310.72 sec
#define LTE_EDRX_CYC_262144 (13) |
eDRX cycle: 2621.44 sec
#define LTE_EDRX_CYC_524288 (14) |
eDRX cycle: 5242.88 sec
#define LTE_EDRX_CYC_1048576 (15) |
eDRX cycle: 10485.76 sec
#define LTE_EDRX_PTW_128 (0) |
Paging time window: 1.28 sec
#define LTE_EDRX_PTW_256 (1) |
Paging time window: 2.56 sec
#define LTE_EDRX_PTW_384 (2) |
Paging time window: 3.84 sec
#define LTE_EDRX_PTW_512 (3) |
Paging time window: 5.12 sec
#define LTE_EDRX_PTW_640 (4) |
Paging time window: 6.40 sec
#define LTE_EDRX_PTW_768 (5) |
Paging time window: 7.68 sec
#define LTE_EDRX_PTW_896 (6) |
Paging time window: 8.96 sec
#define LTE_EDRX_PTW_1024 (7) |
Paging time window: 10.24 sec
#define LTE_EDRX_PTW_1152 (8) |
Paging time window: 11.52 sec
#define LTE_EDRX_PTW_1280 (9) |
Paging time window: 12.80 sec
#define LTE_EDRX_PTW_1408 (10) |
Paging time window: 14.08 sec
#define LTE_EDRX_PTW_1536 (11) |
Paging time window: 15.36 sec
#define LTE_EDRX_PTW_1664 (12) |
Paging time window: 16.64 sec
#define LTE_EDRX_PTW_1792 (13) |
Paging time window: 17.92 sec
#define LTE_EDRX_PTW_1920 (14) |
Paging time window: 19.20 sec
#define LTE_EDRX_PTW_2048 (15) |
Paging time window: 20.48 sec
#define LTE_EDRX_PTW_2304 (16) |
Paging time window: 23.04 sec
#define LTE_EDRX_PTW_2560 (17) |
Paging time window: 25.60 sec
#define LTE_EDRX_PTW_2816 (18) |
Paging time window: 28.16 sec
#define LTE_EDRX_PTW_3072 (19) |
Paging time window: 30.72 sec
#define LTE_EDRX_PTW_3328 (20) |
Paging time window: 33.28 sec
#define LTE_EDRX_PTW_3584 (21) |
Paging time window: 35.84 sec
#define LTE_EDRX_PTW_3840 (22) |
Paging time window: 38.40 sec
#define LTE_EDRX_PTW_4096 (23) |
Paging time window: 40.96 sec
#define LTE_PSM_T3324_UNIT_2SEC (0) |
Unit of request active time(T3324): 2 sec
#define LTE_PSM_T3324_UNIT_1MIN (1) |
Unit of request active time(T3324): 1 min
#define LTE_PSM_T3324_UNIT_6MIN (2) |
Unit of request active time(T3324): 6 min
#define LTE_PSM_T3324_UNIT_DEACT (3) |
Unit of request active time(T3324): The value indicates that the timer is deactivated.
#define LTE_PSM_T3412_UNIT_2SEC (0) |
Unit of extended periodic TAU time(T3412): 2 sec
#define LTE_PSM_T3412_UNIT_30SEC (1) |
Unit of extended periodic TAU time(T3412): 30 sec
#define LTE_PSM_T3412_UNIT_1MIN (2) |
Unit of extended periodic TAU time(T3412): 1 min
#define LTE_PSM_T3412_UNIT_10MIN (3) |
Unit of extended periodic TAU time(T3412): 10 min
#define LTE_PSM_T3412_UNIT_1HOUR (4) |
Unit of extended periodic TAU time(T3412): 1 hour
#define LTE_PSM_T3412_UNIT_10HOUR (5) |
Unit of extended periodic TAU time(T3412): 10 hour
#define LTE_PSM_T3412_UNIT_320HOUR (6) |
Unit of extended periodic TAU time(T3412): 320 hour
#define LTE_PSM_T3412_UNIT_DEACT (7) |
Unit of extended periodic TAU time(T3412): The value indicates that the timer is deactivated.
#define LTE_PSM_TIMEVAL_MIN (0) |
The minimum timer value used by PSM related timers
#define LTE_PSM_TIMEVAL_MAX (31) |
The maximum timer value used by PSM related timers
#define LTE_IPADDR_MAX_LEN (40) |
Maximum length of the IP address
#define LTE_PDN_SESSIONID_INVALID_ID (0) |
Invalid Session ID
#define LTE_PDN_SESSIONID_MIN (LTE_PDN_SESSIONID_INVALID_ID) |
Minimum value of Session ID
#define LTE_PDN_SESSIONID_MAX (255) |
Maximum value of Session ID
#define LTE_PDN_DEACTIVE (0) |
PDN status: Not active
#define LTE_PDN_ACTIVE (1) |
PDN status: Active
#define LTE_PDN_IPADDR_MAX_COUNT (2) |
Maximum number of IP addresses
#define LTE_IMS_NOT_REGISTERED (0) |
IMS status: Not registered
#define LTE_IMS_REGISTERED (1) |
IMS status: Registered
#define LTE_DATA_DISALLOW (0) |
Data communication: Not allow
#define LTE_DATA_ALLOW (1) |
Data communication: Allow
#define LTE_RESTART_USER_INITIATED (0) |
Modem restart cause: User initiated
#define LTE_RESTART_MODEM_INITIATED (1) |
Modem restart cause: Modem initiated
#define LTE_RESTART_VERSION_ERROR (2) |
Modem restart cause: Modem firmware version error
#define LTE_ERR_INDICATOR_ERRCODE (0x01) |
Error indicator for error code
#define LTE_ERR_INDICATOR_ERRNO (0x02) |
Error indicator for error number
#define LTE_ERR_INDICATOR_ERRSTR (0x04) |
Error indicator for error string
#define LTE_ERROR_STRING_MAX_LEN (64) |
Maximum length of the error string
#define LTE_SIMINFO_GETOPT_MCCMNC (1 << 0) |
Indicates to get for Mobile Country Code/Mobile Network Code of SIM
#define LTE_SIMINFO_GETOPT_SPN (1 << 1) |
Indicates to get for SPN of SIM
#define LTE_SIMINFO_GETOPT_ICCID (1 << 2) |
Indicates to get for ICCID of SIM
#define LTE_SIMINFO_GETOPT_IMSI (1 << 3) |
Indicates to get for IMSI of SIM
#define LTE_SIMINFO_GETOPT_GID1 (1 << 4) |
Indicates to get for GID1(Group Identifier Level 1) of SIM
#define LTE_SIMINFO_GETOPT_GID2 (1 << 5) |
Indicates to get for GID2(Group Identifier Level 2) of SIM
#define LTE_SIMINFO_SPN_LEN (16) |
Maximum length of SPN
#define LTE_SIMINFO_ICCID_LEN (10) |
Maximum length of ICCCID
#define LTE_SIMINFO_IMSI_LEN (15) |
Maximum length of IMSI
#define LTE_SIMINFO_GID_LEN (128) |
Maximum length of GID
#define LTE_PHONENO_LEN (41) |
Maximum length of phone number that includes a null terminater
#define LTE_IMEI_LEN (16) |
Maximum length of IMEI that includes a null terminater
#define LTE_OPERATOR_LEN (17) |
Maximum length of network operator that includes a null terminater
#define LTE_IMSI_LEN (LTE_SIMINFO_IMSI_LEN + 1) |
Maximum length of IMSI that includes a null terminater
#define LTE_CELLINFO_OPT_GCID (1 << 0) |
Indicates that the global cell ID can be referenced
#define LTE_CELLINFO_OPT_AREACODE (1 << 1) |
Indicates that the tracking area code can be referenced
#define LTE_CELLINFO_OPT_SFN (1 << 2) |
Indicates that the sub frame number can be referenced
#define LTE_CELLINFO_OPT_RSRP (1 << 3) |
Indicates that the RSRP can be referenced
#define LTE_CELLINFO_OPT_RSRQ (1 << 4) |
Indicates that the RSRQ can be referenced
#define LTE_CELLINFO_OPT_TIMEDIFFIDX (1 << 5) |
Indicates that the time difference index can be referenced
#define LTE_CELLINFO_OPT_TA (1 << 6) |
Indicates that the timing advance can be referenced
#define LTE_CELLINFO_OPT_NEIGHBOR (1 << 7) |
Indicates that the neighbor cell can be referenced
#define LTE_NEIGHBOR_CELL_MAX (32) |
Maximum number of neighbor cells
#define LTE_RAT_CATM (2) |
RAT type: Cat-M
#define LTE_RAT_NBIOT (3) |
RAT type: NB-IoT
#define LTE_RAT_MODE_SINGLE (0) |
Modem only supports single RAT
#define LTE_RAT_MODE_MULTIPLE (1) |
Modem supports multiple RAT
#define LTE_RAT_SOURCE_DEFAULT (0) |
RAT has not changed since the last modem boot.
#define LTE_RAT_SOURCE_HOST (1) |
The current RAT was determined by host.
#define LTE_RAT_SOURCE_LWM2M (2) |
The current RAT was determined by LWM2M.
#define LTE_AT_COMMAND_MAX_LEN (2048) |
Maximum length of AT command
#define LTEFW_INJECTION_MODE_NEW (0) |
Inject delta image from the beginning.
#define LTEFW_INJECTION_MODE_APPEND (1) |
Inject delta image from the continuation.
#define LTEFW_RESULT_OK (0x0000) |
LTEFW result code OK
#define LTEFW_RESULT_NOT_ENOUGH_INJECTSTORAGE (-1) |
Not enough space for storage for injection
#define LTEFW_RESULT_DELTAIMAGE_HDR_CRC_ERROR (-2) |
CRC check error in header part of delta image
#define LTEFW_RESULT_DELTAIMAGE_HDR_UNSUPPORTED (-3) |
Unsupported header type of delta image
#define LTEFW_RESULT_PRECHK_SET_DELTAIMAGE_FAILED (-4) |
Failed to set delta image
#define LTEFW_RESULT_DELTAUPDATE_FAILED (-5) |
Failed to delta update
#define LTEFW_RESULT_PRECHK_DELTAIMAGE_MISSING (-6) |
Not found delta image
#define LTEFW_RESULT_PRECHK_OOM (-7) |
Out of memory that prepare for update
#define LTEFW_RESULT_PRECHK_SIZE_ERROR (-8) |
Invalid size of delta image
#define LTEFW_RESULT_PRECHK_PKG_ERROR (-9) |
Wrong delta image package
#define LTEFW_RESULT_PRECHK_CRC_ERROR (-10) |
CRC check error in delta image
#define LTEFW_RESULT_DELTAUPDATE_NORESULT (-11) |
There is no update result
typedef void(* get_ver_cb_t) (uint32_t result, lte_version_t *version) |
Definition of callback function.
Since lte_get_version() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_version(). As below value stored. |
[in] | version | : The version information of the modem. See lte_version_t |
typedef void(* get_phoneno_cb_t) (uint32_t result, uint8_t errcause, char *phoneno) |
Definition of callback function.
Since lte_get_phoneno() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_phoneno(). As below value stored. |
[in] | errcause | : Error cause. It is set only if the result is not successful. As below value stored. |
[in] | phoneno | : A character string indicating phone number. It is terminated with '\0' |
typedef void(* get_imsi_cb_t) (uint32_t result, uint8_t errcause, char *imsi) |
Definition of callback function.
Since lte_get_imsi() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_imsi(). As below value stored. |
[in] | errcause | : Error cause. It is set only if the result is not successful. As below value stored. |
[in] | imsi | : A character string indicating IMSI. It is terminated with '\0' |
typedef void(* get_imei_cb_t) (uint32_t result, char *imei) |
Definition of callback function.
Since lte_get_imei() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_imei(). As below value stored. |
[in] | imei | : A character string indicating IMEI. It is terminated with '\0' |
typedef void(* get_pinset_cb_t) (uint32_t result, lte_getpin_t *pinset) |
Definition of callback function.
Since lte_get_pinset() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_pinset(). As below value stored. |
[in] | pinset | : PIN settings information. See lte_getpin_t |
typedef void(* set_pinenable_cb_t) (uint32_t result, uint8_t attemptsleft) |
Definition of callback function.
Since lte_set_pinenable() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_set_pinenable(). As below value stored. |
[in] | attemptsleft | : Number of attempts left. It is set only if the result is not successful. |
typedef void(* change_pin_cb_t) (uint32_t result, uint8_t attemptsleft) |
Definition of callback function.
Since lte_change_pin() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_change_pin(). As below value stored. |
[in] | attemptsleft | : Number of attempts left. It is set only if the result is not successful. |
typedef void(* enter_pin_cb_t) (uint32_t result, uint8_t simstat, uint8_t attemptsleft) |
Definition of callback function.
Since lte_enter_pin() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_enter_pin(). As below value stored. |
[in] | simstat | : State after PIN enter. As below value stored.
|
[in] | attemptsleft | : Number of attempts left. It is set only if the result is not successful. If simstat is other than PIN, PUK, PIN2, PUK2, set the number of PIN. |
typedef void(* get_localtime_cb_t) (uint32_t result, lte_localtime_t *localtime) |
Definition of callback function.
Since lte_get_localtime() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_localtime(). As below value stored. |
[in] | localtime | : Local time. See lte_localtime_t |
typedef void(* get_operator_cb_t) (uint32_t result, char *oper) |
Definition of callback function.
Since lte_get_operator() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_operator(). As below value stored. |
[in] | oper | : A character string indicating network operator. It is terminated with '\0' If it is not connected, the first character is '\0'. |
typedef void(* get_edrx_cb_t) (uint32_t result, lte_edrx_setting_t *settings) |
Definition of callback function.
Since lte_get_edrx() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_edrx(). As below value stored. |
[in] | settings | : eDRX settings. See lte_edrx_setting_t |
typedef void(* set_edrx_cb_t) (uint32_t result) |
Definition of callback function.
Since lte_set_edrx() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_set_edrx(). As below value stored. |
typedef void(* get_psm_cb_t) (uint32_t result, lte_psm_setting_t *settings) |
Definition of callback function.
Since lte_get_psm() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_psm(). As below value stored. |
[in] | settings | : PSM settings. See lte_psm_setting_t |
typedef void(* set_psm_cb_t) (uint32_t result) |
Definition of callback function.
Since lte_set_psm() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_set_psm(). As below value stored. |
typedef void(* get_ce_cb_t) (uint32_t result, lte_ce_setting_t *settings) |
Definition of callback function.
Since lte_get_ce() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_ce(). As below value stored. |
[in] | settings | : CE settings. See lte_ce_setting_t |
typedef void(* set_ce_cb_t) (uint32_t result) |
Definition of callback function.
Since lte_set_ce() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_set_ce(). As below value stored. |
typedef void(* simstat_report_cb_t) (uint32_t simstat) |
Definition of callback function.
When the SIM state changes, the SIM state is reported by this function.
[in] | simstat | : The SIM state. As below value stored. |
typedef void(* localtime_report_cb_t) (lte_localtime_t *localtime) |
Definition of callback function.
When the local time changes, the local time is reported by this function.
[in] | localtime | : Local time. See lte_localtime_t |
typedef void(* quality_report_cb_t) (lte_quality_t *quality) |
Definition of callback function.
The quality information is reported by this function. It is reported at intervals of the set report period.
[in] | quality | : Quality information. See lte_quality_t |
typedef void(* cellinfo_report_cb_t) (lte_cellinfo_t *cellinfo) |
Definition of callback function.
The cell information is reported by this function. It is reported at intervals of the set report period.
[in] | cellinfo | : Cell information. See lte_cellinfo_t |
typedef void(* radio_on_cb_t) (uint32_t result) |
Definition of callback function.
Since lte_radio_on() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_radio_on(). As below value stored. |
typedef void(* radio_off_cb_t) (uint32_t result) |
Definition of callback function.
Since lte_radio_off() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_radio_off(). As below value stored. |
typedef void(* get_netinfo_cb_t) (uint32_t result, lte_netinfo_t *info) |
Definition of callback function.
Since lte_get_netinfo() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_netinfo(). As below value stored. |
[in] | info | : Pointer of LTE network information. See lte_netinfo_t |
typedef void(* get_imscap_cb_t) (uint32_t result, bool imscap) |
Definition of callback function.
Since lte_get_imscap() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_imscap. As below value stored. |
[in] | imscap | : The IMS capability. As below value stored. |
typedef void(* activate_pdn_cb_t) (uint32_t result, lte_pdn_t *pdn) |
Definition of callback function.
Since lte_activate_pdn() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_activate_pdn. As below value stored. |
[in] | pdn | : The connect pdn information. See lte_pdn_t |
typedef void(* deactivate_pdn_cb_t) (uint32_t result) |
Definition of callback function.
Since lte_deactivate_pdn() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_deactivate_pdn. As below value stored. |
typedef void(* data_allow_cb_t) (uint32_t result) |
Definition of callback function.
Since lte_dataallow() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_dataallow. As below value stored. |
typedef void(* restart_report_cb_t) (uint32_t reason) |
Definition of callback function.
The modem restart is reported by this function. It is reported at modem reset.
[in] | reason | : Reason of modem restart. As below value stored. |
typedef void(* netinfo_report_cb_t) (lte_netinfo_t *info) |
Definition of callback function.
The change LTE network information is reported by this function. It is reported at LTE network connection status.
[in] | info | : Pointer of LTE network information. See lte_netinfo_t |
typedef void(* get_siminfo_cb_t) (uint32_t result, lte_siminfo_t *siminfo) |
Definition of callback function.
Since lte_get_siminfo() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_siminfo(). As below value stored. |
[in] | siminfo | : SIM information. See lte_siminfo_t |
typedef void(* get_dynamic_edrx_param_cb_t) (uint32_t result, lte_edrx_setting_t *param) |
Definition of callback function.
Since lte_get_dynamic_edrx_param() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_dynamic_edrx_param(). As below value stored. |
[in] | param | : eDRX dynamic parameter. See lte_edrx_setting_t. |
typedef void(* get_dynamic_psm_param_cb_t) (uint32_t result, lte_psm_setting_t *param) |
Definition of callback function.
Since lte_get_dynamic_psm_param() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_dynamic_psm_param(). As below value stored. |
[in] | param | : PSM dynamic parameter. See lte_psm_setting_t |
typedef void(* get_current_edrx_cb_t) (uint32_t result, lte_edrx_setting_t *settings) |
Definition of callback function.
Since lte_get_current_edrx() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_current_edrx(). As below value stored. |
[in] | settings | : Current eDRX settings. See lte_edrx_setting_t. |
typedef void(* get_current_psm_cb_t) (uint32_t result, lte_psm_setting_t *settings) |
Definition of callback function.
Since lte_get_current_psm() is an asynchronous API, the result is notified by this function.
[in] | result | : The result of lte_get_current_psm(). As below value stored. |
[in] | settings | : Current PSM settings. See lte_psm_setting_t |
typedef void(* get_quality_cb_t) (uint32_t result, lte_quality_t *quality) |
Definition of callback function.
Since lte_get_quality() is an asynchronous API, the quality information is notified by this function.
[in] | result | : The result of lte_get_quality(). As below value stored. |
[in] | quality | : Quality information. See lte_quality_t |
typedef void(* context_save_cb_t) (uint8_t *data, int size) |
Definition of callback function.
This callback function is used for nitifying a daemon context data for resume.
[in] | data | : Context data body. |
[in] | size | : Context data size |