LinuxSDK  V1.4.0.5
Data Structures | Macros | Typedefs | Enumerations | Functions
SwiApiCdmaNetwork.h File Reference

SWI CDMA specific network related APIs. More...

#include "SwiDataTypes.h"
#include "SwiRcodes.h"
#include "SwiApiCdmaBasic.h"

Go to the source code of this file.

Data Structures

struct  SWI_STRUCT_CallNotificationStatus
 
struct  SWI_STRUCT_ChannelNumber
 
struct  SWI_STRUCT_ChannelState
 
struct  SWI_STRUCT_TechBandClass
 
struct  SWI_STRUCT_ServiceIndication
 
struct  SWI_STRUCT_Prev
 
struct  SWI_STRUCT_RoamingStatus
 
struct  SWI_STRUCT_CallByteCounter
 
struct  SWI_STRUCT_CallConnecting
 
struct  SWI_STRUCT_CallConnected
 
struct  SWI_STRUCT_CallIncoming
 
struct  SWI_STRUCT_CallCallerID
 
struct  SWI_STRUCT_CallExtendedCallerID
 
struct  SWI_STRUCT_CallDisconnected
 
struct  SWI_STRUCT_CallError
 
struct  SWI_STRUCT_CallDormant
 
struct  SWI_STRUCT_OTASPState
 
struct  SWI_STRUCT_CallPrivacy
 
struct  SWI_STRUCT_SidNid
 
struct  SWI_STRUCT_HomeSidNid
 
struct  SWI_STRUCT_TechActiveSetSingle
 
struct  SWI_STRUCT_TechActiveSet
 
struct  SWI_STRUCT_MipEnabled
 
struct  SWI_STRUCT_Rssi_Ecio
 
struct  SWI_STRUCT_Hdr_Roam_Status
 
struct  SWI_STRUCT_Hdr_Srv_State
 
struct  SWI_STRUCT_Hdr_Hybr_Pref
 

Macros

#define SWI_SIDNIDNUM   20
 
#define SWI_MAX_ActiveSet   6 /* Same as MAX_ActiveSet */
 

Typedefs

typedef struct
SWI_STRUCT_CallNotificationStatus 
SWI_STRUCT_CallNotificationStatus
 
typedef enum SWI_TYPE_CDMA_CallType SWI_TYPE_CDMA_CallType
 
typedef enum
SWI_TYPE_CDMA_CallState 
SWI_TYPE_CDMA_CallState
 
typedef enum SWI_TYPE_EndReason SWI_TYPE_EndReason
 
typedef enum SWI_TYPE_CallSource SWI_TYPE_CallSource
 
typedef enum SWI_TYPE_FlashContext SWI_TYPE_FlashContext
 
typedef enum SWI_TYPE_AnswerState SWI_TYPE_AnswerState
 
typedef struct
SWI_STRUCT_ChannelNumber 
SWI_STRUCT_ChannelNumber
 
typedef enum SWI_TYPE_ChannelState SWI_TYPE_ChannelState
 
typedef struct
SWI_STRUCT_ChannelState 
SWI_STRUCT_ChannelState
 
typedef enum SWI_TYPE_TechBandClass SWI_TYPE_TechBandClass
 
typedef struct
SWI_STRUCT_TechBandClass 
SWI_STRUCT_TechBandClass
 
typedef enum
SWI_TYPE_ServiceIndication 
SWI_TYPE_ServiceIndication
 
typedef struct
SWI_STRUCT_ServiceIndication 
SWI_STRUCT_ServiceIndication
 
typedef enum SWI_TYPE_PrevValue SWI_TYPE_PrevValue
 
typedef struct SWI_STRUCT_Prev SWI_STRUCT_Prev
 
typedef enum
SWI_TYPE_CdmaRoamingState 
SWI_TYPE_CdmaRoamingState
 
typedef struct
SWI_STRUCT_RoamingStatus 
SWI_STRUCT_RoamingStatus
 
typedef struct
SWI_STRUCT_CallByteCounter 
SWI_STRUCT_CallByteCounter
 
typedef struct
SWI_STRUCT_CallConnecting 
SWI_STRUCT_CallConnecting
 
typedef struct
SWI_STRUCT_CallConnected 
SWI_STRUCT_CallConnected
 
typedef struct
SWI_STRUCT_CallIncoming 
SWI_STRUCT_CallIncoming
 
typedef struct
SWI_STRUCT_CallCallerID 
SWI_STRUCT_CallCallerID
 
typedef struct
SWI_STRUCT_CallExtendedCallerID 
SWI_STRUCT_CallExtendedCallerID
 
typedef struct
SWI_STRUCT_CallDisconnected 
SWI_STRUCT_CallDisconnected
 
typedef enum
SWI_TYPE_CDMA_CallError 
SWI_TYPE_CDMA_CallError
 
typedef enum SWI_TYPE_CallCmd SWI_TYPE_CallCmd
 
typedef struct SWI_STRUCT_CallError SWI_STRUCT_CallError
 
typedef struct
SWI_STRUCT_CallDormant 
SWI_STRUCT_CallDormant
 
typedef enum SWI_TYPE_OTASPState SWI_TYPE_OTASPState
 
typedef struct
SWI_STRUCT_OTASPState 
SWI_STRUCT_OTASPState
 
typedef enum SWI_TYPE_Privacy SWI_TYPE_Privacy
 
typedef struct
SWI_STRUCT_CallPrivacy 
SWI_STRUCT_CallPrivacy
 
typedef struct SWI_STRUCT_SidNid SWI_STRUCT_SidNid
 
typedef struct
SWI_STRUCT_HomeSidNid 
SWI_STRUCT_HomeSidNid
 
typedef enum cm_mode_pref_e cm_mode_pref_e_type
 
typedef enum SWI_TYPE_Mode_Term SWI_TYPE_Mode_Term
 
typedef enum SWI_TYPE_Band_Pref SWI_TYPE_Band_Pref
 
typedef enum SWI_TYPE_Roam_Pref SWI_TYPE_Roam_Pref
 
typedef enum SWI_TYPE_NvPrefOpMode SWI_TYPE_NvPrefOpMode
 
typedef struct
SWI_STRUCT_TechActiveSetSingle 
SWI_STRUCT_TechActiveSetSingle
 
typedef struct
SWI_STRUCT_TechActiveSet 
SWI_STRUCT_TechActiveSet
 
typedef struct
SWI_STRUCT_MipEnabled 
SWI_STRUCT_MipEnabled
 
typedef struct SWI_STRUCT_Rssi_Ecio SWI_STRUCT_Rssi_Ecio
 
typedef enum
SWI_TYPE_Hdr_Roam_Status 
SWI_TYPE_Hdr_Roam_Status
 
typedef struct
SWI_STRUCT_Hdr_Roam_Status 
SWI_STRUCT_Hdr_Roam_Status
 
typedef enum SWI_TYPE_Hdr_Srv_State SWI_TYPE_Hdr_Srv_State
 
typedef struct
SWI_STRUCT_Hdr_Srv_State 
SWI_STRUCT_Hdr_Srv_State
 
typedef enum SWI_TYPE_Hdr_Hybr_Pref SWI_TYPE_Hdr_Hybr_Pref
 
typedef struct
SWI_STRUCT_Hdr_Hybr_Pref 
SWI_STRUCT_Hdr_Hybr_Pref
 
typedef enum
SWI_TYPE_TechPowersaveMode 
SWI_TYPE_TechPowersaveMode
 
typedef enum SWI_TYPE_NvSystemPref SWI_TYPE_NvSystemPref
 

Enumerations

enum  SWI_TYPE_CDMA_CallType {
  SWI_CALL_TYPE_Voice = 0x0000, SWI_CALL_TYPE_VoiceAlert = 0x0100, SWI_CALL_TYPE_AsyncData = 0x0001, SWI_CALL_TYPE_PacketData = 0x0101,
  SWI_CALL_TYPE_Fax = 0x0201, SWI_CALL_TYPE_Sms = 0x0002, SWI_CALL_TYPE_Test = 0x0003, SWI_CALL_TYPE_Otapa = 0x0005,
  SWI_CALL_TYPE_StandardOtasp = 0x0006, SWI_CALL_TYPE_NonstandardOtasp = 0x0007, SWI_CALL_TYPE_E911 = 0x0008, SWI_CALL_TYPE_EVDO = 0x0009,
  SWI_CALL_TYPE_None = 0xffff
}
 
enum  SWI_TYPE_CDMA_CallState {
  SWI_CALL_STATE_Idle = 0x0000, SWI_CALL_STATE_CnsAsyncData = 0x0001, SWI_CALL_STATE_VoiceCall = 0x0002, SWI_CALL_STATE_Packet = 0x0004,
  SWI_CALL_STATE_AtAsyncData = 0x0010, SWI_CALL_STATE_AtVoiceCall = 0x0020, SWI_CALL_STATE_AtPacket = 0x0040, SWI_CALL_STATE_Fax = 0x0080,
  SWI_CALL_STATE_Sms = 0x0200, SWI_CALL_STATE_OTA = 0x0400, SWI_CALL_STATE_Test = 0x0800, SWI_CALL_STATE_Cw = 0x1000,
  SWI_CALL_STATE_NotUsed = 0x2000, SWI_CALL_STATE_Dormant = 0x4000, SWI_CALL_STATE_Emergency = 0x8000
}
 
enum  SWI_TYPE_EndReason {
  SWI_END_REASON_Offline, SWI_END_REASON_CdmaLockedUntilPowerCycle, SWI_END_REASON_NoService, SWI_END_REASON_CallEndedAbnormally,
  SWI_END_REASON_ReceivedInterceptFromBs, SWI_END_REASON_ReceivedReorderFromBs, SWI_END_REASON_ReceivedReleaseFromBsNoReason, SWI_END_REASON_ReceivedInterceptFromBsSoReject,
  SWI_END_REASON_ReceivedIncomingCallFromBs, SWI_END_REASON_ReceivedAlertStopFromBs, SWI_END_REASON_ClientEndedCall, SWI_END_REASON_ReceivedEndActivation,
  SWI_END_REASON_McAborts, SWI_END_REASON_NdssFailure, SWI_END_REASON_MaxAccessProbesTransmitted, SWI_END_REASON_PersistenceTestFailure,
  SWI_END_REASON_RuimNotPresent, SWI_END_REASON_AccessAttemptAlreadyInProgress, SWI_END_REASON_AccessFailureReasonUnspecified, SWI_END_REASON_ReceivedRetryOrder,
  SWI_END_REASON_Reserved1206 = 0x1206
}
 
enum  SWI_TYPE_CallSource { SWI_CALL_SOURCE_At, SWI_CALL_SOURCE_Cns }
 
