LinuxSDK
V1.4.0.5
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
SwiApiCdmaNetwork.h
Go to the documentation of this file.
1
14
#ifndef __SWIAPICDMANETWORK_H__
15
#define __SWIAPICDMANETWORK_H__
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
21
/* include files */
22
#include "
SwiDataTypes.h
"
23
#include "
SwiRcodes.h
"
24
#include "
SwiApiCdmaBasic.h
"
25
26
#define SWI_SIDNIDNUM 20
27
#define SWI_MAX_ActiveSet 6
/* Same as MAX_ActiveSet */
28
29
/* Connection Management */
30
36
typedef
struct
SWI_STRUCT_CallNotificationStatus
37
{
38
swi_uint32
sizeStruct
;
43
swi_uint32
nNotifyStatus
;
44
}
SWI_STRUCT_CallNotificationStatus
;
45
51
typedef
enum
SWI_TYPE_CDMA_CallType
52
{
54
SWI_CALL_TYPE_Voice
= 0x0000,
55
57
SWI_CALL_TYPE_VoiceAlert
= 0x0100,
58
60
SWI_CALL_TYPE_AsyncData
= 0x0001,
61
62
SWI_CALL_TYPE_PacketData
= 0x0101,
63
SWI_CALL_TYPE_Fax
= 0x0201,
66
SWI_CALL_TYPE_Sms
= 0x0002,
67
68
SWI_CALL_TYPE_Test
= 0x0003,
72
SWI_CALL_TYPE_Otapa
= 0x0005,
73
77
SWI_CALL_TYPE_StandardOtasp
= 0x0006,
78
80
SWI_CALL_TYPE_NonstandardOtasp
= 0x0007,
81
83
SWI_CALL_TYPE_E911
= 0x0008,
84
85
SWI_CALL_TYPE_EVDO
= 0x0009,
86
SWI_CALL_TYPE_None
= 0xffff
87
}
SWI_TYPE_CDMA_CallType
;
88
97
typedef
enum
SWI_TYPE_CDMA_CallState
98
{
99
SWI_CALL_STATE_Idle
= 0x0000,
100
SWI_CALL_STATE_CnsAsyncData
= 0x0001,
101
SWI_CALL_STATE_VoiceCall
= 0x0002,
102
SWI_CALL_STATE_Packet
= 0x0004,
105
SWI_CALL_STATE_AtAsyncData
= 0x0010,
106
108
SWI_CALL_STATE_AtVoiceCall
= 0x0020,
109
111
SWI_CALL_STATE_AtPacket
= 0x0040,
112
113
SWI_CALL_STATE_Fax
= 0x0080,
114
SWI_CALL_STATE_Sms
= 0x0200,
115
SWI_CALL_STATE_OTA
= 0x0400,
116
SWI_CALL_STATE_Test
= 0x0800,
117
SWI_CALL_STATE_Cw
= 0x1000,
118
SWI_CALL_STATE_NotUsed
= 0x2000,
121
SWI_CALL_STATE_Dormant
= 0x4000,
122
124
SWI_CALL_STATE_Emergency
= 0x8000
125
}
SWI_TYPE_CDMA_CallState
;
126
132
typedef
enum
SWI_TYPE_EndReason
133
{
134
SWI_END_REASON_Offline
,
137
SWI_END_REASON_CdmaLockedUntilPowerCycle
,
138
139
SWI_END_REASON_NoService
,
142
SWI_END_REASON_CallEndedAbnormally
,
143
145
SWI_END_REASON_ReceivedInterceptFromBs
,
146
148
SWI_END_REASON_ReceivedReorderFromBs
,
149
151
SWI_END_REASON_ReceivedReleaseFromBsNoReason
,
152
154
SWI_END_REASON_ReceivedInterceptFromBsSoReject
,
155
157
SWI_END_REASON_ReceivedIncomingCallFromBs
,
158
160
SWI_END_REASON_ReceivedAlertStopFromBs
,
161
163
SWI_END_REASON_ClientEndedCall
,
164
166
SWI_END_REASON_ReceivedEndActivation
,
167
169
SWI_END_REASON_McAborts
,
170
172
SWI_END_REASON_NdssFailure
,
173
175
SWI_END_REASON_MaxAccessProbesTransmitted
,
176
178
SWI_END_REASON_PersistenceTestFailure
,
179
181
SWI_END_REASON_RuimNotPresent
,
182
184
SWI_END_REASON_AccessAttemptAlreadyInProgress
,
185
187
SWI_END_REASON_AccessFailureReasonUnspecified
,
188
190
SWI_END_REASON_ReceivedRetryOrder
,
191
193
SWI_END_REASON_Reserved1206
= 0x1206
194
}
SWI_TYPE_EndReason
;
195
204
typedef
enum
SWI_TYPE_CallSource
205
{
206
SWI_CALL_SOURCE_At
,
207
SWI_CALL_SOURCE_Cns
208
}
SWI_TYPE_CallSource
;
209
217
typedef
enum
SWI_TYPE_FlashContext
218
{
224
SWI_FLASH_CONTEXT_DontCare
= 0x0000,
225
231
SWI_FLASH_CONTEXT_CallWaiting
= 0x0001,
232
238
SWI_FLASH_CONTEXT_ThreewaySetup
= 0x0002,
239
245
SWI_FLASH_CONTEXT_ThreewayConnect
= 0x0003,
246
248
SWI_FLASH_CONTEXT_AnswerHold
= 0x0004,
249
251
SWI_FLASH_CONTEXT_AnswerForward
= 0x0005
252
}
SWI_TYPE_FlashContext
;
253
262
typedef
enum
SWI_TYPE_AnswerState
263
{
265
SWI_ANSWER_STATE_VoiceAsVoice
,
266
268
SWI_ANSWER_STATE_VoiceAsFaxOnce
,
269
271
SWI_ANSWER_STATE_VoiceAsFaxAlways
,
272
274
SWI_ANSWER_STATE_VoiceAsModemOnce
,
275
277
SWI_ANSWER_STATE_VoiceAsModemAlways
278
}
SWI_TYPE_AnswerState
;
279
280
/* Service Status */
281
292
typedef
struct
SWI_STRUCT_ChannelNumber
293
{
294
swi_uint32
sizeStruct
;
295
swi_uint32
nChannelNumber
;
296
}
SWI_STRUCT_ChannelNumber
;
297
303
typedef
enum
SWI_TYPE_ChannelState
304
{
305
SWI_CHANNEL_Sleep
= 0,
306
SWI_CHANNEL_Aquired
= 1,
307
SWI_CHANNEL_Scan
= 5
308
}
SWI_TYPE_ChannelState
;
309
320
typedef
struct
SWI_STRUCT_ChannelState
321
{
322
swi_uint32
sizeStruct
;
323
SWI_TYPE_ChannelState
eChannelState
;
324
}
SWI_STRUCT_ChannelState
;
325
331
typedef
enum
SWI_TYPE_TechBandClass
332
{
333
SWI_TECH_BANDCLASS_Cellular
,
334
SWI_TECH_BANDCLASS_Pcs
335
}
SWI_TYPE_TechBandClass
;
336
347
typedef
struct
SWI_STRUCT_TechBandClass
348
{
349
swi_uint32
sizeStruct
;
350
SWI_TYPE_TechBandClass
eBandClass
;
351
}
SWI_STRUCT_TechBandClass
;
352
361
typedef
enum
SWI_TYPE_ServiceIndication
362
{
363
SWI_SERVICE_INDICATION_None
,
364
SWI_SERVICE_INDICATION_Analog
,
365
SWI_SERVICE_INDICATION_Digital
366
}
SWI_TYPE_ServiceIndication
;
367
378
typedef
struct
SWI_STRUCT_ServiceIndication
379
{
380
swi_uint32
sizeStruct
;
381
SWI_TYPE_ServiceIndication
eServiceIndicator
;
382
}
SWI_STRUCT_ServiceIndication
;
383
394
typedef
enum
SWI_TYPE_PrevValue
395
{
396
SWI_PREV_VALUE_Jstd008
= 1,
397
SWI_PREV_VALUE_Is95
,
398
SWI_PREV_VALUE_Is95A
,
399
SWI_PREV_VALUE_MinIs95B
,
400
SWI_PREV_VALUE_FullIs95B
,
401
SWI_PREV_VALUE_Cdma2000Rev0
,
402
SWI_PREV_VALUE_Cdma2000Rev1
403
}
SWI_TYPE_PrevValue
;
404
415
typedef
struct
SWI_STRUCT_Prev
416
{
417
swi_uint32
sizeStruct
;
418
SWI_TYPE_PrevValue
eValue
;
419
}
SWI_STRUCT_Prev
;
420
430
typedef
enum
SWI_TYPE_CdmaRoamingState
431
{
432
SWI_CDMAROAMING_Home
,
433
SWI_CDMAROAMING_Roaming
,
434
SWI_CDMAROAMING_NonPref
,
435
SWI_CDMAROAMING_None
436
}
SWI_TYPE_CdmaRoamingState
;
437
448
typedef
struct
SWI_STRUCT_RoamingStatus
449
{
450
swi_uint32
sizeStruct
;
451
SWI_TYPE_CdmaRoamingState
eRoamingStatus
;
452
}
SWI_STRUCT_RoamingStatus
;
453
454
/* Call Management */
455
468
typedef
struct
SWI_STRUCT_CallByteCounter
469
{
470
swi_uint32
sizeStruct
;
471
swi_uint32
nTxBytes
;
472
swi_uint32
nRxBytes
;
473
}
SWI_STRUCT_CallByteCounter
;
474
484
typedef
struct
SWI_STRUCT_CallConnecting
485
{
486
swi_uint32
sizeStruct
;
487
SWI_TYPE_CDMA_CallType
eType
;
490
SWI_TYPE_CallSource
eSource
;
491
495
swi_char
szNum
[
LENGTH_CallNumber
+1];
496
}
SWI_STRUCT_CallConnecting
;
497
507
typedef
struct
SWI_STRUCT_CallConnected
508
{
509
swi_uint32
sizeStruct
;
510
SWI_TYPE_CDMA_CallState
eState
;
511
swi_uint32
nSo
;
512
}
SWI_STRUCT_CallConnected
;
513
523
typedef
struct
SWI_STRUCT_CallIncoming
524
{
525
swi_uint32
sizeStruct
;
526
SWI_TYPE_CDMA_CallType
eType
;
527
}
SWI_STRUCT_CallIncoming
;
528
540
typedef
struct
SWI_STRUCT_CallCallerID
541
{
542
swi_uint32
sizeStruct
;
543
swi_char
szNum
[
LENGTH_CallNumber
+1];
544
}
SWI_STRUCT_CallCallerID
;
545
557
typedef
struct
SWI_STRUCT_CallExtendedCallerID
558
{
559
swi_uint32
sizeStruct
;
562
swi_char
szNum
[
LENGTH_CallExtendedNumber
+1];
563
}
SWI_STRUCT_CallExtendedCallerID
;
564
574
typedef
struct
SWI_STRUCT_CallDisconnected
575
{
576
swi_uint32
sizeStruct
;
577
SWI_TYPE_CDMA_CallState
eState
;
578
SWI_TYPE_EndReason
eReason
;
579
}
SWI_STRUCT_CallDisconnected
;
580
589
typedef
enum
SWI_TYPE_CDMA_CallError
590
{
592
SW_CALL_ERROR_None
,
593
595
SW_CALL_ERROR_InvalidClientID
,
596
598
SW_CALL_ERROR_BadCallTypeParameter
,
599
601
SW_CALL_ERROR_BadServiceTypeParameter
,
602
604
SW_CALL_ERROR_BadServiceOptionParameter
,
605
607
SW_CALL_ERROR_ExpectingNumber
,
608
610
SW_CALL_ERROR_NumberLengthGreaterThanZeroBufferNull
,
611
613
SW_CALL_ERROR_InvalidDigitsNumberBuffer
,
614
616
SW_CALL_ERROR_OutOfRangeNumberLength
,
617
619
SW_CALL_ERROR_AlphaLengthGreaterThanZeroBufferNull
,
620
622
SW_CALL_ERROR_OutOfRangeAlphaLength
,
623
625
SW_CALL_ERROR_InvalidOtaspActivationCode
,
626
628
SW_CALL_ERROR_PhoneOffline
,
629
631
SW_CALL_ERROR_PhoneCdmaLocked
,
632
635
SW_CALL_ERROR_ClientSendingFlasForUnsupportdFlashCall
,
636
639
SW_CALL_ERROR_DialedNumberNotPermitted
,
640
643
SW_CALL_ERROR_NonE911CallWhileE911PreferenceInEffect
,
644
646
SW_CALL_ERROR_InvalidCmdWhilePhoneInUse
,
647
650
SW_CALL_ERROR_ServiceTypeNotSupportedByPhonePrl
,
651
654
SW_CALL_ERROR_ClientAnsweredWithWrongCallType
,
655
657
SW_CALL_ERROR_CmdInvalidForCurrentState
,
658
661
SW_CALL_ERROR_CmdInvalidForCurrentPhoneServingState
,
662
665
SW_CALL_ERROR_NoServiceFoundForAutomatic
,
666
668
SW_CALL_ERROR_ClientCannotAnswerIncomingCall
,
669
671
SW_CALL_ERROR_BadPrivacyPref
,
672
674
SW_CALL_ERROR_NoAvailableCmdBuffers
,
675
677
SW_CALL_ERROR_CommunicationProblemsWithMc
,
678
680
SW_CALL_ERROR_Unspecified
681
}
SWI_TYPE_CDMA_CallError
;
682
691
typedef
enum
SWI_TYPE_CallCmd
692
{
693
SWI_CALL_CMD_Orig
,
694
SWI_CALL_CMD_Answer
,
695
SWI_CALL_CMD_End
,
696
SWI_CALL_CMD_Flash
,
697
SWI_CALL_CMD_PrivacyPref
,
698
SWI_CALL_CMD_InfoGet
,
699
SWI_CALL_CMD_Hold
,
700
SWI_CALL_CMD_None
= 0x00FF
701
}
SWI_TYPE_CallCmd
;
702
715
typedef
struct
SWI_STRUCT_CallError
716
{
717
swi_uint32
sizeStruct
;
720
SWI_TYPE_CallCmd
eCmd
;
721
722
SWI_TYPE_CDMA_CallError
eError
;
725
SWI_TYPE_CallSource
eSource
;
726
}
SWI_STRUCT_CallError
;
727
739
typedef
struct
SWI_STRUCT_CallDormant
740
{
741
swi_uint32
sizeStruct
;
742
SWI_TYPE_CDMA_CallState
eState
;
743
SWI_TYPE_EndReason
eReason
;
744
}
SWI_STRUCT_CallDormant
;
745
756
typedef
enum
SWI_TYPE_OTASPState
757
{
759
SWI_OTASP_STATE_PROG_START
= 0x0000,
760
762
SWI_OTASP_STATE_SPL_UNLOCK
= 0x0001,
763
765
SWI_OTASP_STATE_AKEY_EXCHG
= 0x0002,
766
768
SWI_OTASP_STATE_SSD_UPDT
= 0x0003,
769
771
SWI_OTASP_STATE_NAM_DL
= 0x0004,
772
774
SWI_OTASP_STATE_MDN_DL
= 0x0005,
775
777
SWI_OTASP_STATE_IMSI_DL
= 0x0006,
778
780
SWI_OTASP_STATE_PRL_DL
= 0x0007,
781
783
SWI_OTASP_STATE_COMMIT
= 0x0008,
784
786
SWI_OTASP_STATE_PROG_END
= 0x0009
787
}
SWI_TYPE_OTASPState
;
788
799
typedef
struct
SWI_STRUCT_OTASPState
800
{
801
swi_uint32
sizeStruct
;
804
SWI_TYPE_OTASPState
eState
;
805
808
swi_uint32
nSuccess
;
809
}
SWI_STRUCT_OTASPState
;
810
818
typedef
enum
SWI_TYPE_Privacy
819
{
820
SWI_PRIVACY_Off
,
821
SWI_PRIVACY_On
822
}
SWI_TYPE_Privacy
;
823
834
typedef
struct
SWI_STRUCT_CallPrivacy
835
{
836
swi_uint32
sizeStruct
;
837
SWI_TYPE_Privacy
eMode
;
838
}
SWI_STRUCT_CallPrivacy
;
839
847
typedef
struct
SWI_STRUCT_SidNid
848
{
849
swi_uint16
Sid
;
850
swi_uint16
Nid
;
851
}
SWI_STRUCT_SidNid
;
852
862
typedef
struct
SWI_STRUCT_HomeSidNid
863
{
864
SWI_STRUCT_SidNid
SidNid
[
SWI_SIDNIDNUM
];
865
}
SWI_STRUCT_HomeSidNid
;
866
876
typedef
enum
cm_mode_pref_e
{
877
878
CM_MODE_PREF_NONE
= -1,
881
CM_MODE_PREF_ANALOG_ONLY
= 0,
882
885
CM_MODE_PREF_DIGITAL_ONLY
= 1,
886
889
CM_MODE_PREF_AUTOMATIC
= 2,
890
892
CM_MODE_PREF_E911
= 3,
893
896
CM_MODE_PREF_PCS_CDMA_ONLY
= 4,
897
900
CM_MODE_PREF_CELL_CDMA_ONLY
=5,
901
902
/* New for SD 2.0. For compatibility with QPST, do not change values or
903
** order. We start with NV_MODE_CELL_CDMA_ONLY+1 (i.e. 9).
904
*/
905
907
CM_MODE_PREF_CDMA_ONLY
= 9,
908
910
CM_MODE_PREF_HDR_ONLY
=10,
911
913
CM_MODE_PREF_CDMA_AMPS_ONLY
=11,
914
916
CM_MODE_PREF_GPS_ONLY
=12,
917
918
/*
919
** The following enums are the radio access technologies for
920
** WCDMA and GSM.
921
*/
922
924
CM_MODE_PREF_GSM_ONLY
=13,
925
927
CM_MODE_PREF_WCDMA_ONLY
=14,
928
929
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
930
932
CM_MODE_PREF_PERSISTENT
,
933
935
CM_MODE_PREF_NO_CHANGE
,
936
937
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
938
939
CM_MODE_PREF_MAX
941
}
cm_mode_pref_e_type
;
942
957
typedef
enum
SWI_TYPE_Mode_Term
958
{
959
960
CNS_MODE_TERM_NONE
= -1,
963
CNS_MODE_TERM_PERMANENT
,
965
CNS_MODE_TERM_PWR_CYCLE
,
967
CNS_MODE_TERM_1_CALL
,
970
CNS_MODE_TERM_1_CALL_OR_TIME
,
971
972
CNS_MODE_TERM_CM_1_CALL
,
973
CNS_MODE_TERM_CM_1_CALL_PLUS
,
974
CNS_MODE_TERM_CM_MO_SMS
,
975
976
CNS_MODE_TERM_MAX
978
}
SWI_TYPE_Mode_Term
;
979
985
typedef
enum
SWI_TYPE_Band_Pref
986
{
987
CNS_BAND_PREF_NONE
= 0,
990
CNS_BAND_PREF_BC0_A
= 0x01,
991
993
CNS_BAND_PREF_BC0_B
= 0x02,
994
996
CNS_BAND_PREF_BC0
= 0x03,
997
999
CNS_BAND_PREF_BC1
= 0x04,
1000
1002
CNS_BAND_PREF_BC3
= 0x10,
1003
1005
CNS_BAND_PREF_BC4
= 0x20,
1006
1008
CNS_BAND_PREF_BC5
= 0x40,
1009
1011
CNS_BAND_PREF_BC6
= 0x80,
1012
1014
CNS_BAND_PREF_ANY
= 0xFFFF,
1015
1017
CNS_BAND_PREF_NO_CHANGE
= 0x10000,
1018
1019
CNS_BAND_PREF_MAX
1021
}
SWI_TYPE_Band_Pref
;
1022
1028
typedef
enum
SWI_TYPE_Roam_Pref
1029
{
1030
CNS_ROAM_PREF_NONE
= -1,
1033
CNS_ROAM_PREF_HOME
= 0x01,
1034
1036
CNS_ROAM_PREF_ROAM
= 0x02,
1037
1040
CNS_ROAM_PREF_AFFIL
= 0x03,
1041
1043
CNS_ROAM_PREF_ANY
= 0xFF,
1044
1046
CNS_ROAM_PREF_NO_CHANGE
,
1047
1048
CNS_ROAM_PREF_MAX
1050
}
SWI_TYPE_Roam_Pref
;
1051
1057
typedef
enum
SWI_TYPE_NvPrefOpMode
1058
{
1059
SWI_NV_PREF_OP_MODE_CdmaThenAnalog
,
1060
SWI_NV_PREF_OP_MODE_CdmaOnly
,
1061
SWI_NV_PREF_OP_MODE_AnalogThenCdma
,
1062
SWI_NV_PREF_OP_MODE_AnalogOnly
,
1063
SWI_NV_PREF_OP_MODE_Automatic
,
1064
SWI_NV_PREF_OP_MODE_Emergency
,
1065
SWI_NV_PREF_OP_MODE_RestrictHomeOnly
,
1066
SWI_NV_PREF_OP_MODE_PcsCdmaOnly
,
1067
SWI_NV_PREF_OP_MODE_CellCdmaOnly
,
1068
SWI_NV_PREF_OP_MODE_Cdma1xOnly
,
1069
SWI_NV_PREF_OP_MODE_CdmaEvdoOnly
1070
}
SWI_TYPE_NvPrefOpMode
;
1071
1077
typedef
struct
SWI_STRUCT_TechActiveSetSingle
1078
{
1079
swi_uint32
sizeStruct
;
1080
swi_int32
iPilot
;
1081
swi_int32
iEcio
;
1082
}
SWI_STRUCT_TechActiveSetSingle
;
1083
1091
typedef
struct
SWI_STRUCT_TechActiveSet
1092
{
1093
swi_uint32
sizeStruct
;
1094
swi_uint32
nCount
;
1097
SWI_STRUCT_TechActiveSetSingle
ActiveSet
[
SWI_MAX_ActiveSet
];
1098
}
SWI_STRUCT_TechActiveSet
;
1099
1105
typedef
struct
SWI_STRUCT_MipEnabled
1106
{
1107
swi_uint32
sizeStruct
;
1110
swi_uint16
nMipEnabled
[
SWI_MAX_ActiveSet
];
1111
}
SWI_STRUCT_MipEnabled
;
1112
1120
typedef
struct
SWI_STRUCT_Rssi_Ecio
1121
{
1122
swi_uint32
sizeStruct
;
1123
swi_uint16
iCdmaRssi
;
1124
swi_uint16
iCdmaEcio
;
1125
swi_uint16
iHdrRssi
;
1126
swi_uint16
iHdrEcio
;
1127
}
SWI_STRUCT_Rssi_Ecio
;
1128
1139
typedef
enum
SWI_TYPE_Hdr_Roam_Status
1140
{
1142
SWI_HDR_ROAM_STATUS_NO_ROAMING
= 0x00000000,
1143
1145
SWI_HDR_ROAM_STATUS_ROAMING_WITH_GAURANTEED_VALID_SIDS
= 0x00000001,
1146
1148
SWI_HDR_ROAM_STATUS_ROAMING_WITHOUT_GAURANTEED_SIDS
= 0x00000002
1149
}
SWI_TYPE_Hdr_Roam_Status
;
1150
1158
typedef
struct
SWI_STRUCT_Hdr_Roam_Status
1159
{
1160
swi_uint32
sizeStruct
;
1163
swi_uint16
iHdrRoamStatus
;
1164
}
SWI_STRUCT_Hdr_Roam_Status
;
1165
1171
typedef
enum
SWI_TYPE_Hdr_Srv_State
1172
{
1174
SWI_HDR_SRV_STATE_NO_SERVICE
= 0x00000000,
1175
1177
SWI_HDR_SRV_STATE_DIGITAL_SERVICE
= 0x00000002,
1178
1180
SWI_HDR_SRV_STATE_DIGITAL_SERVICE_Rev0
=
1181
SWI_HDR_SRV_STATE_DIGITAL_SERVICE
,
1182
1184
SWI_HDR_SRV_STATE_DIGITAL_SERVICE_RevA
= 0x00000004
1185
}
SWI_TYPE_Hdr_Srv_State
;
1186
1194
typedef
struct
SWI_STRUCT_Hdr_Srv_State
1195
{
1196
swi_uint32
sizeStruct
;
1199
swi_uint16
iHdrSrvState
;
1200
}
SWI_STRUCT_Hdr_Srv_State
;
1201
1207
typedef
enum
SWI_TYPE_Hdr_Hybr_Pref
1208
{
1209
SWI_HDR_HYBR_PREF_MODE_OFF
= 0x00000000,
1210
SWI_HDR_HYBR_PREF_MODE_ON
= 0x00000001
1211
}
SWI_TYPE_Hdr_Hybr_Pref
;
1212
1220
typedef
struct
SWI_STRUCT_Hdr_Hybr_Pref
1221
{
1222
swi_uint32
sizeStruct
;
1225
swi_uint16
iHdrHybrPref
;
1226
}
SWI_STRUCT_Hdr_Hybr_Pref
;
1227
1233
typedef
enum
SWI_TYPE_TechPowersaveMode
1234
{
1235
SWI_TECH_POWERSAVE_MODE_OFF
,
1236
SWI_TECH_POWERSAVE_MODE_ON
1237
}
SWI_TYPE_TechPowersaveMode
;
1238
1244
typedef
enum
SWI_TYPE_NvSystemPref
1245
{
1246
SWI_NV_SYSTEM_PREF_AOnly
,
1247
SWI_NV_SYSTEM_PREF_BOnly
,
1248
SWI_NV_SYSTEM_PREF_HomeOnly
,
1249
SWI_NV_SYSTEM_PREF_HomePreferred
,
1250
SWI_NV_SYSTEM_PREF_AutoA
,
1251
SWI_NV_SYSTEM_PREF_AutoB
1252
}
SWI_TYPE_NvSystemPref
;
1253
1254
/* Function prototypes */
1255
1256
SWI_API
SWI_RCODE
SwiGetRssi
(
swi_int32
*iRssi,
swi_uint32
timeout);
1257
1258
SWI_API
SWI_RCODE
SwiGetChannelNumber
(
swi_uint32
*nChannelNumber,
1259
swi_uint32
timeout);
1260
1261
SWI_API
SWI_RCODE
SwiGetServiceIndication
(
swi_int32
* lServiceIndicator,
1262
swi_uint32
timeout);
1263
1264
SWI_API
SWI_RCODE
SwiGetCurrentBaseStation
(
swi_uint16
*P_PRV,
1265
swi_uint32
timeout);
1266
1267
SWI_API
SWI_RCODE
SwiGetRoamingStatus
(
swi_uint32
* lRoamingStatus,
1268
swi_uint32
timeout);
1269
1270
SWI_API
SWI_RCODE
SwiGetTechPowersaveMode
(
swi_uint16
*powersaveMode,
1271
swi_uint32
timeout);
1272
1273
SWI_API
SWI_RCODE
SwiGetTechFrame
(
swi_uint32
* totalFrames,
1274
swi_uint32
* badFrames,
1275
swi_uint32
timeout);
1276
1277
SWI_API
SWI_RCODE
SwiGetTransmitPower
(
swi_int16
* TxPower,
1278
swi_uint32
timeout);
1279
1280
SWI_API
SWI_RCODE
SwiGetCallPrivacy
(
swi_uint16
* privacyMode,
1281
swi_uint32
timeout);
1282
1283
SWI_API
SWI_RCODE
SwiGetByteCounter
(
swi_uint32
* pSent,
1284
swi_uint32
* pReceived,
1285
swi_uint32
timeout);
1286
1287
SWI_API
SWI_RCODE
SwiGetTechBSInfo
(
swi_int32
*longitude,
1288
swi_int32
*latitude,
1289
swi_uint32
timeout);
1290
1291
SWI_API
SWI_RCODE
SwiGetMobileDirNum
(
swi_uint16
Nam,
1292
swi_charp
MDN,
1293
swi_uint32
length,
1294
swi_uint32
timeout);
1295
1296
SWI_API
SWI_RCODE
SwiPstGetHomeSidNid
(
swi_uint16
Nam,
1297
SWI_STRUCT_HomeSidNid
*HomeSidNid,
1298
swi_uint32
timeout);
1299
1300
SWI_API
SWI_RCODE
SwiPstGetSystemPref
(
swi_uint16
Nam,
1301
swi_uint16
*PrefServ,
1302
swi_uint32
timeout);
1303
1304
SWI_API
SWI_RCODE
SwiPstGetSipUserId
(
swi_charp
pszUserId,
1305
swi_uint32
szLength,
1306
swi_uint32
timeout);
1307
1308
SWI_API
SWI_RCODE
SwiPstGetSipPassword
(
swi_charp
pszPassword,
1309
swi_uint32
szLength,
1310
swi_uint32
timeout);
1311
1312
SWI_API
SWI_RCODE
SwiPstGetSip2UserId
(
swi_charp
pszUserId,
1313
swi_uint32
szLength,
1314
swi_uint32
timeout);
1315
1316
SWI_API
SWI_RCODE
SwiPstGetSip2Password
(
swi_charp
pszPassword,
1317
swi_uint32
szLength,
1318
swi_uint32
timeout);
1319
1320
SWI_API
SWI_RCODE
SwiPstSetDsMipGenUser
(
swi_uint16
index,
1321
swi_uint16
naiLength,
1322
swi_charp
nai,
1323
swi_uint16
mnHaSpiEnable,
1324
swi_uint32
mnHaSpi,
1325
swi_uint16
mnAaaSpiEnable,
1326
swi_uint32
mnAaaSpi,
1327
swi_uint16
reverseTunneling,
1328
swi_uint32
homeAddress,
1329
swi_uint32
primaryHaAddress,
1330
swi_uint32
secondaryHaAddress,
1331
swi_uint32
timeout);
1332
1333
SWI_API
SWI_RCODE
SwiPstGetDsMipGenUser
(
swi_uint16
index,
1334
swi_uint16
naiLength,
1335
swi_charp
nai,
1336
swi_uint16
* pMnHaSpiEnable,
1337
swi_uint32
* pMnHaSpi,
1338
swi_uint16
* pMnAaaSpiEnable,
1339
swi_uint32
* pMnAaaSpi,
1340
swi_uint16
* pReverseTunneling,
1341
swi_uint32
* pHomeAddress,
1342
swi_uint32
* pPrimaryHaAddress,
1343
swi_uint32
* pSecondaryHaAddress,
1344
swi_uint32
timeout);
1345
1346
SWI_API
SWI_RCODE
SwiPstGetDsQcMip
(
swi_uint16
* pBehaviour,
1347
swi_uint32
timeout);
1348
1349
SWI_API
SWI_RCODE
SwiSetMobileDirNum
(
swi_uint16
Nam,
1350
const
swi_charp
MDN,
1351
swi_uint32
timeout);
1352
1353
SWI_API
SWI_RCODE
SwiPstSetHomeSidNid
(
1354
swi_uint16
Nam,
1355
const
SWI_STRUCT_HomeSidNid
*pHomeSidNid,
1356
swi_uint32
timeout);
1357
1358
SWI_API
SWI_RCODE
SwiPstSetSystemPref
(
swi_uint16
Nam,
1359
swi_uint16
PrefServ,
1360
swi_uint32
timeout);
1361
1362
SWI_API
SWI_RCODE
SwiPstSetSipUserId
(
const
swi_charp
pszUserId,
1363
swi_uint32
timeout);
1364
1365
SWI_API
SWI_RCODE
SwiPstSetSipPassword
(
const
swi_charp
pszPassword,
1366
swi_uint32
timeout);
1367
1368
SWI_API
SWI_RCODE
SwiPstSetSip2UserId
(
const
swi_charp
pszUserId,
1369
swi_uint32
timeout);
1370
1371
SWI_API
SWI_RCODE
SwiPstSetSip2Password
(
const
swi_charp
pszPassword,
1372
swi_uint32
timeout);
1373
1374
SWI_API
SWI_RCODE
SwiGetCallConnectionState
(
swi_uint16
* CallState,
1375
swi_uint32
timeout);
1376
1377
SWI_API
SWI_RCODE
SwiGetCallConnectionStateEx
(
1378
SWI_STRUCT_CallConnected
* CallState,
1379
swi_uint32
timeout);
1380
1381
SWI_API
SWI_RCODE
SwiSetCallOriginateCmd
(
swi_uint16
callType,
1382
const
swi_charp
szCallNumber,
1383
swi_uint32
timeout);
1384
1385
SWI_API
SWI_RCODE
SwiSetCallDisconnectCmd
();
1386
1387
SWI_API
SWI_RCODE
SwiGetCallDuration
(
swi_uint32
* pCallDuration,
1388
swi_uint32
timeout);
1389
1390
SWI_API
SWI_RCODE
SwiPstGetDsMipActiveProf
(
swi_uint16
* pActive,
1391
swi_uint32
timeout);
1392
1393
SWI_API
SWI_RCODE
SwiPstSetDsMipActiveProf
(
swi_uint16
active,
1394
swi_uint32
timeout);
1395
1396
SWI_API
SWI_RCODE
SwiGetMipErrCode
(
swi_uint16
*nErrCode,
swi_uint32
timeout);
1397
1398
SWI_API
SWI_RCODE
SwiGetMipErrCodeEx
(
swi_uint16
*nErrCode1,
1399
swi_uint16
*nErrCode2,
1400
swi_uint32
timeout);
1401
1402
SWI_API
SWI_RCODE
SwiPstGetServiceAreaAlert
(
swi_uint16
* srvAreaAlert,
1403
swi_uint32
timeout);
1404
1405
SWI_API
SWI_RCODE
SwiPstSetServiceAreaAlert
(
swi_uint16
srvAreaAlert,
1406
swi_uint32
timeout);
1407
1408
SWI_API
SWI_RCODE
SwiSetTempModePref
(
swi_uint16
nModePref,
1409
swi_uint16
nModeTerm,
1410
swi_uint32
nModeDur,
1411
swi_uint32
nBandPref,
1412
swi_uint16
nRoamPref,
1413
swi_uint32
timeout);
1414
1415
SWI_API
SWI_RCODE
SwiGetRssiEcio
(
SWI_STRUCT_Rssi_Ecio
* stRssiEcio,
1416
swi_uint32
timeout);
1417
1418
SWI_API
SWI_RCODE
SwiEVDOGetRssi
(
swi_int32
* lRssi,
swi_uint32
timeout);
1419
1420
SWI_API
SWI_RCODE
SwiGetHdrRoamStatus
(
swi_uint16
* iHdrRoamStatus,
1421
swi_uint32
timeout);
1422
1423
SWI_API
SWI_RCODE
SwiGetHdrSrvState
(
swi_uint16
* iHdrSrvState,
1424
swi_uint32
timeout);
1425
1426
SWI_API
SWI_RCODE
SwiGetHdrHybrPref
(
swi_uint16
* iHdrHybrPref,
1427
swi_uint32
timeout);
1428
1429
SWI_API
SWI_RCODE
SwiSetHdrHybrPref
(
swi_uint16
iHdrHybrPref,
1430
swi_uint32
timeout);
1431
1432
SWI_API
SWI_RCODE
SwiHdrCloseSession
(
swi_uint32
timeout);
1433
1434
SWI_API
SWI_RCODE
SwiGetHdrNotificationStatus
(
1435
swi_uint16
* iHdrNotificationStatus,
1436
swi_uint32
timeout);
1437
1438
SWI_API
SWI_RCODE
SwiGetTechHdrNotificationStatus
(
1439
swi_uint16
* iTechHdrNotificationStatus,
1440
swi_uint32
timeout);
1441
1442
SWI_API
SWI_RCODE
SwiPstGetHdrUserId
(
swi_charp
pszUserId,
1443
swi_uint32
szLength,
1444
swi_uint32
timeout);
1445
1446
SWI_API
SWI_RCODE
SwiPstSetHdrUserId
(
const
swi_charp
pszUserId,
1447
swi_uint32
timeout);
1448
1449
SWI_API
SWI_RCODE
SwiPstGetHdrPassword
(
swi_charp
pszPassword,
1450
swi_uint32
szLength,
1451
swi_uint32
timeout);
1452
1453
SWI_API
SWI_RCODE
SwiPstSetHdrPassword
(
const
swi_charp
pszPassword,
1454
swi_uint32
timeout);
1455
1456
SWI_API
SWI_RCODE
SwiGetAutoconnect
(
swi_uint16
* pnEnable,
swi_uint32
timeout);
1457
SWI_API
SWI_RCODE
SwiSetAutoconnect
(
swi_uint16
nEnable,
swi_uint32
timeout);
1458
SWI_API
SWI_RCODE
SwiPstSetDsQcMip
(
swi_uint16
behaviour,
swi_uint32
timeout);
1459
1460
SWI_API
SWI_RCODE
SwiPstGetPrefMode
(
swi_uint16
Nam,
1461
swi_uint16
*PrefMode,
1462
swi_uint32
timeout);
1463
1464
SWI_API
SWI_RCODE
SwiPstSetPrefMode
(
swi_uint16
Nam,
1465
swi_uint16
PrefMode,
1466
swi_uint32
timeout);
1467
1468
SWI_API
SWI_RCODE
SwiGetTechPacketZone
(
swi_uint16
*packetZoneID,
1469
swi_uint32
timeout);
1470
1471
SWI_API
SWI_RCODE
SwiGetTechSID
(
swi_uint16
*systemID,
swi_uint32
timeout);
1472
SWI_API
SWI_RCODE
SwiGetTechNID
(
swi_uint16
*networkID,
swi_uint32
timeout);
1473
1474
SWI_API
SWI_RCODE
SwiPstGetTermSid
(
swi_uint16
Nam,
1475
swi_uint16
*TermSidEnable,
1476
swi_uint32
timeout);
1477
1478
SWI_API
SWI_RCODE
SwiPstSetTermSid
(
swi_uint16
Nam,
1479
swi_uint16
TermSidEnable,
1480
swi_uint32
timeout);
1481
1482
SWI_API
SWI_RCODE
SwiPstGetTermNid
(
swi_uint16
Nam,
1483
swi_uint16
*TermNidEnable,
1484
swi_uint32
timeout);
1485
1486
SWI_API
SWI_RCODE
SwiPstSetTermNid
(
swi_uint16
Nam,
1487
swi_uint16
TermNidEnable,
1488
swi_uint32
timeout);
1489
1490
SWI_API
SWI_RCODE
SwiGetTechActiveSet
(
SWI_STRUCT_TechActiveSet
* pTechActSet,
1491
swi_uint32
timeout);
1492
1493
SWI_API
SWI_RCODE
SwiPstSetDsMipRetries
(
swi_uint16
retries,
1494
swi_uint32
timeout);
1495
1496
SWI_API
SWI_RCODE
SwiPstGetDsMipRetries
(
swi_uint16
* pRetries,
1497
swi_uint32
timeout);
1498
1499
SWI_API
SWI_RCODE
SwiPstSetDsMipRetryInt
(
swi_uint16
interval,
1500
swi_uint32
timeout);
1501
1502
SWI_API
SWI_RCODE
SwiPstGetDsMipRetryInt
(
swi_uint16
* pInterval,
1503
swi_uint32
timeout);
1504
1505
SWI_API
SWI_RCODE
SwiPstSetDsMipPrereRrqTime
(
swi_uint16
rereg,
1506
swi_uint32
timeout);
1507
1508
SWI_API
SWI_RCODE
SwiPstGetDsMipPrereRrqTime
(
swi_uint16
* pRereg,
1509
swi_uint32
timeout);
1510
1511
SWI_API
SWI_RCODE
SwiPstSetDsMipQcDrsOpt
(
swi_uint16
active,
1512
swi_uint32
timeout);
1513
1514
SWI_API
SWI_RCODE
SwiPstGetDsMipQcDrsOpt
(
swi_uint16
* pActive,
1515
swi_uint32
timeout);
1516
1517
SWI_API
SWI_RCODE
SwiPstSetDsMip2002BisMnHaAuth
(
swi_uint16
rfc2002,
1518
swi_uint32
timeout);
1519
1520
SWI_API
SWI_RCODE
SwiPstGetDsMip2002BisMnHaAuth
(
swi_uint16
* pRfc2002,
1521
swi_uint32
timeout);
1522
1523
SWI_API
SWI_RCODE
SwiPstSetDsMipRrqIfTfrk
(
swi_uint16
reregistration,
1524
swi_uint32
timeout);
1525
1526
SWI_API
SWI_RCODE
SwiPstGetDsMipRrqIfTfrk
(
swi_uint16
* pReregistration,
1527
swi_uint32
timeout);
1528
1529
SWI_API
SWI_RCODE
SwiPstGetDsMipEnableProf
(
SWI_STRUCT_MipEnabled
* sMipEnabled,
1530
swi_uint32
timeout);
1531
1532
SWI_API
SWI_RCODE
SwiPstSetDsMipEnableProf
(
1533
const
SWI_STRUCT_MipEnabled
*psMipEnabled,
1534
swi_uint32
timeout);
1535
1536
#ifdef __cplusplus
1537
}
/* extern "C" { */
1538
#endif
1539
1540
#endif
/* __SWIAPICDMANETWORK_H__ */
1541
1542
/*
1543
* $Log: SwiApiCdmaNetwork.h,v $
1544
*/
1545
Linux SDK V1.4.0.5
Copyright (c) 2011 Sierra Wireless, Inc. All rights reserved