|
LinuxSDK
V1.4.0.5
|
This file contains definitions, enumerations, structures and forward declarations for SwiApiCmUpgrade.c file. More...
Go to the source code of this file.
Data Structures | |
| struct | SWI_STRUCT_NvStore |
| struct | SWI_STRUCT_FwDownload |
Functions | |
| SWI_API SWI_RCODE | SwiNvStore (struct SWI_STRUCT_NvStore sNvStore, swi_uint32 timeout) |
| SWI_API SWI_RCODE | SwiFirmwareDownload (swi_charp szFileName, enum SWI_TYPE_FW_IMAGE eFwDwnType, swi_bool bMpDownload, swi_uint32 nHIPPayloadSize, swi_uint32 timeout) |
This file contains definitions, enumerations, structures and forward declarations for SwiApiCmUpgrade.c file.
Copyright (c) 2011 Sierra Wireless, Inc. All rights reserved
| enum SWI_NOTIF_FW_TYPE |
An enumeration of firmware download states.
Supports all GSM devices. CDMA MPs are also supported, other CDMA devices are not supported.
| enum SWI_TYPE_FW_IMAGE |
Enumerates firmware image types.
Supports all GSM devices. CDMA MPs are also supported, other CDMA devices are not supported.
| enum SWI_TYPE_NvCategory |
An enumeration of NV category types.
| Enumerator | |
|---|---|
| SWI_NVCAT_Factory |
Factory settings. |
| SWI_NVCAT_Oem |
OEM settings. |
| SWI_NVCAT_User |
User settings (default). |
| enum SWI_TYPE_NvOperation |
An enumeration of NV backup operation types.
| Enumerator | |
|---|---|
| SWI_NVOPER_BackupAll |
NV backup all operation. |
| SWI_NVOPER_RestoreAll |
NV restore all operation. |
| SWI_NVOPER_Backup |
NV backup operation. |
| SWI_NVOPER_Restore |
NV restore operation. |
| SWI_API SWI_RCODE SwiFirmwareDownload | ( | swi_charp | szFileName, |
| enum SWI_TYPE_FW_IMAGE | eFwDwnType, | ||
| swi_bool | bMpDownload, | ||
| swi_uint32 | nHIPPayloadSize, | ||
| swi_uint32 | timeout | ||
| ) |
This function is used to initiate the download of a single firmware image to the device.
| szFilename | [IN] Name of the file containing the image to be downloaded |
| eFwDwnType | [IN] Type of firmware image to be downloaded |
| bMpDownload | [IN] Flag indicating if this is a MP download request |
| nHIPPayloadSize | [IN] Block size to be used when copying the image to the device. |
| timeout | [IN] API timeout parameter in ms. Note, this API ignores this parameter |
| SWI_API SWI_RCODE SwiNvStore | ( | struct SWI_STRUCT_NvStore | sNvStore, |
| swi_uint32 | timeout | ||
| ) |
This function is used to backup modem data before a firmware upgrade.
Operation should be set to SWI_NVOPER_Backup and category should be set to SWI_NVCAT_User. All other fields are ignored. Caller should enable notification for SWI_NOTIFY_NvStore. The SWI_NOTIFY_NvStore notification will tell the caller whether or not the operation succeeded.
| sNvStore,: | [IN] Details type of operation and data to backup |
| timeout,: | [IN] Response timeout value in milliseconds |