enum  SWI_TYPE_FlashContext {
  SWI_FLASH_CONTEXT_DontCare = 0x0000, SWI_FLASH_CONTEXT_CallWaiting = 0x0001, SWI_FLASH_CONTEXT_ThreewaySetup = 0x0002, SWI_FLASH_CONTEXT_ThreewayConnect = 0x0003,
  SWI_FLASH_CONTEXT_AnswerHold = 0x0004, SWI_FLASH_CONTEXT_AnswerForward = 0x0005
}
 
enum  SWI_TYPE_AnswerState {
  SWI_ANSWER_STATE_VoiceAsVoice, SWI_ANSWER_STATE_VoiceAsFaxOnce, SWI_ANSWER_STATE_VoiceAsFaxAlways, SWI_ANSWER_STATE_VoiceAsModemOnce,
  SWI_ANSWER_STATE_VoiceAsModemAlways
}
 
enum  SWI_TYPE_ChannelState { SWI_CHANNEL_Sleep = 0, SWI_CHANNEL_Aquired = 1, SWI_CHANNEL_Scan = 5 }
 
enum  SWI_TYPE_TechBandClass { SWI_TECH_BANDCLASS_Cellular, SWI_TECH_BANDCLASS_Pcs }
 
enum  SWI_TYPE_ServiceIndication { SWI_SERVICE_INDICATION_None, SWI_SERVICE_INDICATION_Analog, SWI_SERVICE_INDICATION_Digital }
 
enum  SWI_TYPE_PrevValue {
  SWI_PREV_VALUE_Jstd008 = 1, SWI_PREV_VALUE_Is95, SWI_PREV_VALUE_Is95A, SWI_PREV_VALUE_MinIs95B,
  SWI_PREV_VALUE_FullIs95B, SWI_PREV_VALUE_Cdma2000Rev0, SWI_PREV_VALUE_Cdma2000Rev1
}
 
enum  SWI_TYPE_CdmaRoamingState { SWI_CDMAROAMING_Home, SWI_CDMAROAMING_Roaming, SWI_CDMAROAMING_NonPref, SWI_CDMAROAMING_None }
 
enum  SWI_TYPE_CDMA_CallError {
  SW_CALL_ERROR_None, SW_CALL_ERROR_InvalidClientID, SW_CALL_ERROR_BadCallTypeParameter, SW_CALL_ERROR_BadServiceTypeParameter,
  SW_CALL_ERROR_BadServiceOptionParameter, SW_CALL_ERROR_ExpectingNumber, SW_CALL_ERROR_NumberLengthGreaterThanZeroBufferNull, SW_CALL_ERROR_InvalidDigitsNumberBuffer,
  SW_CALL_ERROR_OutOfRangeNumberLength, SW_CALL_ERROR_AlphaLengthGreaterThanZeroBufferNull, SW_CALL_ERROR_OutOfRangeAlphaLength, SW_CALL_ERROR_InvalidOtaspActivationCode,
  SW_CALL_ERROR_PhoneOffline, SW_CALL_ERROR_PhoneCdmaLocked, SW_CALL_ERROR_ClientSendingFlasForUnsupportdFlashCall, SW_CALL_ERROR_DialedNumberNotPermitted,
  SW_CALL_ERROR_NonE911CallWhileE911PreferenceInEffect, SW_CALL_ERROR_InvalidCmdWhilePhoneInUse, SW_CALL_ERROR_ServiceTypeNotSupportedByPhonePrl, SW_CALL_ERROR_ClientAnsweredWithWrongCallType,
  SW_CALL_ERROR_CmdInvalidForCurrentState, SW_CALL_ERROR_CmdInvalidForCurrentPhoneServingState, SW_CALL_ERROR_NoServiceFoundForAutomatic, SW_CALL_ERROR_ClientCannotAnswerIncomingCall,
  SW_CALL_ERROR_BadPrivacyPref, SW_CALL_ERROR_NoAvailableCmdBuffers, SW_CALL_ERROR_CommunicationProblemsWithMc, SW_CALL_ERROR_Unspecified
}
 
enum  SWI_TYPE_CallCmd {
  SWI_CALL_CMD_Orig, SWI_CALL_CMD_Answer, SWI_CALL_CMD_End, SWI_CALL_CMD_Flash,
  SWI_CALL_CMD_PrivacyPref, SWI_CALL_CMD_InfoGet, SWI_CALL_CMD_Hold, SWI_CALL_CMD_None = 0x00FF
}
 
enum  SWI_TYPE_OTASPState {
  SWI_OTASP_STATE_PROG_START = 0x0000, SWI_OTASP_STATE_SPL_UNLOCK = 0x0001, SWI_OTASP_STATE_AKEY_EXCHG = 0x0002, SWI_OTASP_STATE_SSD_UPDT = 0x0003,
  SWI_OTASP_STATE_NAM_DL = 0x0004, SWI_OTASP_STATE_MDN_DL = 0x0005, SWI_OTASP_STATE_IMSI_DL = 0x0006, SWI_OTASP_STATE_PRL_DL = 0x0007,
  SWI_OTASP_STATE_COMMIT = 0x0008, SWI_OTASP_STATE_PROG_END = 0x0009
}
 
enum  SWI_TYPE_Privacy { SWI_PRIVACY_Off, SWI_PRIVACY_On }
 
enum  cm_mode_pref_e {
  CM_MODE_PREF_NONE = -1, CM_MODE_PREF_ANALOG_ONLY = 0, CM_MODE_PREF_DIGITAL_ONLY = 1, CM_MODE_PREF_AUTOMATIC = 2,
  CM_MODE_PREF_E911 = 3, CM_MODE_PREF_PCS_CDMA_ONLY = 4, CM_MODE_PREF_CELL_CDMA_ONLY =5, CM_MODE_PREF_CDMA_ONLY = 9,
  CM_MODE_PREF_HDR_ONLY =10, CM_MODE_PREF_CDMA_AMPS_ONLY =11, CM_MODE_PREF_GPS_ONLY =12, CM_MODE_PREF_GSM_ONLY =13,
  CM_MODE_PREF_WCDMA_ONLY =14, CM_MODE_PREF_PERSISTENT, CM_MODE_PREF_NO_CHANGE, CM_MODE_PREF_MAX
}
 
enum  SWI_TYPE_Mode_Term {
  CNS_MODE_TERM_NONE = -1, CNS_MODE_TERM_PERMANENT, CNS_MODE_TERM_PWR_CYCLE, CNS_MODE_TERM_1_CALL,
  CNS_MODE_TERM_1_CALL_OR_TIME, CNS_MODE_TERM_CM_1_CALL, CNS_MODE_TERM_CM_1_CALL_PLUS, CNS_MODE_TERM_CM_MO_SMS,
  CNS_MODE_TERM_MAX
}
 
enum  SWI_TYPE_Band_Pref {
  CNS_BAND_PREF_NONE = 0, CNS_BAND_PREF_BC0_A = 0x01, CNS_BAND_PREF_BC0_B = 0x02, CNS_BAND_PREF_BC0 = 0x03,
  CNS_BAND_PREF_BC1 = 0x04, CNS_BAND_PREF_BC3 = 0x10, CNS_BAND_PREF_BC4 = 0x20, CNS_BAND_PREF_BC5 = 0x40,
  CNS_BAND_PREF_BC6 = 0x80, CNS_BAND_PREF_ANY = 0xFFFF, CNS_BAND_PREF_NO_CHANGE = 0x10000, CNS_BAND_PREF_MAX
}
 
enum  SWI_TYPE_Roam_Pref {
  CNS_ROAM_PREF_NONE = -1, CNS_ROAM_PREF_HOME = 0x01, CNS_ROAM_PREF_ROAM = 0x02, CNS_ROAM_PREF_AFFIL = 0x03,
  CNS_ROAM_PREF_ANY = 0xFF, CNS_ROAM_PREF_NO_CHANGE, CNS_ROAM_PREF_MAX
}
 
enum  SWI_TYPE_NvPrefOpMode {
  SWI_NV_PREF_OP_MODE_CdmaThenAnalog, SWI_NV_PREF_OP_MODE_CdmaOnly, SWI_NV_PREF_OP_MODE_AnalogThenCdma, SWI_NV_PREF_OP_MODE_AnalogOnly,
  SWI_NV_PREF_OP_MODE_Automatic, SWI_NV_PREF_OP_MODE_Emergency, SWI_NV_PREF_OP_MODE_RestrictHomeOnly, SWI_NV_PREF_OP_MODE_PcsCdmaOnly,
  SWI_NV_PREF_OP_MODE_CellCdmaOnly, SWI_NV_PREF_OP_MODE_Cdma1xOnly, SWI_NV_PREF_OP_MODE_CdmaEvdoOnly
}
 
enum  SWI_TYPE_Hdr_Roam_Status { SWI_HDR_ROAM_STATUS_NO_ROAMING = 0x00000000, SWI_HDR_ROAM_STATUS_ROAMING_WITH_GAURANTEED_VALID_SIDS = 0x00000001, SWI_HDR_ROAM_STATUS_ROAMING_WITHOUT_GAURANTEED_SIDS = 0x00000002 }
 
enum  SWI_TYPE_Hdr_Srv_State { SWI_HDR_SRV_STATE_NO_SERVICE = 0x00000000, SWI_HDR_SRV_STATE_DIGITAL_SERVICE = 0x00000002, SWI_HDR_SRV_STATE_DIGITAL_SERVICE_Rev0, SWI_HDR_SRV_STATE_DIGITAL_SERVICE_RevA = 0x00000004 }
 
enum  SWI_TYPE_Hdr_Hybr_Pref { SWI_HDR_HYBR_PREF_MODE_OFF = 0x00000000, SWI_HDR_HYBR_PREF_MODE_ON = 0x00000001 }
 
enum  SWI_TYPE_TechPowersaveMode { SWI_TECH_POWERSAVE_MODE_OFF, SWI_TECH_POWERSAVE_MODE_ON }
 
enum  SWI_TYPE_NvSystemPref {
  SWI_NV_SYSTEM_PREF_AOnly, SWI_NV_SYSTEM_PREF_BOnly, SWI_NV_SYSTEM_PREF_HomeOnly, SWI_NV_SYSTEM_PREF_HomePreferred,
  SWI_NV_SYSTEM_PREF_AutoA, SWI_NV_SYSTEM_PREF_AutoB
}
 

Functions

