Linux SDK (lite-qmi)
MBPL_SDK_R25_ENG3
|
Files | |
file | common.h |
file | qaGobiApiSwi.h |
SWI API function prototypes. | |
Data Structures | |
struct | pack_qmi_t |
struct | unpack_qmi_t |
struct | unpack_result_t |
Enumerations | |
enum | eLOG_LEVEL { eLOG_INFO, eLOG_DEBUG, eLOG_WARN, eLOG_ERROR, eLOG_FATAL } |
enum | eQMI_SVC { eCTL =0, eWDS =0x01, eDMS =0x02, eNAS =0x03, eQOS =0x04, eSMS =0x05, eCAT =0x0A, eUIM =0x0B, eLOC =0x10, eSAR =0x11, eIMS =0x12, eTS =0x17, eTMD =0x18, eWDA =0x1A, eIMSA =0x21, eDSD =0x2A, eRMS =225, eSWILOC =246, eSWINAS =252, eSWIDMS =254 } |
enum | msgtype { eREQ =0, eRSP =2, eIND =4 } |
Functions | |
uint16_t | helper_get_xid (uint8_t *qmi_resp) |
uint16_t | helper_get_msgid (uint8_t *qmi_resp) |
uint16_t | helper_get_error_code (uint8_t *qmi_resp) |
char * | helper_get_error_reason (uint16_t retVal) |
const char * | helper_get_resp_ctx (uint8_t svc, uint8_t *pbuf, uint16_t len, unpack_qmi_t *pCtx) |
const char * | helper_get_req_str (uint8_t svc, uint8_t *req, uint32_t len) |
unsigned | unpack_result_code_only (uint8_t *pMdmResp) |
int | helper_set_log_func (logger func) |
void | liteqmi_log (uint8_t lvl, const char *fmt,...) |
int | helper_set_log_lvl (uint8_t lvl) |
char * | get_version () |
char * | liteqmi_GetVersion () |
void | liteqmi_helper_decode7bitAsciiEncString (uint8_t *encoded_str, uint8_t encoded_len, uint8_t *decoded_str) |
int | helper_isBootLoader_DebugEnabled (const char *szPath, const char *pQsn) |
ULONG | SLQSGetSdkVersion (CHAR **sdkversionpp) |
int | SLQSGetPidof (CHAR *pProcName) |
enum eLOG_LEVEL |
log levels
enum eQMI_SVC |
qmi service
enum msgtype |
qmi message type
char* get_version | ( | ) |
uint16_t helper_get_error_code | ( | uint8_t * | qmi_resp | ) |
Helper function to get SDK error code based on device error code in QMI response
[in] | qmi_resp | QMI response message |
char* helper_get_error_reason | ( | uint16_t | retVal | ) |
Helper function to get error reason string
[in] | retVal | Return code value |
uint16_t helper_get_msgid | ( | uint8_t * | qmi_resp | ) |
Helper function to get message ID
[in] | qmi_resp | QMI response message |
const char* helper_get_req_str | ( | uint8_t | svc, |
uint8_t * | req, | ||
uint32_t | len | ||
) |
extract msgid string from modem req
[in] | svc | qmi service |
[in] | req | qmi request |
[in] | len | request length |
const char* helper_get_resp_ctx | ( | uint8_t | svc, |
uint8_t * | pbuf, | ||
uint16_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 | ) |
Helper function to get transaction ID
[in] | qmi_resp | QMI response message |
int helper_isBootLoader_DebugEnabled | ( | const char * | szPath, |
const char * | pQsn | ||
) |
[in] | szPath | the full path of the provided bootloader or firmware file |
[in] | pQsn | the QSN of a specific module user wants to check, it is a 4 bytes hex value without the prefix 0X. It can be retrieved by AT command AT!ENTERCND="<password>", AT!SECBOOTCFG?, the first parameter of the response of AT!SECBOOTCFG?. |
int helper_set_log_func | ( | logger | func | ) |
Set external log function for lite-qmi messages. If no external log function is used, lite-qmi messages go to syslog.
[in] | func | External logger function |
int helper_set_log_lvl | ( | uint8_t | lvl | ) |
set log level
char* liteqmi_GetVersion | ( | ) |
void liteqmi_helper_decode7bitAsciiEncString | ( | uint8_t * | encoded_str, |
uint8_t | encoded_len, | ||
uint8_t * | decoded_str | ||
) |
decode 7bit encoded string
[in] | encoded_str | 7 bit encoded ASCII |
[in] | encoded_len | encoded length |
[out] | decoded_str | decoded ASCII string |
void liteqmi_log | ( | uint8_t | lvl, |
const char * | fmt, | ||
... | |||
) |
lite-qmi logging function. If external log function is used, logging goes to external log function. Otherwise, logging goes to syslog.
[in] | lvl | Logging level |
[in] | fmt | Format of the logging message |
int SLQSGetPidof | ( | CHAR * | pProcName | ) |
Internal Wrapper function for enabling invocation of SLQS implementation pidof() function
[in] | pProcName |
|
ULONG SLQSGetSdkVersion | ( | CHAR ** | sdkversionpp | ) |
Returns the SDK version string
[out] | sdkversionpp |
|
unsigned unpack_result_code_only | ( | uint8_t * | pMdmResp | ) |
common handler for unpacking response with TLV type 0x02 only