|
LinuxSDK
V1.4.0.5
|
This file contains definitions, enumerations, structures and forward declarations for SwiApiCmBasic.c file. More...
Go to the source code of this file.
Data Structures | |
| struct | SWI_STRUCT_Logging |
| struct | SWI_STRUCT_SdkPath |
| struct | SWI_STRUCT_ApiStartup |
| struct | SWI_STRUCT_UsbdInfo |
| struct | SWI_STRUCT_PriInfo |
| struct | SWI_STRUCT_ModemType |
| struct | SWI_STRUCT_AirServer |
| struct | SWI_STRUCT_AirServerExtended |
| struct | SWI_STRUCT_AirServerList |
| struct | SWI_STRUCT_AirServerChange |
| struct | SWI_STRUCT_DeviceInformation_Request |
| struct | SWI_STRUCT_DeviceInformation_Response |
| struct | SWI_STRUCT_HeartBeat |
| struct | SWI_STRUCT_DeviceTime |
| struct | SWI_STRUCT_FlashImgInfo |
| struct | SWI_STRUCT_OBJRNGREV_InfoBlock |
| struct | SWI_STRUCT_ObjRngRev |
| struct | SWI_STRUCT_RadioPower |
| struct | SWI_STRUCT_RadioTempState |
| struct | SWI_STRUCT_RadioBattery |
| struct | SWI_STRUCT_RadioBandInfo |
| struct | SWI_STRUCT_RadioBandList |
| struct | SWI_STRUCT_RadioBandConfig |
| struct | SWI_STRUCT_UsbPortName |
| struct | SWI_STRUCT_NVUpdateFromFile |
| struct | SWI_STRUCT_ApiUnlock |
| struct | SWI_STRUCT_RDA_SUPPORT |
| struct | SWI_STRUCT_RM_CONFIG |
| struct | SWI_STRUCT_RM_CONFIG_SET |
| struct | SWI_STRUCT_GetSwocCfg |
Typedefs | |
| typedef enum eUpdateFromFileStatus | UpdateFromFileStatus |
| typedef struct SWI_STRUCT_NVUpdateFromFile | SWI_STRUCT_NVUpdateFromFile |
| typedef enum eApiUnlockLevel | ApiUnlockLevel |
| typedef enum eApiUnlockResult | ApiUnlockResult |
| typedef struct SWI_STRUCT_ApiUnlock | SWI_STRUCT_ApiUnlock |
| typedef enum SWI_TYPE_RDA_SUPPORT_STATUS | SWI_TYPE_RDA_SUPPORT_STATUS |
| typedef struct SWI_STRUCT_RDA_SUPPORT | SWI_STRUCT_RDA_SUPPORT |
| typedef enum SWI_TYPE_REMOVABLE_MEDIA | SWI_TYPE_REMOVABLE_MEDIA |
| typedef struct SWI_STRUCT_RM_CONFIG | SWI_STRUCT_RM_CONFIG |
| typedef struct SWI_STRUCT_RM_CONFIG_SET | SWI_STRUCT_RM_CONFIG_SET |
This file contains definitions, enumerations, structures and forward declarations for SwiApiCmBasic.c file.
Copyright (c) 2011 Sierra Wireless, Inc. All rights reserved
| #define LENGTH_BootBuildDate 9 |
| #define LENGTH_CommPort 7 |
| #define LENGTH_DriverName 100 |
| #define LENGTH_HardwareId 50 |
| #define LENGTH_ImgInfoImgType 5 |
Maximum image type infor length
| #define LENGTH_ImgInfoProdType 5 |
Maximum product type info length
| #define LENGTH_ImgInfoRelDate 9 |
Maximum release date info length
| #define LENGTH_ImgInfoVer 85 |
Maximum verion info length
| #define LENGTH_IPAddress 16 |
| #define LENGTH_LogFileName 128 |
| #define LENGTH_MacAddress 6 |
| #define LENGTH_MaxPPPString 33 |
| #define LENGTH_ModemName 75 |
| #define LENGTH_PortName 80 |
| #define LENGTH_ProductName 20 |
| #define LENGTH_ProductStr 16 |
| #define LENGTH_SdkPathName 128 |
| #define LENGTH_TimeStamp 16 |
| #define LENGTH_UsbdBuildDate 9 |
| #define LENGTH_UsbdVersion 85 |
| #define MAX_AIR_SERVERS 50 /* Must be < than a frame. */ |
| #define MAX_BAND_GROUPS 50 |
| #define MAX_BAND_LIST 50 |
| #define MAX_NOTIF_LIST 122 |
| #define MAX_NUM_LBS_SV 12 |
| #define MAX_OBJRNGINFOBLOCKS 35 |
| #define NUMVALUE_WIMAX 80216 |
| #define SWI_API_UNLOCK_PWD_LEN 10 |
Max length of API unlock password
| #define SWI_FILENAME_LEN 8 |
Max length of file name in device file system
| #define SWI_RADIOBANDGROUP_AutoBand 0xFFFFFFFFFFFFFFFFull |
Auto band
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass0A 0x0000000000000001ull |
Band Class 0 A-system only (Cellular)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass0ABo 0x0000000000000003ull |
Band Class 0 A & B (Cellular)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass0B 0x0000000000000002ull |
Band Class 0 B-system only (Cellular)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass1 0x0000000000000004ull |
Band Class 1 (US PCS)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass10 0x0000000000000800ull |
Band Class 10 (Secondary 800 MHz)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass11 0x0000000000001000ull |
Band Class 11 (400 MHz European PAMR)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass12 0x0000000000002000ull |
Band Class 12 (800 MHz PAMR)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass2 0x0000000000000008ull |
Band Class 2 (TACS)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass3 0x0000000000000010ull |
Band Class 3 (JTACS)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass4 0x0000000000000020ull |
Band Class 4 (Korean PCS)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass5 0x0000000000000040ull |
Band Class 5 (450 MHz)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass6 0x0000000000000080ull |
Band Class 6 (2 GHz)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass7 0x0000000000000100ull |
Band Class 7 (700 MHz)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass8 0x0000000000000200ull |
Band Class 8 (1800 MHz)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaClass9 0x0000000000000400ull |
Band Class 9 (900 MHz)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_CdmaPcsCellular 0x0000000000000007ull |
PCS/Cellular
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_Gsm450 0x0000000000010000ull |
GSM 450
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_Gsm480 0x0000000000020000ull |
GSM 480
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_Gsm750 0x0000000000040000ull |
GSM 750
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_Gsm850 0x0000000000080000ull |
GSM 850
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_GsmAll 0x0000000001E80000ull |
GSM All
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_GsmDcs1800 0x0000000000400000ull |
GSM DCS 1800
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_GsmEGsm900 0x0000000000800000ull |
GSM EGSM 900
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_GsmEGsmDcs 0x0000000001C00000ull |
GSM EGSM/DCS
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_GsmPcs1900 0x0000000000200000ull |
GSM PCS 1900
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_GsmPcs850 0x0000000000280000ull |
GSM 850/PCS
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_GsmPGsm900 0x0000000001000000ull |
GSM PGSM 900
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_GsmRGsm900 0x0000000000100000ull |
GSM RGSM 900
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaAll_AC503_MC8700 0x000000b300000000ull |
WCDMA All AC503/MC8700
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
WCDMA 2100/1900/850/800/900
| #define SWI_RADIOBANDGROUP_WcdmaAll_EarlyMC8700 0x0000001300000000ull |
WCDMA All Early MC8700
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaAustrailiaGsmEu 0x0000001101C00000ull |
WCDMA Australia/GSM EU
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaAustralia 0x0000001100000000ull |
WCDMA Australia
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaEu 0x0000008100000000ull |
| #define SWI_RADIOBANDGROUP_WcdmaGsmEu 0x0000000101C00000ull |
WCDMA/GSM EU
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaGsmNa 0x0000001200280000ull |
WCDMA/GSM NA
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaIII1700 0x0000000400000000ull |
WCDMA III 1700
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaIImt2000 0x0000000100000000ull |
WCDMA I IMT 2000 (EU)
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaIIPcs1900 0x0000000200000000ull |
WCDMA II PCS 1900
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaIV1700 0x0000000800000000ull |
WCDMA IV 1700
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaIX1700 0x0000010000000000ull |
WCDMA IX 1700
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaJapan 0x0000002100000000ull |
WCDMA Japan
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaNa 0x0000001200000000ull |
WCDMA NA
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaV850 0x0000001000000000ull |
WCDMA V 850
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaVI800 0x0000002000000000ull |
WCDMA VI 800
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaVII2600 0x0000004000000000ull |
WCDMA VII 2600
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RADIOBANDGROUP_WcdmaVIII900 0x0000008000000000ull |
WCDMA VIII 900
This radio band group is to be used with SWI_STRUCT_RadioBandConfig.
| #define SWI_RDA_NAME_MAX 69 |
Max RDA name length
| #define SWI_RDA_VERSION_MAX 32 |
Max RDA version length
| typedef enum eApiUnlockLevel ApiUnlockLevel |
Enumeration of unlock level.
| typedef enum eApiUnlockResult ApiUnlockResult |
Enumeration of unlock result.
| typedef struct SWI_STRUCT_ApiUnlock SWI_STRUCT_ApiUnlock |
This structure contains API unlock configurations.
| typedef struct SWI_STRUCT_NVUpdateFromFile SWI_STRUCT_NVUpdateFromFile |
This structure contains NV update from file configurations and results.
| typedef struct SWI_STRUCT_RDA_SUPPORT SWI_STRUCT_RDA_SUPPORT |
This structure contains Remote Diagnostics Agent Support configurations.
| typedef struct SWI_STRUCT_RM_CONFIG SWI_STRUCT_RM_CONFIG |
This structure contains Removable Media configurations.
| typedef struct SWI_STRUCT_RM_CONFIG_SET SWI_STRUCT_RM_CONFIG_SET |
This structure contains Removable Media configurations.
| typedef enum SWI_TYPE_RDA_SUPPORT_STATUS SWI_TYPE_RDA_SUPPORT_STATUS |
Enumeration of Remote Diagnostics Agent enableing status.
| typedef enum SWI_TYPE_REMOVABLE_MEDIA SWI_TYPE_REMOVABLE_MEDIA |
Enumeration Removable Media support.
| typedef enum eUpdateFromFileStatus UpdateFromFileStatus |
Enumeration of NV update from file status
| enum eApiUnlockLevel |
| enum eApiUnlockResult |
CNS supported by FW application flag.
Returned by SwiGetDeviceInformation in conjunction with SWI_DEVICEINFORMATION_CNSsupported information request.
Enumeration of daylight savings.
| Enumerator | |
|---|---|
| SWI_DAYLIGHTSAVINGS_None |
No daylight savings |
| SWI_DAYLIGHTSAVINGS_PlusOneHour |
Plus one hour |
| SWI_DAYLIGHTSAVINGS_PlusTwoHour |
Plus two hours |
| enum SWI_TYPE_Device |
An enumeration of supported device types.
Includes both GSM and CDMA PC cards, embedded devices, and MP line of products.
Enumeration of device information types.
Used by SWI_STRUCT_DeviceInformation_Request and SWI_STRUCT_DeviceInformation_Response to indicate the type of data being requested in SwiGetDeviceInformation.
Enumeration of protocols to be used for firmware download.
Returned by SwiGetDeviceInformation in conjunction with SWI_DEVICEINFORMATION_DeviceReEnum information request.
Enumeration of protocols to be used for firmware download.
Returned by SwiGetDeviceInformation in conjunction with SWI_DEVICEINFORMATION_FrmDwlProtocol information request.
Enumeration of power down request reasons.
This enumeration is used by SWI_STRUCT_RadioPower
| enum SWI_TYPE_Month |
Enumeration of months of a year
Enumeration of object ID range specifiers used in SWI_STRUCT_OBJRNGREV_InfoBlock
An enumeration of product classes
Product classes are broken into the following categories PC Cards (PCMCIA, express cards, USB), embedded modules (MC, EM, M81), and MP.
Supports PC cards, embedded devices, and MP line of products.
| Enumerator | |
|---|---|
| SWI_PRODUCTCLASS_Unknown | |
| SWI_PRODUCTCLASS_PcCard | |
| SWI_PRODUCTCLASS_Embedded | |
| SWI_PRODUCTCLASS_Mp | |
| enum SWI_TYPE_RadioBand |
Enumeration of radio bands.
This enumeration is used by SWI_STRUCT_RadioBandInfo and SWI_STRUCT_GmsCellMeasure.
Enumeration of radio battery states
This enumeration is used by SWI_STRUCT_RadioBattery.
Enumeration of radio power modes.
This enumeration is used by SWI_STRUCT_RadioPower.
| Enumerator | |
|---|---|
| SWI_RADIOPOWERMODE_Low |
Radio is in low power mode |
| SWI_RADIOPOWERMODE_Online |
Radio is online (full power mode) |
Low power modem reason bit mask values.
Supports PC cards, embedded devices, and MP line of products.
Enumeration of radio temperature states
This enumeration is used by the SWI_STRUCT_RadioTempState structure.
| enum SWI_TYPE_RadioType |
Enumeration of radio technologies.
| Enumerator | |
|---|---|
| SWI_RADIOTYPE_1xrtt |
1xRTT |
| SWI_RADIOTYPE_Evdo |
EVDO |
| SWI_RADIOTYPE_GsmWcdma |
GSM/WCDMA |
| enum SWI_TYPE_Technology |
| enum SWI_TYPE_WeekDay |
Enumeration of days of the week.
| Enumerator | |
|---|---|
| SWI_WEEKDAY_Mon |
Monday |
| SWI_WEEKDAY_Tue |
Tuesday |
| SWI_WEEKDAY_Wed |
Wednesday |
| SWI_WEEKDAY_Thu |
Thursday |
| SWI_WEEKDAY_Fri |
Friday |
| SWI_WEEKDAY_Sat |
Saturday |
| SWI_WEEKDAY_Sun |
Sunday |
An enumeration of wireless mobile technologies
Wireless technologies including CDMA and GSM
| Enumerator | |
|---|---|
| SWI_WIRELESSTECH_Unknown | |
| SWI_WIRELESSTECH_Cdma | |
| SWI_WIRELESSTECH_Gsm | |
| SWI_WIRELESSTECH_Wifi | |
| SWI_WIRELESSTECH_Wimax | |
An enumeration of flash image result codes.
Supports PC cards, embedded devices, and MP line of products.
| Enumerator | |
|---|---|
| FLASHIMGINFORESULT_Success |
Action succeeded |
| FLASHIMGINFORESULT_UnsupportedImgType |
Unsupported image type |
| FLASHIMGINFORESULT_ImgNotFound |
Image not found |
| SWI_API SWI_RCODE SwiApiStartup | ( | struct SWI_STRUCT_ApiStartup * | pOpenParams | ) |
This function is used to start the API sub-system.
If an error is returned or to re-initialize the API, SwiApiShutdown must be called before calling this function again.
After calling this function, SwiGetAvailAirServers can be called to retrieve a list of air servers (devices). SwiSelectAirServer must be used to commit to a specific device before calling any control and status API functions.
Looking in the system log after a failure may provide more details about the cause
| pOpenParams,: | [IN] parameters to initialize the API in different modes |
| SWI_API SWI_RCODE SwiApiUnlock | ( | SWI_STRUCT_ApiUnlock * | pApiUnlock, |
| swi_uint32 | timeout | ||
| ) |
This function allows the host to unlock access to various password-protected other SWI APIs. Those APIs can be used to configure carrier-specific parameters and to enable limited diagnostic capabilities. Those APIs are required by OEMs and device provisioning applications. This object is not intended for use by end-users..
Typical cases to use this API
| pApiUnlock[IN] | See SWI_STRUCT_ApiUnlock. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetAvailAirServers | ( | struct SWI_STRUCT_AirServerList * | sList | ) |
This function is used to retrieve a list of available air servers.
Air servers are deemed available if the appropriate driver interface, is found. These interfaces must be capable of supporting a control and status command path to the air server. SwiSelectAirServer must be called to bind to the air server before any command and status functions are called.
Air servers locked for exclusive use by an application are also included.
| [OUT] | sList: A structure of type SWI_STRUCT_AirServerList which contains a list of available air servers. |
| SWI_API SWI_RCODE SwiGetBootAndHoldMode | ( | swi_bool * | pbootnhold, |
| swi_uint32 | timeout | ||
| ) |
Fetch the boot and hold state of the modem, if it's connected. There is a small window in which this information will be inaccurate if the state of the modem changes while this function is being called. However, the notification called SWI_NOTIFY_AirServerChange will always indicate a change in the execution state of the modem and interested callers should re-issue this Api to learn the modem's new Boot and Hold state, if they are expecting it to change.
| pbootnhold | [OUT]: TRUE - Modem is operating in boot-and-hold mode FALSE - Modem is executing its application |
| timeout | [IN]: Function timeout in milliseconds |
| SWI_API SWI_RCODE SwiGetBootloaderBuildDate | ( | swi_charp | szBLBldDate, |
| swi_uint32 * | nLength, | ||
| swi_uint32 | timeout | ||
| ) |
This function is used to retrieve the boot loader build date.
| szBLBldDate,: | [OUT] Pointer to store the build date information |
| nLength,: | [IN/OUT] Size of buffer available to store the build date information/required buffer space |
| Timeout,: | [IN] Response timeout value in milliseconds |
| SWI_API SWI_RCODE SwiGetBootVersion | ( | swi_charp | szBVVersion, |
| swi_uint32 | sizeBuffer, | ||
| swi_uint32 | timeout | ||
| ) |
This function returns the device's firmware loader version in a string.
| szBVVersion,: | [OUT] Bootloader version (NULL terminated). The version string varies in length. It is recommended that a character string of 80 characters be allocated to store this return value. |
| sizeBuffer,: | [IN] Size of buffer provided for the bootloader version |
| timeout,: | [IN] Response timeout value in milliseconds |
| SWI_API SWI_RCODE SwiGetCurrentRadioBand | ( | struct SWI_STRUCT_RadioBandList * | pRadioBand, |
| swi_int32 | timeout | ||
| ) |
This function is used to determine the current radio band(s) the device is currently using.
This API replaces SwiGetBandInfo.
For GSM/WCDMA devices and CDMA/EVDO devices operating in non-hybrid mode operation, only one band is supported at a time. In these cases, the band info list will only contain a single entry.
| pRadioBand,: | [OUT] Pointer to a SWI_STRUCT_RadioBandList structure to store the list of current radio bands |
| timeout,: | [IN] Response timeout value in milliseconds. |
| SWI_API SWI_RCODE SwiGetDeviceID | ( | swi_charp | pszDeviceID, |
| swi_uint32 | sizeBuffer, | ||
| swi_uint32 | timeout | ||
| ) |
This function returns the device's unique identity as a string. The returned value is the ESN (Electronic Serial Number) or EID (Electronic Identity) of the modem.
The ESN is in the form of an 14-character string of decimal numerals. The string is null terminated (adding a 15th byte to the length). The content of the ESN includes several concatenated components, as specified for GPRS.
| szDeviceID,: | [OUT] A string representing the Device ID (NULL terminated). |
| sizeBuffer,: | [IN] Size of buffer provided for the device ID. A buffer of 15 bytes is recommended. |
| timeout,: | [IN] Response timeout value in milliseconds |
| SWI_API SWI_RCODE SwiGetDeviceInformation | ( | struct SWI_STRUCT_DeviceInformation_Request * | sDeviceInformation_Requestp, |
| struct SWI_STRUCT_DeviceInformation_Response * | sDeviceInformation_Responsep, | ||
| swi_uint32 | timeout | ||
| ) |
This function is used to get fundamental information from the modem.
The information returned is determined by setting the eDeviceInformationType field of sDeviceInformation_Request.
| [OUT] | sDeviceInformation_Request: struct must be filled out to select type of information returned. |
| [IN] | sDeviceInformation_Response: struct returned will contain the requested information. |
| [IN] | timeout: Response timeout value in milliseconds. |
| SWI_API SWI_RCODE SwiGetDeviceTime | ( | struct SWI_STRUCT_DeviceTime * | pDeviceTime, |
| swi_uint32 | timeout | ||
| ) |
This function is used to retrieve the system time on the device.
| pDeviceTime,: | [OUT] Pointer to a SWI_STRUCT_DeviceTime structure to store the system time from the device. |
| timeout,: | [IN] Response timeout value in milliseconds. |
| SWI_API SWI_RCODE SwiGetFirmwareBuildDate | ( | swi_charp | szBuildDate, |
| swi_uint32 | sizeBuffer, | ||
| swi_uint32 | timeout | ||
| ) |
This function returns the date the device's firmware was created.
| szBuildDate,: | [OUT] Firmware build date. The firmware build date string is in the form of MM/DD/YY. |
| sizeBuffer,: | [IN] Size of buffer provided for the firmware build date |
| timeout,: | [IN] Response timeout value in milliseconds |
| SWI_API SWI_RCODE SwiGetFirmwareVersion | ( | swi_charp | szFWVersion, |
| swi_uint32 | sizeBuffer, | ||
| swi_uint32 | timeout | ||
| ) |
This function returns the device's firmware version in a string.
The firmware version string varies in length. It is recommended that a character string of 80 characters be allocated to store this return value
| szFWVersion,: | [OUT] Firmware version (NULL terminated) |
| sizeBuffer,: | [IN] Size of buffer provided for the firmware version. |
| timeout,: | [IN] Response timeout value in milliseconds |
| SWI_API SWI_RCODE SwiGetFlashImgInfo | ( | struct SWI_STRUCT_FlashImgInfo * | pFlashImgInfo, |
| swi_uint32 | timeout | ||
| ) |
This function is used to retrieve firmware flash information from the device.
| [IN/OUT] | pFlashImgInfo: Pointer to a SWI_STRUCT_FlashImgInfo which specifies the flash image type to retrieve. This structure also contains the flash image information returned from the device. See SWI_STRUCT_FlashImgInfo for additional information. |
| timeout,: | [IN] Response timeout value in milliseconds. |
| SWI_API SWI_RCODE SwiGetHardwareVersion | ( | swi_charp | szHWVersion, |
| swi_uint32 | sizeBuffer, | ||
| swi_uint32 | timeout | ||
| ) |
This function returns the device's hardware version in a string.
| szHWVersion,: | [OUT] Hardware version (NULL terminated). The firmware version string varies in length. It is recommended that a character string of 80 characters be allocated to store this return value. The returned string is null terminated. |
| sizeBuffer,: | [IN] Size of buffer provided for the hardware version |
| timeout,: | [IN] Response timeout value in milliseconds |
| SWI_API void SwiGetLastError | ( | swi_char * | szError, |
| swi_uint32 | sizeBuffer | ||
| ) |
This function is used to retrieve the last error that occurred during a CnS transaction.
Recommended length for the CnS buffer is 256 bytes.
| szError,: | [OUT] CnS transaction error |
| sizeBuffer,: | [IN] length of buffer provided for the CnS transaction error |
| SWI_API SWI_RCODE SwiGetModemType | ( | struct SWI_STRUCT_ModemType * | pSwiModemType, |
| swi_uint32 | timeout | ||
| ) |
This function is used to retrieve modem type information.
| pSwiModemType,: | [IN/OUT] Removable media configuration |
| timeout,: | [IN] Response timeout value in milliseconds. |
| SWI_API SWI_RCODE SwiGetObjRngRev | ( | struct SWI_STRUCT_ObjRngRev * | ObjRngRevp, |
| swi_uint32 | timeout | ||
| ) |
This function is used to retrieve the object ID range revision on the modem and the API.
| sObjRngRev,: | [OUT] Object range revision information |
| timeout,: | [IN] Response timeout value in milliseconds. |
| SWI_API SWI_RCODE SwiGetPriInfo | ( | struct SWI_STRUCT_PriInfo * | pPriInfo, |
| swi_uint32 | timeout | ||
| ) |
This function is used to retrieve PRI information of the device
| pPriInfo,: | [OUT] PRI information timeout: [IN] response timeout value is 1000 milliseconds |
| SWI_API SWI_RCODE SwiGetRadioBandCfg | ( | struct SWI_STRUCT_RadioBandConfig * | pRadioBand, |
| swi_int32 | timeout | ||
| ) |
This function is used to retrieve the current radio band setting of the device along with the list of all the device supported radio bands.
This API replaces SwiGetBandInfo.
| pRadioBand,: | [OUT] A pointer to a SWI_STRUCT_RadioBandConfig structure to store the current radio band configuration. |
| timeout,: | [IN] Response timeout value in milliseconds. |
| SWI_API SWI_RCODE SwiGetRadioBattery | ( | struct SWI_STRUCT_RadioBattery * | pRadioBattery, |
| swi_uint32 | timeout | ||
| ) |
This function is used to retrieve the current radio battery state.
Voltage changes can be monitored with SWI_NOTIFY_RadioBattery.
| pRadioBattery,: | [OUT] A pointer to a SWI_STRUCT_RadioBattery structure to store the current radio battery state. |
| timeout,: | [IN] Response timeout value in milliseconds. |
| SWI_API SWI_RCODE SwiGetRadioPower | ( | struct SWI_STRUCT_RadioPower * | pRadioPower, |
| swi_uint32 | timeout | ||
| ) |
This function is used to retrieve the current radio power mode.
| pRadioPower,: | [OUT] Pointer to a SWI_STRUCT_RadioPower structure to store the current radio power setting. |
| timeout,: | [IN] Response timeout value in milliseconds. |
| SWI_API SWI_RCODE SwiGetRadioTempState | ( | struct SWI_STRUCT_RadioTempState * | pRadioTemp, |
| swi_uint32 | timeout | ||
| ) |
This function is used to retrieve the current radio temperature state.
UMTS AirCards will always report that the temperature state is normal. Temperature state changes can be monitored with SWI_NOTIFY_RadioTempState.
| pRadioTemp,: | [OUT] Pointer to a SWI_STRUCT_RadioTempState to store the current radio temperature state. |
| timeout,: | [IN] Response timeout value in milliseconds. |
| SWI_API SWI_RCODE SwiGetRemoteDiagAgentSupport | ( | SWI_STRUCT_RDA_SUPPORT * | psRDA, |
| swi_uint32 | timeout | ||
| ) |
This function retrieves the modem's Remote Diagnostics Agent support information.
| psRDA[OUT] | Contains RDA support information. See SWI_STRUCT_RDA_SUPPORT. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiGetRemovableMediaSupport | ( | SWI_STRUCT_RM_CONFIG * | psRM, |
| swi_uint32 | timeout | ||
| ) |
This function retrieves the modem's Removable Media support information
| psRM[OUT] | Contains RM support information. See SWI_STRUCT_RM_CONFIG. |
| timeout[IN] | Function timeout in milliseconds. |
This function is used to retrieve the version of the SDK.
| sdkversionpp | : [OUT] pointer to pointer to returned string. |
| SWI_API SWI_RCODE SwiGetSwocCfg | ( | struct SWI_STRUCT_GetSwocCfg * | pSwocCfg, |
| swi_uint32 | timeout | ||
| ) |
This function is used to retrieve Software on Card (SWoC) configuration.
Configuration items returned determine if: -SWoC/TRU-Install feature supported/enabled -SWoC/TRU-Install media in modem mode supported/enabled -bypassing of the SWoC/TRU-Install feature after a software reboot is performed on the device
Some devices require that the OEM level is unlocked before some or all of the request options are attempted.
In order for the ‘SWoC access in modem mode’ feature to be enabled, general overall ‘SWoC’ TRU-Install support must be both supported by the product and currently enabled.
| pSwocCfg | [IN/OUT] |
| timeout | [IN] |
| SWI_API SWI_RCODE SwiGetUsbdInfo | ( | struct SWI_STRUCT_UsbdInfo * | pUsbdInfo, |
| swi_uint32 | timeout | ||
| ) |
This function is used to retrieve the USB descriptor build information.
| pUsbd,: | [OUT] structure to store USB descriptor build information |
| SWI_API SWI_RCODE SwiGetUsbPortName | ( | struct SWI_STRUCT_UsbPortName * | sPortNamep | ) |
This function is used to retrieve the Port Name for the data port.
| [OUT] | szPortName: Port Names of the device. |
| SWI_RCODE SwiIntSendnWaitUsbPortNameRequest | ( | struct SWI_STRUCT_UsbPortName * | sPortNamep | ) |
| SWI_API SWI_RCODE SwiNVUpdateFromFile | ( | SWI_STRUCT_NVUpdateFromFile * | pNVUpdateFromFile, |
| swi_uint32 | timeout | ||
| ) |
This function Forces the modem to perform a NV update from an EFS file.
Note that this function does not return any data via pNVUpdateFromFile. Caller need to set the sizeStruct and szFileName member of pNVUpdateFromFile. The other members of SWI_STRUCT_NVUpdateFromFile are for notification use only.
| pNVUpdateFromFile[IN] | NV update settings. See SWI_STRUCT_NVUpdateFromFile. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiResetToBootHold | ( | swi_uint32 | timeout | ) |
This function causes the modem to reset into boot and hold operation. Boot and Hold operation is used for upgrading the modem's firmware. For USB-based devices, the driver will unload and reload on a modem reset.
The caller will receive a response very quickly, but receipt of a response does not indicate the modem's entry into boot and hold mode, only that the command was sent to the modem. The caller's next step should be to await a SWI_NOTIFY_AirServerChange message and when it's received, call SwiGetBootAndHoldMode() to determine the modem's operating state
If the modem is already in boot and hold operation when this command is issued, there will be no effect. The modem does not respond to reset requests when operating in boot and hold mode.
| timeout[IN],: | response timeout value in milliseconds |
Return: SWI_RCODE_OK - request was successfully sent to the modem SWI_RCODE_REQUEST_TIMEOUT - request timed out See SWI_RCODE for other error return codes
| SWI_API SWI_RCODE SwiSetRadioBandCfg | ( | swi_uint64 | nRadioBandGroup, |
| swi_int32 | timeout | ||
| ) |
This function is used to request a new radio band setting.
This API replaces SwiSetBandInfo.
Setting the frequency band may cause a modem reset. The caller should use SwiGetRadioBandCfg to retrieve the list of supported bands before calling SwiSetRadioBandCfg.
| nRadioBandGroup,: | [IN] A bit mask value which specifies the radio band group to use. See SWI_RADIOBANDGROUP_xxx definitions. |
| timeout,: | [IN] Response timeout value in milliseconds. |
| SWI_API SWI_RCODE SwiSetRadioPower | ( | struct SWI_STRUCT_RadioPower * | pRadioPower, |
| swi_uint32 | timeout | ||
| ) |
This function is used to configure the radio power mode.
| pRadioPower,: | [IN] A pointer to a SWI_STRUCT_RadioPower structure which specifies the new radio power setting. |
| timeout,: | [IN] Response timeout value in milliseconds. |
| SWI_API SWI_RCODE SwiSetRemoteDiagAgentEnable | ( | swi_uint8 | bEnable, |
| swi_uint8 * | pStatus, | ||
| swi_uint32 | timeout | ||
| ) |
This function enables/disables the modem's Remote Diagnostics Agent.
| bEnable[IN] | Disable = 0, Enable = 1; |
| pStatus[OUT] | 0=Success, 1=Failed unspecified,2=Failed security access denied. |
| timeout[IN] | Function timeout in milliseconds. |
| SWI_API SWI_RCODE SwiSetRemovableMediaSupport | ( | const SWI_STRUCT_RM_CONFIG_SET * | psRM, |
| swi_uint8 * | pStatus, | ||
| swi_uint32 | timeout | ||
| ) |
This function sets the modem's Removable Media support information.
| psRM[IN] | Contains RM support config. See SWI_STRUCT_RM_CONFIG_SET. |
| pStatus[OUT] | Set status. |
| timeout[IN] | Function timeout in milliseconds. |
This function causes the modem to undergo a soft reset. SWI_NOTIFY_AirServerChange is generated after the reset has completed. Note that the driver may also unload and reload when a modem reset occurs.
This API will return very quickly but this does not indicate that the modem has reset, only that the reset command has been sent to the modem. When the modem finally resets a SWI_NOTIFY_AirServerChange notification will be generated. Callers may want to consider calling SwiGetBootAndHoldMode() to determine the operating state of the modem, however, modem resets generated by this API will always bring the modem back into full operation after the reset is complete
If the modem is already in boot and hold operation when this command is issued, there will be no effect. The modem does not respond to reset requests when operating in boot and hold mode.
| None |
Gracefully terminate the SDK process
The SDK process is designed to run forever once it is started, behaving as a daemon under Linux in the truest sense of the word. However in some applications there may be a requirement to shut down the daemon when a particular task has completed and this API allows an application to gracefully shut down the daemon
| None |
| void SwiUpkDeviceInformationResp | ( | swi_uint8 * | paramfieldp, |
| struct SWI_STRUCT_DeviceInformation_Response * | pDeviceInfo | ||
| ) |
| void SwiUpkSwocCfg | ( | swi_uint8 * | paramfieldp, |
| struct SWI_STRUCT_GetSwocCfg * | pSwocCfg | ||
| ) |