LinuxQMISDK-Lite  SLQS04.00.23
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
fms.h File Reference

Go to the source code of this file.

Data Structures

struct  CarrierImage_t
 
struct  pack_fms_GetImagesPreference_t
 
struct  FMSImageElement
 
struct  FMSPrefImageList
 
struct  unpack_fms_GetImagesPreference_t
 
struct  pack_fms_GetStoredImages_t
 
struct  FMSImageIdElement
 
struct  FMSImageIDEntries
 
struct  FMSImageList
 
struct  unpack_fms_GetStoredImages_t
 
struct  pack_fms_SetImagesPreference_t
 
struct  unpack_fms_SetImagesPreference_t
 

Macros

#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_PRI_IMGTYPE   0x01
 

Functions

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)
 

Macro Definition Documentation

#define FMS_FW_PRI_BUILD_MATCH_LEN   11
#define FMS_GOBI_LISTENTRIES_MAX   2
#define FMS_GOBI_MBN_BUILD_ID_STR_LEN   LITE_TOTAL_IMAGE_ID_STRING_SIZE
#define FMS_GOBI_MBN_IMG_ID_SIZE   16
#define FMS_GOBI_MBN_IMG_ID_STR_LEN   LITE_TOTAL_IMAGE_ID_STRING_SIZE
#define FMS_IMAGE_ID_BUILD_ID_LEN   32
#define FMS_IMAGE_ID_IMG_ID_LEN   16
#define FMS_IMAGE_ID_MAX_ENTRIES   2
#define FMS_IMAGE_ID_PRI_IMGTYPE   0x01
#define FMS_MAX_IMAGE_ID_ELEMENT   50
#define FMS_MAX_IMAGE_PREFERENCE_IMAGE_SIZE   255
#define LITE_TOTAL_IMAGE_ID_STRING_SIZE   100

Function Documentation

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
int pack_fms_GetImagesPreference ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_fms_GetImagesPreference_t reqArg 
)

Get Images Preference pack

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
int pack_fms_GetStoredImages ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_fms_GetStoredImages_t reqArg 
)

Get Images Preference pack

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
int pack_fms_SetImagesPreference ( pack_qmi_t pCtx,
uint8_t *  pReqBuf,
uint16_t *  pLen,
pack_fms_SetImagesPreference_t reqArg 
)

Set Images Preference pack

Parameters
[in,out]pCtxqmi request context
[out]pReqBufqmi request buffer
[out]pLenqmi request length
[in]reqArgrequest parameter
int unpack_fms_GetImagesPreference ( uint8_t *  pResp,
uint16_t  respLen,
unpack_fms_GetImagesPreference_t pOutput 
)

Get Images Preference unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
int unpack_fms_GetStoredImages ( uint8_t *  pResp,
uint16_t  respLen,
unpack_fms_GetStoredImages_t pOutput 
)

Get Images Preference unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response
int unpack_fms_SetImagesPreference ( uint8_t *  pResp,
uint16_t  respLen,
unpack_fms_SetImagesPreference_t pOutput 
)

Set Images Preference unpack

Parameters
[in]pRespqmi response
[in]respLenqmi response length
[out]pOutputunpacked response

Copyright (c) 2011-2015 Sierra Wireless, Inc. All rights reserved