SWI_API SWI_RCODE SwiGetRssi (swi_int32 *iRssi, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetChannelNumber (swi_uint32 *nChannelNumber, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetServiceIndication (swi_int32 *lServiceIndicator, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetCurrentBaseStation (swi_uint16 *P_PRV, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetRoamingStatus (swi_uint32 *lRoamingStatus, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetTechPowersaveMode (swi_uint16 *powersaveMode, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetTechFrame (swi_uint32 *totalFrames, swi_uint32 *badFrames, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetTransmitPower (swi_int16 *TxPower, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetCallPrivacy (swi_uint16 *privacyMode, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetByteCounter (swi_uint32 *pSent, swi_uint32 *pReceived, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetTechBSInfo (swi_int32 *longitude, swi_int32 *latitude, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetMobileDirNum (swi_uint16 Nam, swi_charp MDN, swi_uint32 length, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetHomeSidNid (swi_uint16 Nam, SWI_STRUCT_HomeSidNid *HomeSidNid, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetSystemPref (swi_uint16 Nam, swi_uint16 *PrefServ, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetSipUserId (swi_charp pszUserId, swi_uint32 szLength, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetSipPassword (swi_charp pszPassword, swi_uint32 szLength, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetSip2UserId (swi_charp pszUserId, swi_uint32 szLength, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetSip2Password (swi_charp pszPassword, swi_uint32 szLength, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetDsMipGenUser (swi_uint16 index, swi_uint16 naiLength, swi_charp nai, swi_uint16 mnHaSpiEnable, swi_uint32 mnHaSpi, swi_uint16 mnAaaSpiEnable, swi_uint32 mnAaaSpi, swi_uint16 reverseTunneling, swi_uint32 homeAddress, swi_uint32 primaryHaAddress, swi_uint32 secondaryHaAddress, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetDsMipGenUser (swi_uint16 index, swi_uint16 naiLength, swi_charp nai, swi_uint16 *pMnHaSpiEnable, swi_uint32 *pMnHaSpi, swi_uint16 *pMnAaaSpiEnable, swi_uint32 *pMnAaaSpi, swi_uint16 *pReverseTunneling, swi_uint32 *pHomeAddress, swi_uint32 *pPrimaryHaAddress, swi_uint32 *pSecondaryHaAddress, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetDsQcMip (swi_uint16 *pBehaviour, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetMobileDirNum (swi_uint16 Nam, const swi_charp MDN, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetHomeSidNid (swi_uint16 Nam, const SWI_STRUCT_HomeSidNid *pHomeSidNid, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetSystemPref (swi_uint16 Nam, swi_uint16 PrefServ, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetSipUserId (const swi_charp pszUserId, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetSipPassword (const swi_charp pszPassword, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetSip2UserId (const swi_charp pszUserId, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetSip2Password (const swi_charp pszPassword, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetCallConnectionState (swi_uint16 *CallState, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetCallConnectionStateEx (SWI_STRUCT_CallConnected *CallState, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetCallOriginateCmd (swi_uint16 callType, const swi_charp szCallNumber, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetCallDisconnectCmd ()
 
SWI_API SWI_RCODE SwiGetCallDuration (swi_uint32 *pCallDuration, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetDsMipActiveProf (swi_uint16 *pActive, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetDsMipActiveProf (swi_uint16 active, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetMipErrCode (swi_uint16 *nErrCode, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetMipErrCodeEx (swi_uint16 *nErrCode1, swi_uint16 *nErrCode2, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetServiceAreaAlert (swi_uint16 *srvAreaAlert, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetServiceAreaAlert (swi_uint16 srvAreaAlert, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetTempModePref (swi_uint16 nModePref, swi_uint16 nModeTerm, swi_uint32 nModeDur, swi_uint32 nBandPref, swi_uint16 nRoamPref, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetRssiEcio (SWI_STRUCT_Rssi_Ecio *stRssiEcio, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiEVDOGetRssi (swi_int32 *lRssi, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetHdrRoamStatus (swi_uint16 *iHdrRoamStatus, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetHdrSrvState (swi_uint16 *iHdrSrvState, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetHdrHybrPref (swi_uint16 *iHdrHybrPref, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetHdrHybrPref (swi_uint16 iHdrHybrPref, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiHdrCloseSession (swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetHdrNotificationStatus (swi_uint16 *iHdrNotificationStatus, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetTechHdrNotificationStatus (swi_uint16 *iTechHdrNotificationStatus, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetHdrUserId (swi_charp pszUserId, swi_uint32 szLength, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetHdrUserId (const swi_charp pszUserId, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetHdrPassword (swi_charp pszPassword, swi_uint32 szLength, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetHdrPassword (const swi_charp pszPassword, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetAutoconnect (swi_uint16 *pnEnable, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiSetAutoconnect (swi_uint16 nEnable, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetDsQcMip (swi_uint16 behaviour, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetPrefMode (swi_uint16 Nam, swi_uint16 *PrefMode, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetPrefMode (swi_uint16 Nam, swi_uint16 PrefMode, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetTechPacketZone (swi_uint16 *packetZoneID, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetTechSID (swi_uint16 *systemID, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetTechNID (swi_uint16 *networkID, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetTermSid (swi_uint16 Nam, swi_uint16 *TermSidEnable, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetTermSid (swi_uint16 Nam, swi_uint16 TermSidEnable, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetTermNid (swi_uint16 Nam, swi_uint16 *TermNidEnable, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetTermNid (swi_uint16 Nam, swi_uint16 TermNidEnable, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiGetTechActiveSet (SWI_STRUCT_TechActiveSet *pTechActSet, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetDsMipRetries (swi_uint16 retries, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetDsMipRetries (swi_uint16 *pRetries, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetDsMipRetryInt (swi_uint16 interval, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetDsMipRetryInt (swi_uint16 *pInterval, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetDsMipPrereRrqTime (swi_uint16 rereg, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetDsMipPrereRrqTime (swi_uint16 *pRereg, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetDsMipQcDrsOpt (swi_uint16 active, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetDsMipQcDrsOpt (swi_uint16 *pActive, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetDsMip2002BisMnHaAuth (swi_uint16 rfc2002, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetDsMip2002BisMnHaAuth (swi_uint16 *pRfc2002, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetDsMipRrqIfTfrk (swi_uint16 reregistration, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetDsMipRrqIfTfrk (swi_uint16 *pReregistration, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstGetDsMipEnableProf (SWI_STRUCT_MipEnabled *sMipEnabled, swi_uint32 timeout)
 
SWI_API SWI_RCODE SwiPstSetDsMipEnableProf (const SWI_STRUCT_MipEnabled *psMipEnabled, swi_uint32 timeout)
 

Detailed Description

SWI CDMA specific network related APIs.

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

Macro Definition Documentation

#define SWI_MAX_ActiveSet   6 /* Same as MAX_ActiveSet */
#define SWI_SIDNIDNUM   20

Typedef Documentation

An enumeration of modem pref.

For compatibility with QXDM database, please do not change the following fix assigned values. If new values are added please also update the QXDM database.

Contains byte Counter notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_CallByteCounter. Refer to the description of SWI_NOTIFY_CallByteCounter for more detail.

The counters measure traffic over the local (host/modem) interface. The counter resets when the call is disconnected.

Contains Caller ID notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_CallCallerID. Refer to the description of SWI_NOTIFY_CallCallerID for more detail.

The Caller ID string is provided by the network.

Contains call connected notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_CallConnected. Refer to the description of SWI_NOTIFY_CallConnected for more detail.

Contains call connecting notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_CallConnecting. Refer to the description of SWI_NOTIFY_CallConnecting for more detail.

Contains call disconnected notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_CallDisconnected. Refer to the description of SWI_NOTIFY_CallDisconnected for more detail.

Contains dormant state notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_CallDormant. Refer to the description of SWI_NOTIFY_CallDormant for more detail.

See Also
SWI_TYPE_CDMA_CallState
SWI_TYPE_EndReason

Contains call error notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_CallError. Refer to the description of SWI_NOTIFY_CallError for more detail.

See Also
SWI_TYPE_CallCmd
SWI_TYPE_CDMA_CallError
SWI_TYPE_CallSource

Contains Caller ID notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_CallCallerID. Refer to the description of SWI_NOTIFY_CallCallerID for more detail.

The Extended Caller ID string is provided by the network.

Contains call incoming notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_CallIncoming. Refer to the description of SWI_NOTIFY_CallIncoming for more detail.

Contains call notification status data structure.

Contains OTASP state notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_CallPrivacy. Refer to the description of SWI_NOTIFY_CallPrivacy for more detail.

See Also
SWI_TYPE_Privacy

Contains Channel # notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_ChannelNumber. Refer to the description of SWI_NOTIFY_ChannelNumber for more detail.

See Also
SwiGetChannelNumber

Contains Channel State notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_ChannelState. Refer to the description of SWI_NOTIFY_ChannelState for more detail.

See Also
SWI_TYPE_ChannelState

Contains EVDO/HDR Hybrid pref mode data structure.

See Also
SWI_TYPE_Hdr_Hybr_Pref

Contains EVDO/HDR roaming state data structure.

See Also
SWI_TYPE_Hdr_Roam_Status

Contains EVDO/HDR roaming state data structure.

See Also
SWI_TYPE_Hdr_Srv_State

Contains SID/NID pairs data.

This structure is used to report (SwiPstGetHomeSidNid) or set (SwiPstSetHomeSidNid) the home (non-roaming) SID / NID table for an account profile.

Contains MIP enabling data structure.

Contains OTASP state notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_OTASPState. Refer to the description of SWI_NOTIFY_OTASPState for more detail.

See Also
SWI_TYPE_OTASPState

Contains Protocol Revision notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_Prev. Refer to the description of SWI_NOTIFY_Prev for more detail.

See Also
SWI_TYPE_PrevValue

Contains roaming state notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_RoamingStatus. Refer to the description of SWI_NOTIFY_RoamingStatus for more detail.

See Also
SWI_TYPE_CdmaRoamingState

Contains RSSI and EcIo data structure.

This data structure is used to hold RSSI and EcIo data.

Contains service indication notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_ServiceIndication. Refer to the description of SWI_NOTIFY_ServiceIndication for more detail.

See Also
SWI_TYPE_ServiceIndication

Contains SID/NID pair data.

This structure is used as a member of SWI_STRUCT_HomeSidNid.

Contains whole active set data structure.

See Also
SWI_STRUCT_TechActiveSetSingle

Contains one active set data structure.

Contains Bandclass notification data structure.

This data structure is used as a member of the notification SWI_NOTIFY_TechBandClass. Refer to the description of SWI_NOTIFY_TechBandClass for more detail.

See Also
SWI_TYPE_TechBandClass

An enumeration of answer State.

The modes of operation the modem uses to determine how to answer the next incoming voice call.

An enumeration of band preferences.

An enumeration of call command.

This enumerates the call commands provided by the notification SWI_NOTIFY_CallError.

An enumeration of Call Source (AT Cmds or API) enumeration.

This enumerates the call source options which identify if a call was connected using AT commands or using the CnS protocol (used by the API).

An enumeration of call error.

This enumerates the call errors provided by the notification SWI_NOTIFY_CallError.

An enumeration of call state.

This enumeration type identifies the elements of a bit-mapped call state. More than one bit can be

An enumeration of call type.

An enumeration of roaming state.

This type definition covers the possible return values of the function SwiGetRoamingState, and the SWI_NOTIFY_NetworkStatus notification.

An enumeration of channel state.

An enumeration of reason for call termination.

An enumeration of flash Context.

Values for use with the SwiSetCallFlashCmd function.

An enumeration of EVDO/HDR Hybrid pref.

An enumeration of EVDO/HDR roaming state.

This type definition covers the possible return values of the function SwiGetHdrRoamStatus, and the SWI_NOTIFY_Hdr_Roam_Status notification.

Values above 2 are carrier dependent.

An enumeration of EVDO/HDR service state.

An enumeration of mode terms.

Mode terms that are assigned automatically by call manager when mode is forced on the fly during a call origination.

CM unforce the mode back to it original settings at end of call or some short time after end of call.

NOTE! These mode term should NOT be used by clients when changing the mode preference.

An enumeration of NV pref op mode.

An enumeration of system preference.

An enumeration of OTASP state.

This enumeration type identifies the available OTASP progress states.

A successful OTASP session assumes no failures for any states, and a successful commit.

An enumeration of Protocol Revision.

This enumerates the protocol revision supported by the serving base station.

Values of 6 or 7 (Cdma2000) indicate 1xRTT coverage is availble. Value 1 (Jstd008) is not supported.

An enumeration of privacy state.

The data enumerates as privacy either on or off

An enumeration of system selection roam preferences.

An enumeration of service indication.

This enumeration contains the service indication states. These do not include EVDO/HDR service states. See SWI_TYPE_Hdr_Srv_State.

An enumeration of bandclass.

An enumeration of power save mode.

Enumeration Type Documentation

An enumeration of modem pref.

For compatibility with QXDM database, please do not change the following fix assigned values. If new values are added please also update the QXDM database.

Enumerator
CM_MODE_PREF_NONE 

FOR INTERNAL USE OF CM ONLY!

CM_MODE_PREF_ANALOG_ONLY 

Service is limited to analog only. = NV_MODE_ANALOG_ONLY

CM_MODE_PREF_DIGITAL_ONLY 

Service is limited to digital (CDMA or HDR) only. = NV_MODE_DIGITAL_ONLY

CM_MODE_PREF_AUTOMATIC 

Determine the mode automatically from the PRL order. = NV_MODE_AUTOMATIC

CM_MODE_PREF_E911 

Emergency mode. = NV_MODE_E911

CM_MODE_PREF_PCS_CDMA_ONLY 

PCS mode - obsolete in SD 2.0 (use band preference). = NV_MODE_PCS_CDMA_ONLY

CM_MODE_PREF_CELL_CDMA_ONLY 

Cellular mode - obsolete in SD 2.0 (use band preference). = NV_MODE_CELL_CDMA_ONLY

CM_MODE_PREF_CDMA_ONLY 

Service is limited to CDMA only

CM_MODE_PREF_HDR_ONLY 

Service is limited to HDR only

CM_MODE_PREF_CDMA_AMPS_ONLY 

Service is limited to CDMA and AMPS only

CM_MODE_PREF_GPS_ONLY 

Service is limited to GPS only

CM_MODE_PREF_GSM_ONLY 

Service is limited to GSM only

CM_MODE_PREF_WCDMA_ONLY 

Service is limited to WCMDA only

CM_MODE_PREF_PERSISTENT 

Return to persistent mode preference

CM_MODE_PREF_NO_CHANGE 

Do not change the mode preference

CM_MODE_PREF_MAX 

FOR INTERNAL USE OF CM ONLY!

An enumeration of answer State.

The modes of operation the modem uses to determine how to answer the next incoming voice call.

Enumerator
SWI_ANSWER_STATE_VoiceAsVoice 

Answer voice as voice

SWI_ANSWER_STATE_VoiceAsFaxOnce 

Answer voice as fax once (for the next 10 minutes)

SWI_ANSWER_STATE_VoiceAsFaxAlways 

Answer voice as fax always

SWI_ANSWER_STATE_VoiceAsModemOnce 

Answer voice as modem once (for the next 10 minutes)

SWI_ANSWER_STATE_VoiceAsModemAlways 

Answer voice as modem always

An enumeration of band preferences.

Enumerator
CNS_BAND_PREF_NONE 

Acquire no system

CNS_BAND_PREF_BC0_A 

Acquire band class 0, A-Side systems only (US Cellular A 800 MHz)

CNS_BAND_PREF_BC0_B 

Acquire band class 0, B-Side systems only (US Cellular B 800 MHz)

CNS_BAND_PREF_BC0 

Acquire band class 0 systems only (US Cellular A/B 800 MHz)

CNS_BAND_PREF_BC1 

Acquire band class 1 systems only (US PCS 1900 MHz)

CNS_BAND_PREF_BC3 

Acquire band class 3 systems only (Japanese Cellular 800 MHz)

CNS_BAND_PREF_BC4 

Acquire band class 4 systems only (Korean PCS 1800 MHz)

CNS_BAND_PREF_BC5 

Acquire band class 5 systems only (450 MHz)

CNS_BAND_PREF_BC6 

Acquire band class 6 systems only (IMT2000)

CNS_BAND_PREF_ANY 

Acquire any band class systems

CNS_BAND_PREF_NO_CHANGE 

Do not change the band preference

CNS_BAND_PREF_MAX 

Place holder

An enumeration of call command.

This enumerates the call commands provided by the notification SWI_NOTIFY_CallError.

Enumerator
SWI_CALL_CMD_Orig 

Call origination command

SWI_CALL_CMD_Answer 

Call answer command

SWI_CALL_CMD_End 

Call end command

SWI_CALL_CMD_Flash 

Flash command

SWI_CALL_CMD_PrivacyPref 

Privacy Pref. Command

SWI_CALL_CMD_InfoGet 

Info command

SWI_CALL_CMD_Hold 

Hold command

SWI_CALL_CMD_None 

No command

An enumeration of Call Source (AT Cmds or API) enumeration.

This enumerates the call source options which identify if a call was connected using AT commands or using the CnS protocol (used by the API).

Enumerator
SWI_CALL_SOURCE_At 

AT Commands

SWI_CALL_SOURCE_Cns 

CNS (API)

An enumeration of call error.

This enumerates the call errors provided by the notification SWI_NOTIFY_CallError.

Enumerator
SW_CALL_ERROR_None 

No errors found

SW_CALL_ERROR_InvalidClientID 

Invalid client ID - null or not initialized

SW_CALL_ERROR_BadCallTypeParameter 

Bad call type parameter

SW_CALL_ERROR_BadServiceTypeParameter 

Bad service type parameter

SW_CALL_ERROR_BadServiceOptionParameter 

Bad service option parameter

SW_CALL_ERROR_ExpectingNumber 

Expecting a number to be provided via the number parameter

SW_CALL_ERROR_NumberLengthGreaterThanZeroBufferNull 

Number length is > 0, but number buffer points to NULL

SW_CALL_ERROR_InvalidDigitsNumberBuffer 

Invalid digits found in number buffer

SW_CALL_ERROR_OutOfRangeNumberLength 

Out of range value found in number length field

SW_CALL_ERROR_AlphaLengthGreaterThanZeroBufferNull 

Alpha length is > 0, but alpha buffer points to NULL

SW_CALL_ERROR_OutOfRangeAlphaLength 

Out of range value found in alpha length field

SW_CALL_ERROR_InvalidOtaspActivationCode 

Invalid OTASP activation code

SW_CALL_ERROR_PhoneOffline 

Phone is offline

SW_CALL_ERROR_PhoneCdmaLocked 

Phone is CDMA locked

SW_CALL_ERROR_ClientSendingFlasForUnsupportdFlashCall 

Client tried to send a flash while a call that not supporting flashes is in progress

SW_CALL_ERROR_DialedNumberNotPermitted 

Dialed number is not allowed under the current origination restriction

SW_CALL_ERROR_NonE911CallWhileE911PreferenceInEffect 

Client tried to originate a NONE E911 call while E911 mode preference is in effect

SW_CALL_ERROR_InvalidCmdWhilePhoneInUse 

Can't perform the command in question while phone is in-use

SW_CALL_ERROR_ServiceTypeNotSupportedByPhonePrl 

Client originated with service type that is currently not supported by the phone/PRL

SW_CALL_ERROR_ClientAnsweredWithWrongCallType 

Client answered with inappropriate call type relative to the type of the incoming call

SW_CALL_ERROR_CmdInvalidForCurrentState 

The command in question is invalid in the current call state

SW_CALL_ERROR_CmdInvalidForCurrentPhoneServingState 

The command in question is invalid in the current Phone serving state

SW_CALL_ERROR_NoServiceFoundForAutomatic 

No valid service found for origination with AUTOMATIC or CDMA_AUTOMATIC service type

SW_CALL_ERROR_ClientCannotAnswerIncomingCall 

Client is not allowed to answer the incoming call

SW_CALL_ERROR_BadPrivacyPref 

Bad privacy preference setting

SW_CALL_ERROR_NoAvailableCmdBuffers 

No available CM command buffers to queue the command

SW_CALL_ERROR_CommunicationProblemsWithMc 

Communication problems with MC

SW_CALL_ERROR_Unspecified 

A problem other than the above was found

An enumeration of call state.

This enumeration type identifies the elements of a bit-mapped call state. More than one bit can be

Enumerator
SWI_CALL_STATE_Idle 

No call

SWI_CALL_STATE_CnsAsyncData 

Async Data call

SWI_CALL_STATE_VoiceCall 

Voice call

SWI_CALL_STATE_Packet 

Packet 1xRtt call

SWI_CALL_STATE_AtAsyncData 

Async Data call (via AT cmds)

SWI_CALL_STATE_AtVoiceCall 

Voice call (via AT cmds)

SWI_CALL_STATE_AtPacket 

Packet 1xRtt call (via AT cmds)

SWI_CALL_STATE_Fax 

Fax call

SWI_CALL_STATE_Sms 

SMS

SWI_CALL_STATE_OTA 

OTA

SWI_CALL_STATE_Test 

Not used

SWI_CALL_STATE_Cw 

Not used

SWI_CALL_STATE_NotUsed 

Not used

SWI_CALL_STATE_Dormant 

Data connection is in dormant state

SWI_CALL_STATE_Emergency 

An emergency (E911) call

An enumeration of call type.

Enumerator
SWI_CALL_TYPE_Voice 

Standard voice call and originating an OTASP call.

SWI_CALL_TYPE_VoiceAlert 

Call waiting (Incoming only)

SWI_CALL_TYPE_AsyncData 

Asynchronous Data. QNC data call

SWI_CALL_TYPE_PacketData 

Packet Data.

SWI_CALL_TYPE_Fax 

Fax

SWI_CALL_TYPE_Sms 

SMS. indicates the connection being made is for SMS transactions.

SWI_CALL_TYPE_Test 

Test (not used)

SWI_CALL_TYPE_Otapa 

OTAPA. A call from a special number to update network settings in the modem. (Incoming only)

SWI_CALL_TYPE_StandardOtasp 

Standard OTASP. Not used in call origination or termination (answering). When OTASP is established a voice call may change to this type.

SWI_CALL_TYPE_NonstandardOtasp 

Nonstandard OTASP (not used)

SWI_CALL_TYPE_E911 

E911. An emergency mode call.

SWI_CALL_TYPE_EVDO 

EVDO call

SWI_CALL_TYPE_None 

Not used

An enumeration of roaming state.

This type definition covers the possible return values of the function SwiGetRoamingState, and the SWI_NOTIFY_NetworkStatus notification.

Enumerator
SWI_CDMAROAMING_Home 

Not Roaming

SWI_CDMAROAMING_Roaming 

Roaming

SWI_CDMAROAMING_NonPref 

Not support

SWI_CDMAROAMING_None 

Not support

An enumeration of channel state.

Enumerator
SWI_CHANNEL_Sleep 

Sleep

SWI_CHANNEL_Aquired 

Aquired

SWI_CHANNEL_Scan 

Scan

An enumeration of reason for call termination.

Enumerator
SWI_END_REASON_Offline 

Phone is offline

SWI_END_REASON_CdmaLockedUntilPowerCycle 

Phone is CDMA locked until power-cycle

SWI_END_REASON_NoService 

Phone has no service

SWI_END_REASON_CallEndedAbnormally 

Call has ended abnormally

SWI_END_REASON_ReceivedInterceptFromBs 

Received intercept from BS (Orig. only)

SWI_END_REASON_ReceivedReorderFromBs 

Received release from BS (Orig. only)

SWI_END_REASON_ReceivedReleaseFromBsNoReason 

Received release from BS - no reason given

SWI_END_REASON_ReceivedInterceptFromBsSoReject 

Received release from BS - SO reject

SWI_END_REASON_ReceivedIncomingCallFromBs 

Received incoming call from BS

SWI_END_REASON_ReceivedAlertStopFromBs 

Received alert stop from BS (incoming only)

SWI_END_REASON_ClientEndedCall 

Client ended the call

SWI_END_REASON_ReceivedEndActivation 

Received end activation (OTASP call only)

SWI_END_REASON_McAborts 

Obsolete

SWI_END_REASON_NdssFailure 

NDSS failure

SWI_END_REASON_MaxAccessProbesTransmitted 

Max access probes transmitted

SWI_END_REASON_PersistenceTestFailure 

Persistence test failure

SWI_END_REASON_RuimNotPresent 

RUIM not present

SWI_END_REASON_AccessAttemptAlreadyInProgress 

Access attempt already in progress

SWI_END_REASON_AccessFailureReasonUnspecified 

Access failure for reason other than the above reason

SWI_END_REASON_ReceivedRetryOrder 

Received retry order (Orig. only)

SWI_END_REASON_Reserved1206 

Reserved for special faked Disconnect event

An enumeration of flash Context.

Values for use with the SwiSetCallFlashCmd function.

Enumerator
SWI_FLASH_CONTEXT_DontCare 

Don’t Care. This passes the call number to the call manager without checking that the flash command is valid in the present call state. Use this context when you want manual control over the flash command. If enabled, the [CallError] notifications are sent if the flash is invoked in an inappropriate call state.

SWI_FLASH_CONTEXT_CallWaiting 

Call Waiting. This indicates to the call manager that the flash is for servicing a waiting call. When first invoked, it puts the current call on hold and connects the second call that is waiting. hold and connects the second call that is waiting. original call and holds the second call.

SWI_FLASH_CONTEXT_ThreewaySetup 

Threeway Setup. This indicates to the call manager that the flash is for setting up a threeway call. A call number must be provided or else an error message will be returned as the response. This context sends two flashes to the base station, the first without a phone number and the second with a phone number.

SWI_FLASH_CONTEXT_ThreewayConnect 

Threeway Connect. This indicates to the call manager that the flash is to connect all three parties. For this context, a call number must not be provided, otherwise an error message is returned as the response. Use the Don't Care flash context with an empty call number to disconnect the last connected party.

SWI_FLASH_CONTEXT_AnswerHold 

Answer Hold Not implemented.

SWI_FLASH_CONTEXT_AnswerForward 

Answer Forward Not implemented.

An enumeration of EVDO/HDR Hybrid pref.

Enumerator
SWI_HDR_HYBR_PREF_MODE_OFF 

Hybrid pref mode off

SWI_HDR_HYBR_PREF_MODE_ON 

Hybrid pref mode on

An enumeration of EVDO/HDR roaming state.

This type definition covers the possible return values of the function SwiGetHdrRoamStatus, and the SWI_NOTIFY_Hdr_Roam_Status notification.

Values above 2 are carrier dependent.

Enumerator
SWI_HDR_ROAM_STATUS_NO_ROAMING 

Not Roaming

SWI_HDR_ROAM_STATUS_ROAMING_WITH_GAURANTEED_VALID_SIDS 

Roaming (preferred)

SWI_HDR_ROAM_STATUS_ROAMING_WITHOUT_GAURANTEED_SIDS 

Roaming (non-preferred)

An enumeration of EVDO/HDR service state.

Enumerator
SWI_HDR_SRV_STATE_NO_SERVICE 

No service

SWI_HDR_SRV_STATE_DIGITAL_SERVICE 

Digital service

SWI_HDR_SRV_STATE_DIGITAL_SERVICE_Rev0 

Digital service Rev 0

SWI_HDR_SRV_STATE_DIGITAL_SERVICE_RevA 

Digital service Rev A

An enumeration of mode terms.

Mode terms that are assigned automatically by call manager when mode is forced on the fly during a call origination.

CM unforce the mode back to it original settings at end of call or some short time after end of call.

NOTE! These mode term should NOT be used by clients when changing the mode preference.

Enumerator
CNS_MODE_TERM_NONE 

FOR INTERNAL USE OF CM ONLY!

CNS_MODE_TERM_PERMANENT 

Permanent mode change

CNS_MODE_TERM_PWR_CYCLE 

Until power cycle

CNS_MODE_TERM_1_CALL 

Until end of next call or power-cycle

CNS_MODE_TERM_1_CALL_OR_TIME 

Until end of next call, specified timeout or power-cycle

CNS_MODE_TERM_CM_1_CALL 
CNS_MODE_TERM_CM_1_CALL_PLUS 
CNS_MODE_TERM_CM_MO_SMS 
CNS_MODE_TERM_MAX 

FOR INTERNAL USE OF CM ONLY!

An enumeration of NV pref op mode.

Enumerator
SWI_NV_PREF_OP_MODE_CdmaThenAnalog 

Not supported

SWI_NV_PREF_OP_MODE_CdmaOnly 

2G CDMA

SWI_NV_PREF_OP_MODE_AnalogThenCdma 

Not supported

SWI_NV_PREF_OP_MODE_AnalogOnly 

Not supported

SWI_NV_PREF_OP_MODE_Automatic 

Automatic

SWI_NV_PREF_OP_MODE_Emergency 

Emergency

SWI_NV_PREF_OP_MODE_RestrictHomeOnly 

Restrict Home Only

SWI_NV_PREF_OP_MODE_PcsCdmaOnly 

1900Mhz CDMA Only

SWI_NV_PREF_OP_MODE_CellCdmaOnly 

800Mhz CDMA Only

SWI_NV_PREF_OP_MODE_Cdma1xOnly 

1xRTT CDMA Only

SWI_NV_PREF_OP_MODE_CdmaEvdoOnly 

1xEVDO CDMA Only

An enumeration of system preference.

Enumerator
SWI_NV_SYSTEM_PREF_AOnly 

System A only

SWI_NV_SYSTEM_PREF_BOnly 

System B only

SWI_NV_SYSTEM_PREF_HomeOnly 

Home only

SWI_NV_SYSTEM_PREF_HomePreferred 

Home prefered

SWI_NV_SYSTEM_PREF_AutoA 

Automatic A

SWI_NV_SYSTEM_PREF_AutoB 

Automatic B

An enumeration of OTASP state.

This enumeration type identifies the available OTASP progress states.

A successful OTASP session assumes no failures for any states, and a successful commit.

Enumerator
SWI_OTASP_STATE_PROG_START 

Programming started

SWI_OTASP_STATE_SPL_UNLOCK 

SPL unlock - required to access certain parameters

SWI_OTASP_STATE_AKEY_EXCHG 

AKey exchange - Authentication key has been exchanged

SWI_OTASP_STATE_SSD_UPDT 

Shared Secret Data has been updated

SWI_OTASP_STATE_NAM_DL 

New NAM parameters have been downloaded

SWI_OTASP_STATE_MDN_DL 

New MDM has been downloaded

SWI_OTASP_STATE_IMSI_DL 

IMSI has been downloaded

SWI_OTASP_STATE_PRL_DL 

PRL has been downloaded

SWI_OTASP_STATE_COMMIT 

Newly downloaded parameters have been transferred to NV-RAM

SWI_OTASP_STATE_PROG_END 

Programming ended

An enumeration of Protocol Revision.

This enumerates the protocol revision supported by the serving base station.

Values of 6 or 7 (Cdma2000) indicate 1xRTT coverage is availble. Value 1 (Jstd008) is not supported.

Enumerator
SWI_PREV_VALUE_Jstd008 

Not supported

SWI_PREV_VALUE_Is95 

IS95

SWI_PREV_VALUE_Is95A 

IS95A

SWI_PREV_VALUE_MinIs95B 

Minimum IS95B

SWI_PREV_VALUE_FullIs95B 

Full IS95B

SWI_PREV_VALUE_Cdma2000Rev0 

CDMA 2000 Rev 0

SWI_PREV_VALUE_Cdma2000Rev1 

CDMA 2000 Rev 1

An enumeration of privacy state.

The data enumerates as privacy either on or off

Enumerator
SWI_PRIVACY_Off 

Privacy off

SWI_PRIVACY_On 

Privacy on

An enumeration of system selection roam preferences.

Enumerator
CNS_ROAM_PREF_NONE 

FOR INTERNAL USE OF CM ONLY!

CNS_ROAM_PREF_HOME 

Acquire only systems for which the roaming indication is off

CNS_ROAM_PREF_ROAM 

Acquire only systems for which the roaming indication is strictly on

CNS_ROAM_PREF_AFFIL 

Acquire only systems for which the roaming indication is off or solid on - i.e. not flashing

CNS_ROAM_PREF_ANY 

Acquire systems regardless of their roaming indication

CNS_ROAM_PREF_NO_CHANGE 

Do not change the roam preference

CNS_ROAM_PREF_MAX 

FOR INTERNAL USE OF CM ONLY!

An enumeration of service indication.

This enumeration contains the service indication states. These do not include EVDO/HDR service states. See SWI_TYPE_Hdr_Srv_State.

Enumerator
SWI_SERVICE_INDICATION_None 

No service

SWI_SERVICE_INDICATION_Analog 

analog

SWI_SERVICE_INDICATION_Digital 

digital

An enumeration of bandclass.

Enumerator
SWI_TECH_BANDCLASS_Cellular 

Cellular

SWI_TECH_BANDCLASS_Pcs 

PCS

An enumeration of power save mode.

Enumerator
SWI_TECH_POWERSAVE_MODE_OFF 

Off

SWI_TECH_POWERSAVE_MODE_ON 

On

Function Documentation

SWI_API SWI_RCODE SwiEVDOGetRssi ( swi_int32 lRssi,
swi_uint32  timeout 
)

This function gets the current EVDO RSSI.

Parameters
lRssi[OUT]RSSI value returned from modem.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetAutoconnect ( swi_uint16 pnEnable,
swi_uint32  timeout 
)

This function gets auto connect flag (for data call) set in modem.

Parameters
pnEnable[OUT]value 1 = enable ; 0 to disable.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetByteCounter ( swi_uint32 pSent,
swi_uint32 pReceived,
swi_uint32  timeout 
)

This function returns the number of bytes trans-mitted and received in the current call

Counters contain the total bytes sent and received over the local (host/modem) interface. The counter resets when the call is disconnected.

A notification equivalent is available (SWI_NOTIFY_CallByteCounter) and is the preferred mechanism for tracking this data.

Parameters
pSent[OUT]The number of bytes tranmitted.
pReceived[OUT]The number of bytes received.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetCallConnectionState ( swi_uint16 CallState,
swi_uint32  timeout 
)

This function reports the state of the modem’s current connections.

Consult the data type for SWI_TYPE_CDMA_CallState for additional information on the meaning of the returned bit mask.

There is a family of notifications used to indicate any changes in call states.

Parameters
CallState[OUT]The destination in which the current call states are returned as a single bit-mapped value. See SWI_TYPE_CDMA_CallState.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetCallConnectionStateEx ( SWI_STRUCT_CallConnected CallState,
swi_uint32  timeout 
)

This function reports the state of the modem’s current connections.

Consult the data type for SWI_TYPE_CallState for additional information on the meaning of the returned bit mask.

Parameters
CallState[OUT]The destination in which the current call states are returned as a single bit-mapped value and the SO value of the call. This SO value is ONLY meaningfull when the current call is ACTIVE (CONNECTED).
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetCallDuration ( swi_uint32 pCallDuration,
swi_uint32  timeout 
)

This function reports the elapsed time of the current call.

Applicable to both data and voice calls.

Parameters
pCallDuration[IN]Duration of current call in seconds.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetCallPrivacy ( swi_uint16 privacyMode,
swi_uint32  timeout 
)

This function returns the modem's call privacy state.

Parameters
privacyMode[OUT]The destination in which the call privacy state is returned: 0 = Call Privacy off 1 = Call Privacy on
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetChannelNumber ( swi_uint32 nChannelNumber,
swi_uint32  timeout 
)

This function returns the current channel number.

Parameters
nChannelNumber[OUT]channel number.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetCurrentBaseStation ( swi_uint16 P_PRV,
swi_uint32  timeout 
)

This function retrieves the protocol revision (service type) of the base station currently serving the modem.

This command is used to determine if making 1xRTT calls is possible.

Protocol revision 1 is not supported.

Parameters
P_PRV[OUT]The destination in which the base station protocol revision is returned: 1 = JSTD-008 (PCS Japan) 2 = IS-95 3 = IS-95A (Cellular) 4 = IS-95B minimum req. 5 = IS-95B full requirements 6 = CDMA2000 Revision 0 7 = CDMA2000 Revision 1 Values of 6 or above indicate 1xRTT coverage. Values below 6 indicate IS-95 coverage.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetHdrHybrPref ( swi_uint16 iHdrHybrPref,
swi_uint32  timeout 
)

This function gets the HDR Hybrid Pref setting.

Parameters
iHdrHybrPref[OUT]HDR Hybrid Pref setting. See SWI_TYPE_Hdr_Hybr_Pref. 0 = OFF; 1 = ON
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetHdrNotificationStatus ( swi_uint16 iHdrNotificationStatus,
swi_uint32  timeout 
)

This function gets a mask of which HDR notifications are enabled.

Parameters
iHdrNotificationStatus[OUT]Notification Mask.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetHdrRoamStatus ( swi_uint16 iHdrRoamStatus,
swi_uint32  timeout 
)

This function gets the current roaming status for HDR service.

Parameters
iHdrRoamStatus[OUT]HDR roam status. See SWI_TYPE_Hdr_Roam_Status.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetHdrSrvState ( swi_uint16 iHdrSrvState,
swi_uint32  timeout 
)

This function gets the HDR service state.

Parameters
iHdrSrvState[OUT]HDR service state. See SWI_TYPE_Hdr_Srv_State. 0 = No Service; 2 = HDR Service
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetMipErrCode ( swi_uint16 nErrCode,
swi_uint32  timeout 
)

This function returns the last Mobile IP registration error received from the network.

Parameters
nErrCode[OUT]The destination in which the error code is returned.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
See Also
SwiGetMipErrCodeEx()
SWI_API SWI_RCODE SwiGetMipErrCodeEx ( swi_uint16 nErrCode1,
swi_uint16 nErrCode2,
swi_uint32  timeout 
)

This function returns the last Mobile IP registration error received from the network.

This function extends SwiGetMipErrCode by adding support for carrier-defined errors (nErrCode2).

The standard error code definitions can be found in the following public references: Mobile IP RFC2002.

The classification of the error codes used by Watcher are as follows:

        - No Error: 0, 1, 0xffff
        - Registration failure: 67
        - Sign-in failure: 131, 133
        - Session request too long: 69
        - Home Agent failure: 80, 81, 82, 88
        - Unknown Error: 64, 65, 128, 129
        - Unrecognizable Home Agent Addresses: 136
        - Network Error: 66, 68, 97-101, 130, 132, 140, 141
        - System Error: 70-76, 79, 96, 104-106, 134, 135, 137-139
        - Cannot prepare data services: 1012
        - Suspension of Account: 801
        - Carrier Specific: 89

Carrier specific error codes (valid when nErrCode = 89) include the following:

    Verizon:
        1 - General Failure
        2 - Authentication Failure
        3 - Invalid Service Failure
        4 - Invalid Public Key Failure
Parameters
nErrCode1[OUT]The destination in which the error code is returned.
nErrCode2[OUT]Carrier specific error code. Valid only when nErrCode = 89.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetMobileDirNum ( swi_uint16  Nam,
swi_charp  MDN,
swi_uint32  length,
swi_uint32  timeout 
)

This function returns the MDN (Mobile Directory Number) of the specified NAM account profile.

The MDN has a maximum length of 15 bytes.

See also SwiGetPhoneNumber.

Parameters
Nam[IN]NAM index.
MDN[OUT]Mobile Directory Number of the selected NAM profile.
length[IN]Length of the string buffer to receive the result.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetRoamingStatus ( swi_uint32 lRoamingStatus,
swi_uint32  timeout 
)

This function reports whether the device has acquired service from a cellular service provider other than that to which the user has subscribed.

Results when called while not in coverage are undefined. The modem cannot verify that you are roaming until it can detect coverage (SwiGetServiceIndication) and identify the service provider(s).

Use of this function should be limited. There is a notification available in the CDMA2000 1X API (SWI_NOTIFY_RoamingStatus) that reports the same data. Use of notifications is preferred over direct polling.

Parameters
lRoamingStatus[OUT]A pointer to return the status: 0 = Not roaming 1 = Roaming 2 = Non preferred roaming >2 = Service provider dependent
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetRssi ( swi_int32 iRssi,
swi_uint32  timeout 
)

This function reports the Received Signal Strength Indicator (RSSI) A request is sent to the modem. The modem's response contains the RSSI. The caller must specify the amount of time to wait for the modem to respond to the request.

CDMA does not use an RSSI per se. The modem uses an algorithm incorporating signal quality elements to produce the numbers delivered by this function.

The interpretation is described in the following table:


| Value | Meaning |

| -137 | No signal detected | | -136 to -91 | Very poor | | -90 to -86 | Poor | | -85 to -81 | Fair | | -80 to -76 | Good |

| > -76 | Excellent |

Use of this function should be reserved to application startup. There is a notification available in the CDMA2000 1X API (SWI_NOTIFY_Rssi). Use of notifications is preferred over direct polling.

Parameters
[OUT]iRssi: (positive) RSSI value. Negate the value received to interpret it correctly.
[IN]timeout: response timeout value in milliseconds
Returns
SWI_RCODE_OK - the request has been received by the modem
SWI_RCODE_REQUEST_TIMEOUT - the request has timed out
SWI_RCODE_UNEXPECTED_RESP - the value returned was outside of the expected range. The returned data is not likely correct.
See SWI_RCODE for other error return codes
SWI_API SWI_RCODE SwiGetRssiEcio ( SWI_STRUCT_Rssi_Ecio stRssiEcio,
swi_uint32  timeout 
)

This function gets the current RSSI and EcIo values for Signal Stregth reporting.

Parameters
[OUT]stRssiEcio Struct with RSSI and EcIo values.
Returns
SWI_RCODE_OK The function executed normally.
SWI_RCODE_FAILED The operation failed in the modem.
SWI_RCODE_REQUEST_TIMEOUT The function failed to complete within
See Also
See SwiStructs.h for SWI_STRUCT_Rssi_Ecio definition.
SWI_API SWI_RCODE SwiGetServiceIndication ( swi_int32 lServiceIndicator,
swi_uint32  timeout 
)

This function reports whether or not there is service in the current location.

The presence of a CDMA service does not guarantee that connection is possible. The modem may fail to authenticate with the local service provider. E911 service should still be available, even if authentication fails.

There is a notification equivalent (SWI_NOTIFY_ServiceIndication) to advise the application when entering or leaving coverage. This is preferred over the polling command.

Parameters
lServiceIndicator[OUT]The current service: 0 = No service 1 = Analog (not supported) 2 = Digital service
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetTechActiveSet ( SWI_STRUCT_TechActiveSet pTechActSet,
swi_uint32  timeout 
)

This function retrieves the Active Set

Parameters
pTechActSet[OUT]Active set list. See SWI_STRUCT_TechActiveSet.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetTechBSInfo ( swi_int32 longitude,
swi_int32 latitude,
swi_uint32  timeout 
)

This function reports the geographical coordindates of the base station the modem is currently using

The geographical coordinates may not be necessilary provided by all base stations.

Below is an example of how to convert the longitude geographical seconds into degrees/minutes/seconds. Latitude is computed identically.

        int iMin, iSec, iDeg, iGeoSecs;

        iGeoSecs = iLongitude / 4;
        iDeg = iGeoSecs / 3600;
        iMin = (iGeoSecs - iDeg * 3600) / 60;
        iSec = iGeoSecs - iDeg * 3600 - iMin * 60;

        GeoDeg = iDeg;
        GeoMin = abs(iMin);
        GeoSec = abs(iSec);
Parameters
longitude[OUT]Longitude reported in geographical seconds.
latitude[OUT]Latitude reported in geographical seconds.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetTechFrame ( swi_uint32 totalFrames,
swi_uint32 badFrames,
swi_uint32  timeout 
)

This function reports the frame error rate value.

The frame error rate value is cumulative for the session in which the modem is powered. Any power cycles to the modem (reset, eject/insert, etc) will cause the value to reset.

Parameters
totalFrames[OUT]The destination in which the total # of frames is returned.
badFrames[OUT]The destination in which the # of bad frames is returned.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetTechHdrNotificationStatus ( swi_uint16 iTechHdrNotificationStatus,
swi_uint32  timeout 
)

This function gets a mask of which Tech HDR notifications are enabled.

Parameters
iTechHdrNotificationStatus[OUT]Notification Mask.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetTechNID ( swi_uint16 networkID,
swi_uint32  timeout 
)

This function retrieve the NID.

Parameters
networkID[OUT]NID returned from modem.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetTechPacketZone ( swi_uint16 packetZoneID,
swi_uint32  timeout 
)

This function gets the Packet Zone ID value.

Parameters
packetZoneID[OUT]The Packet Zone ID setting returned from modem.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetTechPowersaveMode ( swi_uint16 powersaveMode,
swi_uint32  timeout 
)

This function reports the current powersave status.

The modem enters powersave mode when it fails to find service for a predetermined amount of time. During this state, the modem will periodically wake up and scan for service. To force the modem to immediately exit powersave mode and wake up and scan for service, send an arbitrary DTMF to the modem using the command SwiSetKeyPressed.

Use the notifications SWI_NOTIFY_PowerSaveEnter and leaves powersave mode.

SWI_NOTIFY_PowerSaveExit to determine when the modem enters and

Parameters
powersaveMode[OUT]The destination in which the powersave state is returned: 0 = powersave mode off 1 = powersave mode on See SWI_TYPE_TechPowersaveMode.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetTechSID ( swi_uint16 systemID,
swi_uint32  timeout 
)

This function retrieve the SID

Parameters
systemID[OUT]SID returned from modem.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiGetTransmitPower ( swi_int16 TxPower,
swi_uint32  timeout 
)

This function reports the transmit power value

The transmit power value is measured in negative dBm. To interpret the value correctly, divide the value by 100.

Parameters
TxPower[OUT]The destination in which the transmit power value is returned.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiHdrCloseSession ( swi_uint32  timeout)

This function request that the modem close the HDR session.

Parameters
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetDsMip2002BisMnHaAuth ( swi_uint16 pRfc2002,
swi_uint32  timeout 
)

This function gets RFC2002bis MN-HA authenticator calculation enable.

Parameters
pRfc2002[IN]Enable = 1, Disable = 0.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetDsMipActiveProf ( swi_uint16 pActive,
swi_uint32  timeout 
)

This function gets the active profile in which a Mobile IP call will use.

This is supported for only Mobile IP enabled modems.

Parameters
pActive[OUT]Active Profile # returned from modem.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetDsMipEnableProf ( SWI_STRUCT_MipEnabled sMipEnabled,
swi_uint32  timeout 
)

This function gets MIP Profile Enabled list.

This list should be used to manage which MIP profiles are enabled.

Parameters
sMipEnabled[OUT]MIP Profile Enabled list. (see SWI_STRUCT_MipEnabled)
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetDsMipGenUser ( swi_uint16  index,
swi_uint16  naiLength,
swi_charp  nai,
swi_uint16 pMnHaSpiEnable,
swi_uint32 pMnHaSpi,
swi_uint16 pMnAaaSpiEnable,
swi_uint32 pMnAaaSpi,
swi_uint16 pReverseTunneling,
swi_uint32 pHomeAddress,
swi_uint32 pPrimaryHaAddress,
swi_uint32 pSecondaryHaAddress,
swi_uint32  timeout 
)

This function retrieves various Mobile IP profile settings.

Supported for only Mobile IP enabled devices. See SwiPstGetDsQcMip for determining MIP capability.

Parameters
index[IN]Index # of Profile to modify: 0-5.
naiLength[IN]Length of NAI field in bytes.
nai[OUT]NAI (username)
pMnHaSpiEnable[OUT]MN-HA SPI enable 0 - disable 1 - enable
pMnHaSpi[OUT]MN-HA SPI
pMnAaaSpiEnable[OUT]MN-AAA SPI enable 0 - disable 1 - enable
pMnAaaSpi[OUT]MN-AAA SPI
pReverseTunneling[OUT]Reverse Tunneling Preferred 0 - disable 1 - enable
pHomeAddress[OUT]Home IP Address
pPrimaryHaAddress[OUT]Primary HA IP Address (big-endian)
pSecondaryHaAddress[OUT]Secondary HA IP Address (big-endian)
timeout[OUT]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetDsMipPrereRrqTime ( swi_uint16 pRereg,
swi_uint32  timeout 
)

This function gets Pre lifetime expiry re-registration (minutes)

Parameters
pRereg[IN]Re-reg expiry.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetDsMipQcDrsOpt ( swi_uint16 pActive,
swi_uint32  timeout 
)

This function Get QC optimized dormant handoff enable.

Parameters
pActive[OUT]Enabled = 1, Disabled = 0..
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetDsMipRetries ( swi_uint16 pRetries,
swi_uint32  timeout 
)

This function get Mobile Retry count.

Parameters
pRetries[OUT]Retry count.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetDsMipRetryInt ( swi_uint16 pInterval,
swi_uint32  timeout 
)

This function gets Mobile Retry Interval (milliseconds).

Parameters
pInterval[OUT]Retry Interval
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetDsMipRrqIfTfrk ( swi_uint16 pReregistration,
swi_uint32  timeout 
)

This function gets Re-register only if traffic since last RRQ enable.

Parameters
pReregistration[OUT]Enable = 1, Disable = 0.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetDsQcMip ( swi_uint16 pBehaviour,
swi_uint32  timeout 
)

This function reports the modem's Mobile IP call support.

Parameters
pBehaviour[OUT]The destination in which the MIP support is returned: 0 - Not supported. Simple IP only. 1 - MIP Prefered. (Fallback to SIP if MIP fails) 2 - MIP Only.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetHdrPassword ( swi_charp  pszPassword,
swi_uint32  szLength,
swi_uint32  timeout 
)

This function returns the HDR password

The HDR passeord is set using SwiPstSetHdrPassword.

Parameters
pszPassword[OUT]The destination in which the HDR password string is returned.
szLength[IN]The maximum size of the output buffer.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
See Also
SwiPstGetHdrUserId.
SWI_API SWI_RCODE SwiPstGetHdrUserId ( swi_charp  pszUserId,
swi_uint32  szLength,
swi_uint32  timeout 
)

This function the HDR Nai

The user ID is also referred to as the NAI (refer to IS-638B section 3.5.8).

The User ID is set using SwiPstSetHdrUserId.

Parameters
pszUserId[OUT]The destination in which the HDR user ID string is returned.
szLength[IN]The maximum size of the output buffer.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
See Also
SwiPstGetHdrPassword.
SWI_API SWI_RCODE SwiPstGetHomeSidNid ( swi_uint16  Nam,
SWI_STRUCT_HomeSidNid HomeSidNid,
swi_uint32  timeout 
)

This function returns the table of SID and NID values designated as "home" (not roaming).

These values are usually preset at the factory for the particular service provider. They can be changed using SwiPstSetHomeSidNid.

Parameters
Nam[IN]NAM index.
HomeSidNid[OUT]The destination structure in which the data is returned.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetPrefMode ( swi_uint16  Nam,
swi_uint16 PrefMode,
swi_uint32  timeout 
)

This function gets the Preferred Operating Mode setting.

Parameters
Nam[IN]NAM index.
PrefMode[OUT]Preferred Mode setting. See SWI_TYPE_NvPrefOpMode.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetServiceAreaAlert ( swi_uint16 srvAreaAlert,
swi_uint32  timeout 
)

This function reports whether the alert tone for changes in service (in or out of coverage)

The setting can be changed using SwiPstSetServiceAreaAlert.

Enables/disables playing an alert tone in the headset when there is a change in the type of coverage. A call to SwiGetServiceIndication will confirm the nature of the change in service.

Parameters
srvAreaAlert[OUT]The destination in which the service alert state is returned: 0 = disabled 1 = enabled
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetSip2Password ( swi_charp  pszPassword,
swi_uint32  szLength,
swi_uint32  timeout 
)

This function returns the Simple IP profile 2 (index 1) password string.

The password is set using SwiPstSetSip2Password.

Parameters
pszPassword[OUT]The destination in which the user password is returned.
szLength[IN]The maximum size of the output buffer.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
See Also
SwiPstGetSip2Password.
SWI_API SWI_RCODE SwiPstGetSip2UserId ( swi_charp  pszUserId,
swi_uint32  szLength,
swi_uint32  timeout 
)

This function the Simple IP profile 2 (index 1) user ID string.

The user ID is also referred to as the NAI (refer to IS-638B section 3.5.8).

The User ID is set using SwiPstSetSip2UserId.

Parameters
pszUserId[OUT]The destination in which the user ID string is returned.
szLength[IN]The maximum size of the output buffer.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
See Also
SwiPstGetSipPassword.
SWI_API SWI_RCODE SwiPstGetSipPassword ( swi_charp  pszPassword,
swi_uint32  szLength,
swi_uint32  timeout 
)

This function returns the Simple IP profile 1 (index 0) password string.

The password is set using SwiPstSetSipPassword.

Parameters
pszPassword[OUT]The destination in which the user password is returned.
szLength[IN]The maximum size of the output buffer.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
See Also
SwiPstGetSipPassword.
SWI_API SWI_RCODE SwiPstGetSipUserId ( swi_charp  pszUserId,
swi_uint32  szLength,
swi_uint32  timeout 
)

This function returns the Simple IP profile 1 (index 0) user ID string.

The user ID is also referred to as the NAI (refer to IS-638B section 3.5.8).

The User ID is set using SwiPstSetSipUserId.

Parameters
pszUserId[OUT]The destination in which the user ID string is returned.
szLength[IN]The maximum size of the output buffer.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
See Also
SwiPstGetSipPassword.
SWI_API SWI_RCODE SwiPstGetSystemPref ( swi_uint16  Nam,
swi_uint16 PrefServ,
swi_uint32  timeout 
)

This function returns the setting of the CDMA "preferred service" for a specified NAM account profile.

The preferred service is set using SwiPstSetSystemPref.

Parameters
Nam[IN]NAM index.
PrefServ[OUT]The system preference (determined by the service provider) from the selected NAM account profile: 0 = System A only 1 = System B only 2 = Home only 3 = Home preferred 4 = Automatic A 5 = Automatic B
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetTermNid ( swi_uint16  Nam,
swi_uint16 TermNidEnable,
swi_uint32  timeout 
)

This function retrieve the Foreign NID registration setting.

Parameters
Nam[IN]NAM index.
TermNidEnable[OUT]Foreign NID registration setting (0 = disabled, 1 = enabled)
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstGetTermSid ( swi_uint16  Nam,
swi_uint16 TermSidEnable,
swi_uint32  timeout 
)

This function retrieves the Foreign SID registration setting.

Parameters
Nam[IN]NAM index.
TermSidEnable[OUT]Foreign SID registration setting (0 = disabled, 1 = enabled)
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetDsMip2002BisMnHaAuth ( swi_uint16  rfc2002,
swi_uint32  timeout 
)

This function sets RFC2002bis MN-HA authenticator calculation enable.

Parameters
rfc2002[IN]Enabled = 1, Disabled = 0.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetDsMipActiveProf ( swi_uint16  active,
swi_uint32  timeout 
)

This function sets the active profile in which a Mobile IP call will use.

This is supported for only Mobile IP enabled modems.

Parameters
active[IN]Profile # to set as active. Supported values are 0-5.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetDsMipEnableProf ( const SWI_STRUCT_MipEnabled psMipEnabled,
swi_uint32  timeout 
)

This function sets MIP Profile Enabled list.

This list should be used to manage which MIP profiles are enabled.

Parameters
psMipEnabled[IN]MIP Profile Enabled list. (see SWI_STRUCT_MipEnabled)
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetDsMipGenUser ( swi_uint16  index,
swi_uint16  naiLength,
swi_charp  nai,
swi_uint16  mnHaSpiEnable,
swi_uint32  mnHaSpi,
swi_uint16  mnAaaSpiEnable,
swi_uint32  mnAaaSpi,
swi_uint16  reverseTunneling,
swi_uint32  homeAddress,
swi_uint32  primaryHaAddress,
swi_uint32  secondaryHaAddress,
swi_uint32  timeout 
)

This function configures various Mobile IP profile settings.

Supported for only Mobile IP enabled devices. See SwiPstGetDsQcMip for determining MIP capability.

Parameters
index[IN]Index # of Profile to modify: 0-5.
naiLength[IN]Length of NAI field in bytes.
nai[IN]NAI (username)
mnHaSpiEnable[IN]MN-HA SPI enable 0 - disable 1 - enable
mnHaSpi[IN]MN-HA SPI
mnAaaSpiEnable[IN]MN-AAA SPI enable 0 - disable 1 - enable
mnAaaSpi[IN]MN-AAA SPI
reverseTunneling[IN]Reverse Tunneling Preferred 0 - disable 1 - enable
homeAddress[IN]Home IP Address
primaryHaAddress[IN]Primary HA IP Address (big-endian)
secondaryHaAddress[IN]Secondary HA IP Address (big-endian)
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetDsMipPrereRrqTime ( swi_uint16  rereg,
swi_uint32  timeout 
)

This function sets Pre lifetime expiry re-registration (minutes)

Parameters
rereg[IN]Re-reg expiry.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetDsMipQcDrsOpt ( swi_uint16  active,
swi_uint32  timeout 
)

This function Set QC optimized dormant handoff enable.

Parameters
active[IN]Enabled = 1, Disabled = 0.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetDsMipRetries ( swi_uint16  retries,
swi_uint32  timeout 
)

This function sets Mobile Retry count

Parameters
retries[IN]Retry count.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetDsMipRetryInt ( swi_uint16  interval,
swi_uint32  timeout 
)

This function set Mobile Retry Interval (milliseconds).

Parameters
interval[IN]Retry Interval.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetDsMipRrqIfTfrk ( swi_uint16  reregistration,
swi_uint32  timeout 
)

This function sets Re-register only if traffic since last RRQ enable.

Parameters
reregistration[IN]Enable = 1, Disable = 0.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetDsQcMip ( swi_uint16  behaviour,
swi_uint32  timeout 
)

This function sets the Mobile IP Mode setting.

Parameters
behaviour[IN]The MIP mode behaviour: 0 = SIP only 1 = MIP Preferred (fallback to SIP if MIP fails) 2 = MIP only
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetHdrPassword ( const swi_charp  pszPassword,
swi_uint32  timeout 
)

This function sets the HDR password

The current setting can be read using SwiPstGetHdrPassword.

Parameters
pszPassword[IN]The user password string to store.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
See Also
SwiPstSetHdrUserId.
SWI_API SWI_RCODE SwiPstSetHdrUserId ( const swi_charp  pszUserId,
swi_uint32  timeout 
)

This function sets the Hdr Nai

The user ID is also referred to as the NAI (refer to IS-638B section 3.5.8).

The data is committed and takes effect immediately.

The User ID is get using SwiPstGetHdrUserId.

Parameters
pszUserId[IN]The HDR user ID string to set.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
See Also
SwiPstSetHdrPassword.
SWI_API SWI_RCODE SwiPstSetHomeSidNid ( swi_uint16  Nam,
const SWI_STRUCT_HomeSidNid pHomeSidNid,
swi_uint32  timeout 
)
SWI_API SWI_RCODE SwiPstSetPrefMode ( swi_uint16  Nam,
swi_uint16  PrefMode,
swi_uint32  timeout 
)

This function sets the Preferred Operating Mode value.

Parameters
Nam[IN]NAM index.
PrefMode[IN]This is a parameter.
timeout[IN]Preferred Mode setting. See SWI_TYPE_NvPrefOpMode.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetServiceAreaAlert ( swi_uint16  srvAreaAlert,
swi_uint32  timeout 
)

This function enables or disables the playing of a beep tone to alert the user of changes in service while in a voice call.

Enables/disables playing an alert tone in the headset when there is a change in the type of coverage. A call to SwiGetServiceIndication will confirm the nature of the change in service.

The setting can be read using SwiPstGetServiceAreaAlert.

Parameters
srvAreaAlert[IN]The service alert state to set: 0 = disabled 1 = enabled
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetSip2Password ( const swi_charp  pszPassword,
swi_uint32  timeout 
)

This function sets the Simple IP profile 2 (index 1) user password string.

The current setting can be read using SwiPstGetSip2Password.

The data is committed and takes effect immediately.

Parameters
pszPassword[IN]The user password string to store.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
See Also
SwiPstSetSip2UserId.
SWI_API SWI_RCODE SwiPstSetSip2UserId ( const swi_charp  pszUserId,
swi_uint32  timeout 
)

This function sets the Simple IP profile 2 (index 1) user ID string.

The user ID is also referred to as the NAI (refer to IS-638B section 3.5.8). The current setting can be read using SwiPstGetSip2UserID.

The data is committed and takes effect immediately.

Parameters
pszUserId[IN]The user ID string to set.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
See Also
SwiPstSetSip2Password.
SWI_API SWI_RCODE SwiPstSetSipPassword ( const swi_charp  pszPassword,
swi_uint32  timeout 
)

This function sets the Simple IP profile 1 (index 0) user password string.

The current setting can be read using SwiPstGetSipPassword.

The data is committed and takes effect immediately.

Parameters
pszPassword[IN]The user password string to store.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
See Also
SwiPstSetSipUserId.
SWI_API SWI_RCODE SwiPstSetSipUserId ( const swi_charp  pszUserId,
swi_uint32  timeout 
)

This function sets the Simple IP profile 1 (index 0) user ID string.

The user ID is also referred to as the NAI (refer to IS-638B section 3.5.8). The current setting can be read using SwiPstGetSipUserID.

The data is committed and takes effect immediately.

Parameters
pszUserId[IN]The user ID string to set.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
See Also
SwiPstSetSipPassword.
SWI_API SWI_RCODE SwiPstSetSystemPref ( swi_uint16  Nam,
swi_uint16  PrefServ,
swi_uint32  timeout 
)

This function sets the CDMA preferred service for a specified NAM account profile. This is the fallback channel scan if the PRL is exhausted without finding service.

This value is usually set at the factory for the specific service provider. Only change the setting at the service provider’s direction. The current setting can be read using SwiPstGetSystemPref. The modem must be reset via SwiResetModem to have the setting take effect.

Parameters
Nam[IN]NAM index.
PrefServ[IN]The system preference to set in the selected NAM. See SWI_TYPE_NvSystemPref.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetTermNid ( swi_uint16  Nam,
swi_uint16  TermNidEnable,
swi_uint32  timeout 
)

This function sets the Foreign NID registration setting.

Parameters
Nam[IN]NAM index.
TermNidEnable[IN]Foreign NID registration setting (0 = disabled, 1 = enabled)
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiPstSetTermSid ( swi_uint16  Nam,
swi_uint16  TermSidEnable,
swi_uint32  timeout 
)

This function sets the Foreign SID registration setting.

Parameters
Nam[IN]NAM index.
TermSidEnable[IN]Foreign SID registration setting (0 = disabled, 1 = enabled)
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiSetAutoconnect ( swi_uint16  nEnable,
swi_uint32  timeout 
)

This function This function will be used to set auto connect flag (for data call).

Parameters
nEnable[IN]value 1 = enable ; 0 to disable.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiSetCallDisconnectCmd ( )

This function disconnects the current call.

Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiSetCallOriginateCmd ( swi_uint16  callType,
const swi_charp  szCallNumber,
swi_uint32  timeout 
)

This function originates a Voice, QNC, or 1xRTT call / connection.

Parameters
callType[IN]The type of call to originate. See SWI_TYPE_CDMA_CallType. The valid options are: SWI_CALL_TYPE_Voice SWI_CALL_TYPE_AsyncData SWI_CALL_TYPE_PacketData
szCallNumber[IN]The number to dial. You must ensure the string contains only characters: #, *, 0-9.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiSetHdrHybrPref ( swi_uint16  iHdrHybrPref,
swi_uint32  timeout 
)

This function sets the HDR Hybrid Pref setting.

Parameters
iHdrHybrPref[IN]HDR Hybrid Pref setting. 0 = OFF; 1 = ON
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiSetMobileDirNum ( swi_uint16  Nam,
const swi_charp  MDN,
swi_uint32  timeout 
)

This function sets the MDN (Mobile Directory Number) of a specified NAM account profile.

The modem must be unlocked via SwiPstUnlock to execute this command.

The MDN has a minimum length of 1 and a maximum length of 15 digits.

The data is not committed until SwiPstLock is called.

Parameters
Nam[IN]NAM index.
MDN[IN]Mobile Directory Number to store.
timeout[IN]Function timeout in milliseconds.
Returns
See SwiRcodes.h
SWI_API SWI_RCODE SwiSetTempModePref ( swi_uint16  nModePref,
swi_uint16  nModeTerm,
swi_uint32  nModeDur,
swi_uint32  nBandPref,
swi_uint16  nRoamPref,
swi_uint32  timeout 
)

This function sets modem preference

Parameters
nModePref[IN]Modem preference
nModeTerm[IN]Mode preference change termination
nModeDur[IN]Time in secs for temp. mode preference change
nBandPref[IN]Band preference to switch to
nRoamPref[IN]Roam preference to switch to
Returns
SWI_RCODE_OK The function executed normally.
SWI_RCODE_FAILED The operation failed in the modem.
SWI_RCODE_REQUEST_TIMEOUT The function failed to complete within the timeout.

Linux SDK V1.4.0.5
Copyright (c) 2011 Sierra Wireless, Inc. All rights reserved