|
libpack
SLQS03.03.10
|
Go to the source code of this file.
Data Structures | |
| struct | pack_qmi_t |
| struct | unpack_qmi_t |
Macros | |
| #define | SDU_HDR_LEN (3) |
| #define | MINREQBKLEN (2048) |
| #define | MSGID_AND_LEN (4) |
| #define | MSGID_DONT_CARE (0xffff) |
| #define | UNUSEDPARAM(x) (void)x |
| #define | DEAULT_LOC_TIMEOUT_IN_SEC 2 |
| #define | SDK_VALIDATE_INPUT_PACK_PARAM(pCtx, pBuf, pLen) |
Typedefs | |
| typedef void(* | logger )(uint8_t lvl, const char *buff) |
Enumerations | |
| enum | eLOG_LEVEL { eLOG_INFO, eLOG_DEBUG, eLOG_WARN, eLOG_FATAL } |
| enum | eTimeout { eTIMEOUT_2_S = 2000, eTIMEOUT_5_S = 5000, eTIMEOUT_8_S = 8000, eTIMEOUT_10_S = 10000, eTIMEOUT_20_S = 20000, eTIMEOUT_30_S = 30000, eTIMEOUT_60_S = 60000, eTIMEOUT_300_S = 300000, eTIMEOUT_DEFAULT = eTIMEOUT_8_S } |
| enum | eQMI_SVC { eCTL, eWDS, eDMS, eNAS =3, eQOS, eSMS =5, eUIM =0x0B, eLOC =0x10, eSWIOMA =240, eSWILOC =246 } |
| enum | msgtype { eREQ =0, eRSP =2, eIND =4 } |
Functions | |
| uint16_t | helper_get_xid (uint8_t *qmi_resp) |
| const char * | helper_get_resp_ctx (uint8_t svc, uint8_t *pbuf, uint32_t len, unpack_qmi_t *pCtx) |
| unsigned | unpack_result_code_only (uint8_t *pMdmResp) |
| int | helper_set_log_func (logger func) |
| void | libpack_log (uint8_t lvl, const char *fmt,...) |
| int | helper_set_log_lvl (uint8_t lvl) |
| void | fill_sdu_hdr (pack_qmi_t *pCtx, uint8_t *pReqBuf) |
| void | fill_pack_ctx (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, uint8_t svc, int timeout) |
| char * | get_version () |
Variables | |
| logger | glog |
| uint8_t | gloglvl |
| #define DEAULT_LOC_TIMEOUT_IN_SEC 2 |
| #define MINREQBKLEN (2048) |
| #define MSGID_AND_LEN (4) |
| #define MSGID_DONT_CARE (0xffff) |
| #define SDK_VALIDATE_INPUT_PACK_PARAM | ( | pCtx, | |
| pBuf, | |||
| pLen | |||
| ) |
| #define SDU_HDR_LEN (3) |
| #define UNUSEDPARAM | ( | x | ) | (void)x |
| typedef void(* logger)(uint8_t lvl, const char *buff) |
| enum eLOG_LEVEL |
| enum eQMI_SVC |
| enum eTimeout |
| enum msgtype |
| void fill_pack_ctx | ( | pack_qmi_t * | pCtx, |
| uint8_t * | pReqBuf, | ||
| uint16_t * | pLen, | ||
| uint8_t | svc, | ||
| int | timeout | ||
| ) |
| void fill_sdu_hdr | ( | pack_qmi_t * | pCtx, |
| uint8_t * | pReqBuf | ||
| ) |
| char* get_version | ( | ) |
| const char* helper_get_resp_ctx | ( | uint8_t | svc, |
| uint8_t * | pbuf, | ||
| uint32_t | len, | ||
| unpack_qmi_t * | pCtx | ||
| ) |
extract msgid/xid/type from modem reply
| [in] | svc | qmi service |
| [in] | pbuf | qmi response/indication |
| [in] | len | response/indication length |
| [out] | pCtx | unpacked context |
| uint16_t helper_get_xid | ( | uint8_t * | qmi_resp | ) |
| int helper_set_log_func | ( | logger | func | ) |
set log function
| int helper_set_log_lvl | ( | uint8_t | lvl | ) |
set log level
| void libpack_log | ( | uint8_t | lvl, |
| const char * | fmt, | ||
| ... | |||
| ) |
| unsigned unpack_result_code_only | ( | uint8_t * | pMdmResp | ) |
common handler for unpacking response with TLV type 0x02 only
| logger glog |
| uint8_t gloglvl |