LinuxSDK  V1.4.0.5
SwiApiGsmBasic.h
Go to the documentation of this file.
1 
15 #ifndef __SWIAPI_GSM_BASIC
16 #define __SWIAPI_GSM_BASIC
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 /* include files */
23 #include "SwiDataTypes.h"
24 #include "SwiRcodes.h"
25 
26 /* defines */
27 
28 #define MAX_NO_CONTEXT 3
29 #define MAX_3G_GSM_PROFILES 16
30 #define NUMBER_PLMN 14
31 #define NUMBER_Band 5
32 #define LENGTH_IPAddress 16
33 #define LENGTH_AccessPointName 101
34 #define LENGTH_UserName 128
35 #define LENGTH_Label 31
36 #define LENGTH_Password 128
37 #define LENGTH_AddressNumber 20
38 #define LENGTH_SME 20
39 #define LENGTH_SMSTimestamp 14
40 #define LENGTH_SMSValidityPeriod 16
41 #define LENGTH_MaxCHV 9
42 #define LENGTH_MaxPhone 20
43 #define LENGTH_CallerName 82
44 #define MAX_CALLS 7
45 #define LENGTH_MaxDebugString 201
46 #define LENGTH_DcsMsgInd 3
47 #define LENGTH_Timestamp 14
48 #define LENGTH_Validity 16
49 #define LENGTH_MAX_Sms 1024
50 #define LENGTH_MAX_SmsMsgData 161
51 #define LENGTH_MsgWaiting 3
52 #define LENGTH_EntryName (31 * UTF8_MAX_CHAR_SIZE) + 1
53 #define LENGTH_GSM_PhoneNumber 40
54 #define LENGTH_EmergencyPhoneNumber 6
55 #define LENGTH_ForwardNumber 38
56 #define LENGTH_ForwardInfo 18
57 #define LENGTH_SSPassword 4
58 #define VERSION_SuppService 0x0001
59 #define MAX_FWD_INFO_ENTRIES 8
60 #define MAX_CALL_BARR_ENTRIES 8
61 #define MAX_INFO_DATA 70
62 #define MAX_BS_LIST 70
63 #define LENGTH_RawData 229
64 #define LENGTH_SSString 40
65 #define LENGTH_STKCommand 119
66 #define LENGTH_STKCommand_utf8 (119 * UTF8_MAX_CHAR_SIZE) + 1
67 #define LENGTH_STKRespInput 120
68 #define LENGTH_STKRespInput_utf8 (120 * UTF8_MAX_CHAR_SIZE) + 1
69 #define LENGTH_SSString 40
70 #define LENGTH_SetFeaturesKey 21
71 #define LENGTH_RandNum 16
72 #define LENGTH_Kc 8
73 #define LENGTH_USSDInput 100
74 #define LENGTH_CommandData 157
75 
76 #define LENGTH_ErrorString 33
77 #define LENGTH_IccId 10
78 #define LENGTH_Imei 16
79 #define LENGTH_Tac 7
80 #define LENGTH_Fac 3
81 #define LENGTH_Snr 7
82 #define LENGTH_ChkByte 2
83 #define LENGTH_Fsn 16
84 #define LENGTH_Signature 9
85 
86 
87 /* enum declarations */
97 {
120  SWI_BAND_AUTO = 0xffff
121 };
122 
123 
129 {
133 };
134 
135 
136 /* structure declarations */
142 {
151 };
152 
163 {
174 };
175 
176 
177 
191 
192 };
193 
198 {
203 };
204 
209 {
228 };
229 
234 {
241 };
242 
253 {
257 
260 
264 
267 
270 
273 };
274 
280 {
321 };
322 
323 /* function prototypes */
324 extern SWI_API SWI_RCODE SwiGetImei(struct SWI_STRUCT_Imei *pImei,
325  swi_uint32 timeout);
326 
327 extern SWI_API SWI_RCODE SwiGetBandInfo(struct SWI_STRUCT_Band *sBandInfo,
328  swi_uint32 sizeBuffer,
329  swi_uint32 timeout);
330 
332  swi_uint32 sizeBuffer,
333  swi_uint32 timeout);
334 
335 extern SWI_API SWI_RCODE SwiGetSerialNumber(struct SWI_STRUCT_Fsn *sFsnp,
336  swi_uint32 timeout);
337 
338 extern SWI_API SWI_RCODE SwiGetTestHistoryByte (struct SWI_STRUCT_Thb *Thbp, swi_uint32 timeout);
339 
340 extern SWI_API SWI_RCODE SwiGetModemDisable(swi_bool* pModemDisable,
341  swi_uint32 timeout);
342 
343 extern SWI_API SWI_RCODE SwiSetModemDisable(const swi_bool bModemDisable,
344  swi_uint32 timeout);
345 
347  swi_uint32 timeout);
348 
350 
351 #ifdef __cplusplus
352 } /* extern "C" { */
353 #endif
354 
355 #endif /* __SWIAPI_GSM_BASIC */
356 
357 /*
358  * $Log: SwiApiGsmBasic.h,v $
359  */

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