LinuxSDK  V1.4.0.5
SwiApiGsmNetwork.h
Go to the documentation of this file.
1 
14 #ifndef __SWIAPI_GSM_NETWORK_H
15 #define __SWIAPI_GSM_NETWORK_H
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 /* include files */
22 #include "SwiDataTypes.h"
23 #include "SwiRcodes.h"
24 #include "SwiApiGsmBasic.h"
25 
26 /* defines */
27 #define MAX_CELLS 6
28 #define LENGTH_CallNumber 32 /* Max Caller ID length */
29 #define LENGTH_CallExtendedNumber 64 /* Max Ext'd Caller ID lngth */
30 #define LENGTH_SectorId 16
31 #define LENGTH_WAPUri 128
32 #define LENGTH_HdrUati 16
33 #define LENGTH_MaxPPPString 33
34 #define LENGTH_IPAddress 16
35 #define LENGTH_LogFileName 128
36 #define LENGTH_SdkPathName 128
37 #define LENGTH_CommPort 7
38 #define LENGTH_UsbdVersion 85
39 #define LENGTH_UsbdBuildDate 9
40 #define LENGTH_BootBuildDate 9
41 #define NUMVALUE_WIMAX 80216
42 #define MAX_NOTIF_LIST 122
43 #define LENGTH_DriverName 100
44 #define LENGTH_MacAddress 6
45 #define LENGTH_ProductName 20
46 #define LENGTH_ModemName 75
47 #define LENGTH_HardwareId 50
48 #define MAX_NUM_LBS_SV 12
49 #define LENGTH_TimeStamp 16
50 #define MAX_BAND_GROUPS 50
51 #define MAX_BAND_LIST 50
52 #define MAX_AIR_SERVERS 50 /* Must be < than a frame. */
53 
54 #define LENGTH_SPN (16 * UTF8_MAX_CHAR_SIZE) + 1
55 #define LENGTH_PLMN (31 * UTF8_MAX_CHAR_SIZE) + 1
56 #define LENGTH_AbvPLMN (13 * UTF8_MAX_CHAR_SIZE) + 1
57 #define LENGTH_MEPCode 13
58 #define LENGTH_USSDInputExp 230
59 #define LENGTH_Country (3 * UTF8_MAX_CHAR_SIZE) + 1
60 #define LENGTH_Network (8 * UTF8_MAX_CHAR_SIZE) + 1
61 #define LENGTH_MCCMNC_BUFFER 3
62 #define LENGTH_MCCMNC_TEXT 6
63 #define LENGTH_UnlockKey 11
64 /* Note: The following definitions reflect the spec
65  * These constants are used for pointer advancement
66  * in unpack functions
67  */
68 
69 /* object 0x700A */
70 #define OBJ_LENGTH_Country 6
71 #define OBJ_LENGTH_Network 16
72 
73 /* object 0x1042 & 0x1043 */
74 #define OBJ_LENGTH_PLMN 62
75 #define OBJ_LENGTH_AbvPLMN 26
76 /* object 0x1043 */
77 #define OBJ_LENGTH_SPN 32
78 
79 /* GsmProfiles */
80 #define LENGTH_RsvdGsmProfileBasic 11
81 #define LENGTH_CNS_PROFILE_READ_PARAM 3
82 #define LENGTH_CNS_PROFILE_WRITE_MAX 245
83 #define LENGTH_CNS_PLMN_MODE_SET_PARAM 5
84 #define LENGTH_CNS_PROFILE_AUTH_GET 3
85 /* object 0x700E */
86 #define OBJ_PROFILE_AUTH_NUMOBJ 2 /* can only set username & password */
87 #define OBJ_TYPE_UserName 0x00
88 #define OBJ_TYPE_Password 0x01
89 #define OBJ_LENGTH_UserName 128
90 #define OBJ_LENGTH_Password 128
91 #define OBJ_LENGTH_GetRat 2
92 #define OBJ_LENGTH_SetRat 3
93 #define OBJ_LENGTH_GetPrlRegion 2
94 #define OBJ_LENGTH_SetPrlRegion 3
95 
96 /* PLMN status bit mask */
97 #define PLMN_REGISTERED 0x01
98 #define PLMN_FORBIDDEN 0x02
99 #define PLMN_HOME 0x04
100 #define PLMN_WEAK 0x08
101 #define PLMN_GPRS_BIT 0x10
102 
113 {
118 };
119 
128 {
133 };
134 
146 {
151 };
152 
161 {
170 };
171 
180 {
184 };
185 
194 {
197 };
198 
208 {
220 };
221 
230 {
233 };
234 
246 {
252 };
253 
265 {
275 };
276 
288 {
299 };
300 
312 {
333 };
334 
344 {
347 
350 
353 
356 
359 
362 
365 
368 
371 
374 
377 
380 
383 
386 
389 
392 
395 
398 
401 
404 
407 
410 
413 
416 
419 
422 
425 
428 
431 
434 
437 };
438 
448 {
452 
456 
461 };
462 
472 {
476 };
477 
489 {
493 
498 
502 
506 
509 
513 
517 
520 
524 
528 
532 
535 };
536 
546 {
549 };
550 
560 {
563 };
564 
573 {
578 };
579 
588 {
592 };
593 
603 {
615 };
616 
626 {
632 };
633 
643 {
647 };
648 
658 {
663 };
664 
674 {
683 };
684 
694 {
705 };
706 
716 {
721 };
722 
732 {
735 };
736 
745 {
754 };
755 
769 {
774 };
775 
791 {
795 
798 
801 };
802 
803 
815 {
818 
821 
824 };
825 
835 {
839 
842 
846 
849 
852 
855 
858 
861 
864 };
865 
876 {
879 
883 
886 
889 
892 
895 
898 
901 
904 
907 
910 
913 
916 
919 
922 };
923 
924 
934 {
940 };
941 
951 {
954 
957 
961 };
962 
972 {
980 };
981 
991 {
995 };
996 
1007 {
1010 
1013 
1017 
1020 };
1021 
1038 {
1042 
1046 
1050 
1054 
1058 
1062 
1066 
1071 
1076 
1080 
1085 
1090 
1095 };
1112 {
1115 
1118 
1121 
1124 
1127 
1130 
1134 
1137 
1140 
1143 
1146 
1149 
1152 
1155 
1158 
1161 
1164 
1167 
1170 
1175 };
1176 
1177 
1187 {
1191 };
1192 
1215 {
1218 
1221 
1224 };
1225 
1243 {
1247 
1251 
1255 
1259 
1263 
1268 
1273 
1279 
1285 
1288 
1291 
1294 
1297 
1300 
1303 
1306 
1309 
1312 
1315 
1318 
1322 
1326 
1330 
1336 
1340 
1345 };
1346 
1347 
1348 
1357 {
1360 
1363 };
1364 
1365 
1376 {
1380 
1384 
1387 
1390 };
1391 
1408 {
1412 
1415 
1418 
1423 
1426 };
1427 
1434 {
1439 };
1440 
1456 {
1459 
1462 
1465 
1468 
1474 
1479 
1485 
1488 
1492 
1496 
1499 
1503 
1506 
1510 
1514 
1518 
1523 
1535 
1541 
1545 
1550 
1553 
1557 
1560 
1563 };
1564 
1591 {
1594 
1597 
1601 
1604 
1607 
1610 
1613 
1616 
1619 
1622 
1625 
1628 
1631 
1634 
1637 
1640 
1643 
1647 
1650 
1653 
1656 
1659 
1662 
1665 
1668 
1671 
1674 
1677 
1680 
1683 
1686 
1689 
1693 
1696 
1699 
1702 
1705 
1708 
1711 
1714 
1717 
1720 
1723 
1726 };
1727 
1738 {
1741 
1744 
1749 
1753 
1758 
1762 };
1763 
1764 
1775 {
1778 
1781 
1784 
1787 
1790 
1793 
1797 
1801 
1804 
1807 
1810 
1813 
1816 
1820 
1823 
1826 
1829 };
1830 
1831 
1847 {
1851 
1855 
1859 
1862 
1865 
1868 
1871 
1874 
1877 };
1878 
1879 
1903 {
1906 
1909 
1912 
1915 
1918 
1921 
1924 
1927 
1930 
1933 
1936 
1939 
1942 
1945 
1948 
1951 
1954 
1957 
1960 
1963 
1966 
1969 
1972 
1976 };
1977 
1986 {
1990 
1993 
1999 
2003 };
2018 {
2021 
2024 
2027 
2030 
2033 
2036 
2039 
2042 
2045 
2048 
2051 };
2052 
2066 {
2069 
2073 };
2074 
2075 
2086 {
2089 
2092 };
2093 
2104 {
2108 
2113 
2118 
2121 
2124 
2127 };
2128 
2129 
2130 
2131 
2140 {
2143 
2146 };
2147 
2148 
2158 {
2161 
2165 
2170 
2173 
2176 
2179 };
2180 
2187  swi_uint32 timeout);
2189  swi_uint32 *pNumBars);
2191  swi_uint32 *nReceived,
2192  swi_uint32 Timeout);
2195  swi_uint32 timeout);
2196 
2197 /* GSM Profile APIs */
2199  struct SWI_STRUCT_GsmProfileSummary* pProfileSummary,
2200  swi_uint32 timeout);
2202  struct SWI_STRUCT_GsmProfileBasic* pProfile,
2203  swi_uint32 timeout);
2205  struct SWI_STRUCT_GsmProfileQos* pProfile,
2206  swi_uint32 timeout);
2208  struct SWI_STRUCT_GsmProfileDns* pProfile,
2209  swi_uint32 timeout);
2211  struct SWI_STRUCT_GsmProfileTft* pProfile,
2212  swi_uint32 timeout);
2214  struct SWI_STRUCT_GsmProfileBasic pProfile,
2215  swi_uint32 timeout);
2217  struct SWI_STRUCT_GsmProfileQos pProfile,
2218  swi_uint32 timeout);
2220  struct SWI_STRUCT_GsmProfileDns pProfile,
2221  swi_uint32 timeout);
2223  struct SWI_STRUCT_GsmProfileTft pProfile,
2224  swi_uint32 timeout);
2226  const swi_uint32 nProfileID,
2227  swi_uint32 timeout);
2229  const swi_uint32 nProfileID,
2230  swi_uint32 timeout);
2232  const swi_uint32 nProfileID, swi_bool Activate,
2233  swi_uint32 timeout);
2234 
2235 /* GSM Network APIs */
2237  swi_bool bStartup,
2238  swi_uint32 timeout);
2240  struct SWI_STRUCT_IpAddress* pIp,
2241  swi_uint32 timeout);
2243  struct SWI_STRUCT_PktSessionStatus *sSessionStatus,
2244  swi_uint32 timeout);
2246  enum SWI_TYPE_PLMN_Mode* eMode,
2247  swi_uint32 timeout);
2249  const struct SWI_STRUCT_PlmnSelection sPlmn,
2250  swi_uint32 timeout);
2253  struct SWI_STRUCT_PlmnSelection* sPlmn,
2254  swi_uint32 timeout);
2256  enum SWI_TYPE_ServiceStatus *eServiceStatus,
2257  swi_uint32 timeout);
2259  struct SWI_STRUCT_PktSessionCall *sPktSessionCall,
2260  swi_uint32 timeout);
2262  struct SWI_STRUCT_Rat *psRat,
2263  swi_uint32 timeout);
2265  struct SWI_STRUCT_Rat *psRat,
2266  swi_uint32 timeout);
2268  struct SWI_STRUCT_PrlRegion *psPrl,
2269  swi_uint32 timeout);
2271  struct SWI_STRUCT_PrlRegion *psPrl,
2272  swi_uint32 timeout);
2274  struct SWI_STRUCT_GsmSystemStatus* pSysStatus,
2275  swi_uint32 timeout);
2276 
2277 #ifdef __cplusplus
2278 } /* extern "C" { */
2279 #endif
2280 
2281 #endif /* __SWIAPI_GSM_NETWORK_H */
2282 
2283 /*
2284  * $Log: SwiApiGsmNetwork.h,v $
2285  */

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