#include "common.h"
Go to the source code of this file.
|
#define | FMS_GOBI_MBN_IMG_ID_SIZE 16 |
|
#define | LITE_TOTAL_IMAGE_ID_STRING_SIZE 100 |
|
#define | FMS_GOBI_MBN_IMG_ID_STR_LEN LITE_TOTAL_IMAGE_ID_STRING_SIZE |
|
#define | FMS_GOBI_MBN_BUILD_ID_STR_LEN LITE_TOTAL_IMAGE_ID_STRING_SIZE |
|
#define | FMS_GOBI_LISTENTRIES_MAX 2 |
|
#define | FMS_MAX_IMAGE_PREFERENCE_IMAGE_SIZE 255 |
|
#define | FMS_MAX_IMAGE_ID_ELEMENT 50 |
|
#define | FMS_IMAGE_ID_MAX_ENTRIES 2 |
|
#define | FMS_FW_PRI_BUILD_MATCH_LEN 11 |
|
#define | FMS_IMAGE_ID_IMG_ID_LEN 16 |
|
#define | FMS_IMAGE_ID_BUILD_ID_LEN 32 |
|
#define | FMS_IMAGE_ID_MDM_IMGTYPE 0x0 |
|
#define | FMS_IMAGE_ID_PRI_IMGTYPE 0x1 |
|
#define | AUTO_SIM_MDM_IMG_ID "000.000_000" |
|
#define | AUTO_SIM_MDM_BLD_ID "00.00.00.00_AUTO-SIM" |
|
#define | AUTO_SIM_PRI_IMG_ID "000.000_000" |
|
#define | AUTO_SIM_PRI_BLD_ID "00.00.00.00_AUTO-SIM" |
|
#define | FORCE_DOWNLOAD_DISABLED 0 |
|
#define | FORCE_DOWNLOAD_ENABLED 1 |
|
#define | MDM_SLOT_MODEM_DECIDE 0xFF |
|
|
typedef unpack_result_t | unpack_fms_DeleteStoredImage_t |
|
|
int | pack_fms_GetImagesPreference (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_fms_GetImagesPreference_t *reqArg) |
|
int | unpack_fms_GetImagesPreference (uint8_t *pResp, uint16_t respLen, unpack_fms_GetImagesPreference_t *pOutput) |
|
int | pack_fms_GetStoredImages (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_fms_GetStoredImages_t *reqArg) |
|
int | unpack_fms_GetStoredImages (uint8_t *pResp, uint16_t respLen, unpack_fms_GetStoredImages_t *pOutput) |
|
int | pack_fms_SetImagesPreference (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_fms_SetImagesPreference_t *reqArg) |
|
int | unpack_fms_SetImagesPreference (uint8_t *pResp, uint16_t respLen, unpack_fms_SetImagesPreference_t *pOutput) |
|
uint32_t | GetValidFwPriCombinations (FMSImageList *pStoredImageList, uint32_t *pValidCombinationSize, CarrierImage_t *pValidCombinations) |
|
int | pack_fms_DeleteStoredImage (pack_qmi_t *pCtx, uint8_t *pReqBuf, uint16_t *pLen, pack_fms_DeleteStoredImage_t *pReqParam) |
|
int | unpack_fms_DeleteStoredImage (uint8_t *pResp, uint16_t respLen, unpack_fms_DeleteStoredImage_t *pOutput) |
|
◆ GetValidFwPriCombinations()
uint32_t GetValidFwPriCombinations |
( |
FMSImageList * |
pStoredImageList, |
|
|
uint32_t * |
pValidCombinationSize, |
|
|
CarrierImage_t * |
pValidCombinations |
|
) |
| |
This API distills valid Firmware/PRI combinations from GetStoredImages result
- Parameters
-
[in] | pStoredImageList |
|
[in,out] | pValidCombinationSize |
- number of combination passed in and returned
|
[out] | pValidCombinations |
|
- Returns
- eQCWWAN_ERR_INVALID_ARG - Invalid parameters
- eQCWWAN_ERR_BUFFER_SZ - No enough element to store combinatons returned
- See also
- See qmerrno.h for eQCWWAN_xxx error values
◆ pack_fms_DeleteStoredImage()
Pack function for deleting a specified stored image.
- Parameters
-
[in,out] | pCtx | qmi request context |
[out] | pReqBuf | qmi request buffer |
[out] | pLen | qmi request length |
[in] | pReqParam | request prarmeters |
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See also
- See qmerrno.h for eQCWWAN_xxx error values
◆ pack_fms_GetImagesPreference()
Get Images Preference pack
- Parameters
-
[in,out] | pCtx | qmi request context |
[out] | pReqBuf | qmi request buffer |
[out] | pLen | qmi request length |
[in] | reqArg | request parameter |
◆ pack_fms_GetStoredImages()
Get Images Preference pack
- Parameters
-
[in,out] | pCtx | qmi request context |
[out] | pReqBuf | qmi request buffer |
[out] | pLen | qmi request length |
[in] | reqArg | request parameter |
◆ pack_fms_SetImagesPreference()
Set Images Preference pack
- Parameters
-
[in,out] | pCtx | qmi request context |
[out] | pReqBuf | qmi request buffer |
[out] | pLen | qmi request length |
[in] | reqArg | request parameter |
◆ unpack_fms_DeleteStoredImage()
int unpack_fms_DeleteStoredImage |
( |
uint8_t * |
pResp, |
|
|
uint16_t |
respLen, |
|
|
unpack_fms_DeleteStoredImage_t * |
pOutput |
|
) |
| |
Unpack function for deleting a specified image.
- Parameters
-
[in] | pResp | qmi response from modem |
[in] | respLen | qmi response length |
[out] | pOutput | response unpacked |
- Returns
- eQCWWAN_ERR_NONE on success, eQCWWAN_xxx error value otherwise
- See also
- See qmerrno.h for eQCWWAN_xxx error values
◆ unpack_fms_GetImagesPreference()
Get Images Preference unpack
- Parameters
-
[in] | pResp | qmi response |
[in] | respLen | qmi response length |
[out] | pOutput | unpacked response |
◆ unpack_fms_GetStoredImages()
Get Images Preference unpack
- Parameters
-
[in] | pResp | qmi response |
[in] | respLen | qmi response length |
[out] | pOutput | unpacked response |
◆ unpack_fms_SetImagesPreference()
Set Images Preference unpack
- Parameters
-
[in] | pResp | qmi response |
[in] | respLen | qmi response length |
[out] | pOutput | unpacked response |