|
LinuxQMISDK-Lite
SLQS04.00.02
|
Go to the source code of this file.
Data Structures | |
| struct | _libSDP_FirmwareInfo_ |
Macros | |
| #define | IMG_MASK_MDM (1<<0) |
| #define | IMG_MASK_PRI (1<<1) |
| #define | IMG_MASK_CLEAR (0x000) |
| #define | IMG_MASK_GENERIC (0xFFFF) |
| #define | LIBSDP_CARRIER_PACKAGE_SKU "9999999" |
| #define | LIBSDP_SKU_STRING_LENGTH 7 |
| #define | FIRMWARE_INFO_STRING_SIZE 20 |
Typedefs | |
| typedef struct _libSDP_FirmwareInfo_ | libSDP_FirmwareInfo |
| typedef void(* | libsdplogger )(uint8_t lvl, const char *buff) |
Functions | |
| int | libSDP_ExtractFirmwareParametersByPath (char *pImagePath, libSDP_FirmwareInfo *info) |
| int | libSDP_BuildImagesPreferenceRequest (libSDP_FirmwareInfo info, pack_fms_SetImagesPreference_t *pack) |
| int | libSDP_CalculateImageMask (unpack_fms_SetImagesPreference_t SetPrefRspFromModem) |
| int | libSDP_getFileType (char *szPath) |
| unsigned int | libSDP_DownloadFW (char *pImagePath, char *szTTYPath, int iFWImageType, int image_mask, int iModelFamily) |
| int | libSDP_GetModelFamily (char *pModelString) |
| int | libSDP_CheckValidFirmwareInfo (libSDP_FirmwareInfo info) |
| char * | libSDP_GetVersion () |
| int | libsdp_set_log_func (libsdplogger func) |
Filename: libsdp.h
Purpose: Global definitions used inside the SDK
Copyright: © 2016 Sierra Wireless Inc., all rights reserved
| #define FIRMWARE_INFO_STRING_SIZE 20 |
| #define IMG_MASK_CLEAR (0x000) |
| #define IMG_MASK_GENERIC (0xFFFF) |
| #define IMG_MASK_MDM (1<<0) |
| #define IMG_MASK_PRI (1<<1) |
| #define LIBSDP_CARRIER_PACKAGE_SKU "9999999" |
| #define LIBSDP_SKU_STRING_LENGTH 7 |
| typedef struct _libSDP_FirmwareInfo_ libSDP_FirmwareInfo |
This structure contains information of the response parameters associated with a Read Transparent API.
| szModelid_str |
|
| szFwversion_str |
|
| szSku_str |
|
| szPackageid_str |
|
| szCarrier_str |
|
| szCarrierPriversion_str |
|
| typedef void(* libsdplogger)(uint8_t lvl, const char *buff) |
This Custom Log prototype.
| lvl[IN] |
|
| buff[IN] |
|
| enum libSDP_Fw_Type |
| enum libSDP_Models |
| int libSDP_BuildImagesPreferenceRequest | ( | libSDP_FirmwareInfo | info, |
| pack_fms_SetImagesPreference_t * | pack | ||
| ) |
This API Build Image Preference Request Using Firmware Information.
| info[IN] |
|
| pack[OUT] |
|
| int libSDP_CalculateImageMask | ( | unpack_fms_SetImagesPreference_t | SetPrefRspFromModem | ) |
This API Calculate Image Mask for Firmware Download.
| SetPrefRspFromModem[IN] |
|
| int libSDP_CheckValidFirmwareInfo | ( | libSDP_FirmwareInfo | info | ) |
This API Check Valid Firmware Information to build Image Prefernce Request.
| info[IN] |
|
| unsigned int libSDP_DownloadFW | ( | char * | pImagePath, |
| char * | szTTYPath, | ||
| int | iFWImageType, | ||
| int | image_mask, | ||
| int | iModelFamily | ||
| ) |
This API Download Firmware.
| pImagePath[IN] |
|
| szTTYPath[IN] |
|
| iFWImageType[IN] |
|
| image_mask[IN] |
|
| iModelFamily[IN] |
|
| int libSDP_ExtractFirmwareParametersByPath | ( | char * | pImagePath, |
| libSDP_FirmwareInfo * | info | ||
| ) |
This API Extrace Firmware Parameters From Path.
| pImagePath[IN] |
|
| libSDP_FirmwareInfo[OUT] |
|
| int libSDP_getFileType | ( | char * | szPath | ) |
This API Get File Type By Path
| szPath[IN] |
|
| int libSDP_GetModelFamily | ( | char * | pModelString | ) |
This API Get Model Famliy from a model string.
| pModelString[IN] |
|
| char* libSDP_GetVersion | ( | ) |
This API Get Lib SDP Version.
| No; |
| int libsdp_set_log_func | ( | libsdplogger | func | ) |
This API Set Custom Log function.
| func[IN] |
|