|
LinuxQMISDK
SLQS03.03.04
|
Firmware Management Service API function prototypes. More...
Go to the source code of this file.
Data Structures | |
| struct | fwinfo_s |
| struct | slqsfwinfo_s |
| struct | qmifwinfo_s |
| struct | ImageElement |
| struct | PrefImageList |
| struct | ImageIdElement |
| struct | ImageIDEntries |
| struct | ImageList |
Macros | |
| #define | SLQSFWINFO_MODELID_SZ 20 |
| #define | SLQSFWINFO_BOOTVERSION_SZ 85 |
| #define | SLQSFWINFO_APPVERSION_SZ 85 |
| #define | SLQSFWINFO_SKU_SZ 15 |
| #define | SLQSFWINFO_PACKAGEID_SZ 85 |
| #define | SLQSFWINFO_CARRIER_SZ 20 |
| #define | SLQSFWINFO_PRIVERSION_SZ 10 |
| #define | GOBI_MBN_IMG_ID_STR_LEN 16 |
| #define | GOBI_MBN_BUILD_ID_STR_LEN 100 |
| #define | GOBI_LISTENTRIES_MAX 2 |
| #define | GOBI_SET_IMG_PREF_RSPLEN 40 |
| #define | DEVICE_SHUTDOWN 5 |
| #define | DEVICE_RESET 4 |
| #define | FIRMWARE_UPDATE_SUCCESS 0x01 |
| #define | FIRMWARE_UPDATE_FAIL 0x01 |
| #define | PRI_UPDATE_FAIL 0x02 |
| #define | FIRMWARE_UPGRADE_SUCCESS 0x00 |
Functions | |
| ULONG | GetImageStore (WORD imageStorePathSize, CHAR *pImageStorePath) |
| ULONG | SLQSGetFirmwareInfo (struct qmifwinfo_s *pinfo) |
| ULONG | SLQSGetImageInfoMC77xx (LPCSTR path, struct qmifwinfo_s *pinfo) |
| ULONG | SLQSGetImageInfoMC83xx (LPCSTR path, struct qmifwinfo_s *pinfo) |
| ULONG | SLQSGetImageInfo (LPCSTR path, struct qmifwinfo_s *pinfo) |
| ULONG | UpgradeFirmware2k (CHAR *pDestinationPath) |
| ULONG | GetImagesPreference (ULONG *pImageListSize, struct PrefImageList *pImageList) |
| ULONG | SetImagesPreference (ULONG imageListSize, BYTE *pImageList, ULONG bForceDownload, BYTE modemIndex, ULONG *pImageTypesSize, BYTE *pImageTypes) |
| ULONG | GetStoredImages (ULONG *pImageListSize, BYTE *pImageList) |
| ULONG | DeleteStoredImage (ULONG imageInfoSize, BYTE *pImageInfo) |
| BOOL | IsGobiDevice (void) |
| BOOL | IsSierraGobiDevice (void) |
| ULONG | SLQSGetImageInfo_9x15 (LPCSTR path, BYTE imgType, struct slqsfwinfo_s *pinfo) |
| ULONG | SLQSUpgradeFirmware9x15 (CHAR *pDestinationPath) |
Firmware Management Service API function prototypes.
Copyright: © 2011 Sierra Wireless, Inc. all rights reserved
| #define DEVICE_RESET 4 |
| #define DEVICE_SHUTDOWN 5 |
| #define FIRMWARE_UPDATE_FAIL 0x01 |
| #define FIRMWARE_UPDATE_SUCCESS 0x01 |
| #define FIRMWARE_UPGRADE_SUCCESS 0x00 |
| #define GOBI_LISTENTRIES_MAX 2 |
| #define GOBI_MBN_BUILD_ID_STR_LEN 100 |
| #define GOBI_MBN_IMG_ID_STR_LEN 16 |
| #define GOBI_SET_IMG_PREF_RSPLEN 40 |
| #define PRI_UPDATE_FAIL 0x02 |
| #define SLQSFWINFO_APPVERSION_SZ 85 |
| #define SLQSFWINFO_BOOTVERSION_SZ 85 |
| #define SLQSFWINFO_CARRIER_SZ 20 |
| #define SLQSFWINFO_MODELID_SZ 20 |
| #define SLQSFWINFO_PACKAGEID_SZ 85 |
| #define SLQSFWINFO_PRIVERSION_SZ 10 |
| #define SLQSFWINFO_SKU_SZ 15 |
| enum eGobiImageCarrier |
enumeration which lists the carrier supported by the image
| enum eGobiImageGPS |
| enum eGobiImageRegion |
| enum eGobiImageTech |
Used to delete the specified image from the device. This API function is only relevant to devices with the ability to store multiple firmware images(see Device Supported section below).
| imageInfoSize[IN] |
|
| pImageInfo[IN] |
|
| ULONG GetImagesPreference | ( | ULONG * | pImageListSize, |
| struct PrefImageList * | pImageList | ||
| ) |
restore original alignment from stack Gets the current images preference from the device.
| pImageListSize[IN/OUT] | |
| pImageList[OUT] |
|
Returns the image store folder, i.e., the folder containing one or more carrier-specific image subfolders compatible with the currently connected QC WWAN device.
| imageStorePathSize |
|
| pImageStorePath[OUT] |
|
restore original alignment from stack Gets the list of images stored on the device.
| pImageListSize[IN/OUT] | |
| pImageList[OUT] |
|
| BOOL IsGobiDevice | ( | void | ) |
| BOOL IsSierraGobiDevice | ( | void | ) |
Name : IsSierraGobiDevice Purpose : To Check device description
| ULONG SetImagesPreference | ( | ULONG | imageListSize, |
| BYTE * | pImageList, | ||
| ULONG | bForceDownload, | ||
| BYTE | modemIndex, | ||
| ULONG * | pImageTypesSize, | ||
| BYTE * | pImageTypes | ||
| ) |
Sets the current images preference on the device. After this function successfully completes, the device must be reset for the selected image preference to be realized. Additionally, when the returned list of image types that require downloading is not empty, the device opens in QDL mode after the reset. At that point, the QDL portion of this API must be used to download the selected image preference to the device.
| imageListSize |
|
| pImageList[IN] |
|
| bForceDownload[IN] |
|
| modemIndex |
|
| pImageTypesSize[IN/OUT] |
|
| pImageTypes[OUT] | -The download image types array. |
| ULONG SLQSGetFirmwareInfo | ( | struct qmifwinfo_s * | pinfo | ) |
Returns firmware image information from the connected device
| pinfo[OUT] |
|
| ULONG SLQSGetImageInfo | ( | LPCSTR | path, |
| struct qmifwinfo_s * | pinfo | ||
| ) |
Returns firmware image information from a CWE file or mbn files stored on the host. For CWE, information is returned for the first CWE image found at the specified path.For MBN, the provided path must be located under the image store for the currently connected QC WWAN device. Note that as this API supports multiple firmware image types, it relies on the presence of a supported device. Otherwise, refer to SLQSGetImageInfoMC83xx and SLQSGetImageInfoMC77xx for APIs which do not rely on the presence of a supported device.
| path[IN] |
|
| pinfo[OUT] |
|
| ULONG SLQSGetImageInfo_9x15 | ( | LPCSTR | path, |
| BYTE | imgType, | ||
| struct slqsfwinfo_s * | pinfo | ||
| ) |
Returns firmware image information from a CWE file(s) stored on the host. It does not rely on the presence of a supported device.
| path[IN] |
|
| imgType[IN] |
|
| pinfo[OUT] |
|
| ULONG SLQSGetImageInfoMC77xx | ( | LPCSTR | path, |
| struct qmifwinfo_s * | pinfo | ||
| ) |
Returns firmware image information from a SPKGS CWE file stored on the host. The information is returned for the first SPKGS CWE image found at the specified path. This API executes independent of a MC77xx being connected to the target.
| path[IN] |
|
| pinfo[OUT] |
|
| ULONG SLQSGetImageInfoMC83xx | ( | LPCSTR | path, |
| struct qmifwinfo_s * | pinfo | ||
| ) |
Returns firmware image information from an MBN file located on the host. This API executes independent of a MC83xx being connected to the target.
| path[IN] |
|
| pinfo[OUT] |
|
This API is used to upgrade firmware on a MC73xx device. This API encapsulates all steps involved in the firmware download process. It is an alternative to any firmware download application. Hence it is a blocking API call. This API will not return until the entire process has been completed.
This API Performs the following steps:
| pDestinationPath[IN] |
|
This API is used to download firmware to a MC77xx or Gobi 3000 device.
This API Performs the following steps:
| pDestinationPath[IN] |
|