LinuxSDK  V1.4.0.5
SwiApiCmBasic.h
Go to the documentation of this file.
1 
14 #ifndef __SWIAPI_CM
15 #define __SWIAPI_CM
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 /* include files */
22 #include "SwiDataTypes.h"
23 #include "SwiRcodes.h"
24 
25 
26 /* defines */
27 #define LENGTH_MaxPPPString 33
28 #define LENGTH_IPAddress 16
29 #define LENGTH_LogFileName 128
30 #define LENGTH_SdkPathName 128
31 #define LENGTH_CommPort 7
32 #define LENGTH_UsbdVersion 85
33 #define LENGTH_UsbdBuildDate 9
34 #define LENGTH_BootBuildDate 9
35 #define NUMVALUE_WIMAX 80216
36 #define MAX_NOTIF_LIST 122
37 #define LENGTH_DriverName 100
38 #define LENGTH_MacAddress 6
39 #define LENGTH_ProductName 20
40 #define LENGTH_ModemName 75
41 #define LENGTH_HardwareId 50
42 #define MAX_NUM_LBS_SV 12
43 #define LENGTH_TimeStamp 16
44 #define MAX_BAND_GROUPS 50
45 #define MAX_BAND_LIST 50
46 #define MAX_AIR_SERVERS 50 /* Must be < than a frame. */
47 #define LENGTH_ProductStr 16
48 #define MAX_OBJRNGINFOBLOCKS 35
49 #define LENGTH_PortName 80
50 
51 /* enum declarations */
52 
65 {
68  /* PC Cards */
83  /* Embedded Modules */
120  /* MP */
129  /* ExpressCards */
138  /* USB Modems */
164  /* Mass Storage */
167  /* Other - This value is used for determining if a Product string is
168  * provide instead of the usual Device type for newer modems using
169  * unified VID/PID. The API will translate the string to a device type.
170  */
172 };
173 
174 /* structure declarations */
175 
182 {
185 
188 
191 };
192 
200 {
203 
206 
210 };
211 
221 {
222 
225 
228 
231 };
232 
233 
242 {
246 
250 
254 };
255 
266 {
271 
274 
277 
280 
283 
286 };
287 
296 {
300 
303 
306 
310 };
311 
323 {
329 };
330 
345 {
350 };
351 
373 {
377 
383 
388 
391 };
392 
412 {
416 
420 
424 
428 
432 
436 };
437 
446 {
449 
452 
455 };
456 
464 {
467 
470 
473 };
474 
488 {
494 };
495 
501 {
505 };
506 
518 {
522 };
523 
535 {
539 
543 };
544 
557 {
561 
565 };
578 {
582 
586 };
600 {
609 };
610 
624 {
629 
632 
637 
640 
643 
648 
651 };
652 
659 {
662 
663 };
664 
673 {
674  SWI_MONTH_Jan = 0x01,
686 };
687 
696 {
704 };
705 
714 {
718 };
719 
728 {
732 
735 
738 
742 
745 
749 
753 
757 
768 
772 };
773 
774 #define LENGTH_ImgInfoVer 85
775 #define LENGTH_ImgInfoRelDate 9
776 #define LENGTH_ImgInfoProdType 5
777 #define LENGTH_ImgInfoImgType 5
788 typedef enum
789 {
794 
806 {
810 
821 
825 
869 
874 
880 
884 };
885 
895 {
903 };
927 {
930 
933 
936 
939 
942 };
943 
953 {
956 
959 
962 };
963 
975 {
978 };
979 
991 {
994 
997 
1000 
1003 };
1004 
1016 {
1019 
1022 
1025 
1028 
1031 };
1032 
1051 {
1056 
1060 
1065 
1070 
1074 };
1075 
1088 {
1093 };
1094 
1107 {
1112 
1116 
1120 };
1121 
1133 {
1138 };
1139 
1152 {
1157 
1161 
1164 };
1173 {
1177 };
1178 
1191 {
1224 };
1225 
1238 {
1241 
1244 };
1245 
1264 {
1268 
1271 
1276 };
1277 
1288 #define SWI_RADIOBANDGROUP_CdmaClass0A 0x0000000000000001ull
1289 
1300 #define SWI_RADIOBANDGROUP_CdmaClass0B 0x0000000000000002ull
1301 
1312 #define SWI_RADIOBANDGROUP_CdmaClass0ABo 0x0000000000000003ull
1313 
1324 #define SWI_RADIOBANDGROUP_CdmaClass1 0x0000000000000004ull
1325 
1336 #define SWI_RADIOBANDGROUP_CdmaClass2 0x0000000000000008ull
1337 
1348 #define SWI_RADIOBANDGROUP_CdmaClass3 0x0000000000000010ull
1349 
1360 #define SWI_RADIOBANDGROUP_CdmaClass4 0x0000000000000020ull
1361 
1372 #define SWI_RADIOBANDGROUP_CdmaClass5 0x0000000000000040ull
1373 
1384 #define SWI_RADIOBANDGROUP_CdmaClass6 0x0000000000000080ull
1385 
1396 #define SWI_RADIOBANDGROUP_CdmaClass7 0x0000000000000100ull
1397 
1408 #define SWI_RADIOBANDGROUP_CdmaClass8 0x0000000000000200ull
1409 
1420 #define SWI_RADIOBANDGROUP_CdmaClass9 0x0000000000000400ull
1421 
1432 #define SWI_RADIOBANDGROUP_CdmaClass10 0x0000000000000800ull
1433 
1444 #define SWI_RADIOBANDGROUP_CdmaClass11 0x0000000000001000ull
1445 
1456 #define SWI_RADIOBANDGROUP_CdmaClass12 0x0000000000002000ull
1457 
1468 #define SWI_RADIOBANDGROUP_CdmaPcsCellular 0x0000000000000007ull
1469 
1480 #define SWI_RADIOBANDGROUP_Gsm450 0x0000000000010000ull
1481 
1492 #define SWI_RADIOBANDGROUP_Gsm480 0x0000000000020000ull
1493 
1504 #define SWI_RADIOBANDGROUP_Gsm750 0x0000000000040000ull
1505 
1516 #define SWI_RADIOBANDGROUP_Gsm850 0x0000000000080000ull
1517 
1528 #define SWI_RADIOBANDGROUP_GsmRGsm900 0x0000000000100000ull
1529 
1540 #define SWI_RADIOBANDGROUP_GsmPcs1900 0x0000000000200000ull
1541 
1552 #define SWI_RADIOBANDGROUP_GsmDcs1800 0x0000000000400000ull
1553 
1564 #define SWI_RADIOBANDGROUP_GsmEGsm900 0x0000000000800000ull
1565 
1576 #define SWI_RADIOBANDGROUP_GsmPGsm900 0x0000000001000000ull
1577 
1588 #define SWI_RADIOBANDGROUP_GsmPcs850 0x0000000000280000ull
1589 
1600 #define SWI_RADIOBANDGROUP_GsmEGsmDcs 0x0000000001C00000ull
1601 
1612 #define SWI_RADIOBANDGROUP_GsmAll 0x0000000001E80000ull
1613 
1624 #define SWI_RADIOBANDGROUP_WcdmaIImt2000 0x0000000100000000ull
1625 
1636 #define SWI_RADIOBANDGROUP_WcdmaIIPcs1900 0x0000000200000000ull
1637 
1648 #define SWI_RADIOBANDGROUP_WcdmaIII1700 0x0000000400000000ull
1649 
1660 #define SWI_RADIOBANDGROUP_WcdmaIV1700 0x0000000800000000ull
1661 
1672 #define SWI_RADIOBANDGROUP_WcdmaV850 0x0000001000000000ull
1673 
1684 #define SWI_RADIOBANDGROUP_WcdmaVI800 0x0000002000000000ull
1685 
1696 #define SWI_RADIOBANDGROUP_WcdmaVII2600 0x0000004000000000ull
1697 
1708 #define SWI_RADIOBANDGROUP_WcdmaVIII900 0x0000008000000000ull
1709 
1721 #define SWI_RADIOBANDGROUP_WcdmaEu 0x0000008100000000ull
1722 
1733 #define SWI_RADIOBANDGROUP_WcdmaIX1700 0x0000010000000000ull
1734 
1745 #define SWI_RADIOBANDGROUP_WcdmaNa 0x0000001200000000ull
1746 
1757 #define SWI_RADIOBANDGROUP_WcdmaGsmEu 0x0000000101C00000ull
1758 
1769 #define SWI_RADIOBANDGROUP_WcdmaGsmNa 0x0000001200280000ull
1770 
1781 #define SWI_RADIOBANDGROUP_WcdmaAustralia 0x0000001100000000ull
1782 
1793 #define SWI_RADIOBANDGROUP_WcdmaAustrailiaGsmEu 0x0000001101C00000ull
1794 
1805 #define SWI_RADIOBANDGROUP_WcdmaJapan 0x0000002100000000ull
1806 
1817 #define SWI_RADIOBANDGROUP_WcdmaAll_EarlyMC8700 0x0000001300000000ull
1818 
1830 #define SWI_RADIOBANDGROUP_WcdmaAll_AC503_MC8700 0x000000b300000000ull
1831 
1841 #define SWI_RADIOBANDGROUP_AutoBand 0xFFFFFFFFFFFFFFFFull
1842 
1854 {
1858 
1862 
1865 
1870 };
1871 
1887 {
1891 
1894 
1897 
1900 
1903 
1906 
1909 
1912 
1915 
1918 
1921 };
1922 
1924 #define SWI_FILENAME_LEN 8
1925 #if defined(CNS_FILENAME_LEN) && SWI_FILENAME_LEN != CNS_FILENAME_LEN
1926 #error CNS and SWI definition mismatch
1927 #endif
1928 
1930 #define SWI_API_UNLOCK_PWD_LEN 10
1931 #if defined(CNS_API_UNLOCK_PWD_LEN) && \
1932  SWI_API_UNLOCK_PWD_LEN != CNS_API_UNLOCK_PWD_LEN
1933 #error CNS and SWI definition mismatch
1934 #endif
1935 
1940 {
1947 
1954 {
1959 
1964 
1970 typedef enum eApiUnlockLevel
1971 {
1975 
1981 typedef enum eApiUnlockResult
1982 {
1986 
1995 typedef struct SWI_STRUCT_ApiUnlock
1996 {
2000 
2006 
2013 {
2018 
2019 #define SWI_RDA_NAME_MAX 69
2020 #define SWI_RDA_VERSION_MAX 32
2030 typedef struct SWI_STRUCT_RDA_SUPPORT
2031 {
2035 
2042 
2049 {
2053 
2062 typedef struct SWI_STRUCT_RM_CONFIG
2063 {
2067 
2071 
2076 
2086 {
2090 
2094 
2099 
2108 {
2112 
2118 
2124 
2130 
2136 };
2137 
2138 /* Function prototypes */
2140  struct SWI_STRUCT_ApiStartup *pOpenParams);
2141 
2142 extern SWI_API SWI_RCODE SwiTerminateSDK( void );
2143 
2145  swi_charp szFWVersion,
2146  swi_uint32 sizeBuffer,
2147  swi_uint32 timeout);
2148 
2150  swi_charp szBuildDate,
2151  swi_uint32 sizeBuffer,
2152  swi_uint32 timeout);
2153 
2155  swi_charp szHWVersion,
2156  swi_uint32 sizeBuffer,
2157  swi_uint32 timeout);
2158 
2160  swi_charp szBVVersion,
2161  swi_uint32 sizeBuffer,
2162  swi_uint32 timeout);
2163 
2165  swi_charp szBLBldDate,
2166  swi_uint32 *nLength,
2167  swi_uint32 Timeout);
2168 
2170  struct SWI_STRUCT_RadioPower *pRadioPower,
2171  swi_uint32 timeout);
2172 
2174  struct SWI_STRUCT_RadioPower* pRadioPower,
2175  swi_uint32 timeout);
2176 
2178  struct SWI_STRUCT_RadioTempState *pRadioTemp,
2179  swi_uint32 timeout);
2180 
2182  struct SWI_STRUCT_RadioBattery *pRadioBattery,
2183  swi_uint32 timeout);
2184 
2186  struct SWI_STRUCT_RadioBandList *pRadioBand,
2187  swi_int32 timeout);
2188 
2190  struct SWI_STRUCT_RadioBandConfig *pRadioBand,
2191  swi_int32 timeout);
2192 
2194  swi_uint64 nRadioBandGroup,
2195  swi_int32 timeout);
2196 
2198  struct SWI_STRUCT_UsbdInfo* pUsbdInfo,
2199  swi_uint32 timeout);
2200 
2202  struct SWI_STRUCT_PriInfo* pPriInfo,
2203  swi_uint32 timeout);
2204 
2206  struct SWI_STRUCT_ModemType* pSwiModemType,
2207  swi_uint32 timeout);
2208 
2210  struct SWI_STRUCT_DeviceTime* pDeviceTime,
2211  swi_uint32 timeout);
2212 
2214  swi_charp pszDeviceID,
2215  swi_uint32 sizeBuffer,
2216  swi_uint32 timeout);
2217 
2219  struct SWI_STRUCT_FlashImgInfo* pFlashImgInfo,
2220  swi_uint32 timeout);
2221 
2223  struct SWI_STRUCT_ObjRngRev *ObjRngRevp,
2224  swi_uint32 timeout);
2225 
2227  struct SWI_STRUCT_AirServerList *sList);
2228 
2230  swi_bool *pbootnhold, swi_uint32 timeout );
2231 
2232 extern SWI_API void SwiGetLastError(
2233  swi_char *szError,
2234  swi_uint32 sizeBuffer);
2235 
2237  struct SWI_STRUCT_UsbPortName *sPortNamep);
2238 
2240  SWI_STRUCT_NVUpdateFromFile *pNVUpdateFromFile,
2241  swi_uint32 timeout);
2242 
2244  swi_uint32 timeout);
2245 
2247  SWI_STRUCT_RDA_SUPPORT *psRDA,
2248  swi_uint32 timeout);
2249 
2251  swi_uint8 *pStatus,
2252  swi_uint32 timeout);
2253 
2255  SWI_STRUCT_RM_CONFIG *psRM,
2256  swi_uint32 timeout);
2257 
2259  const SWI_STRUCT_RM_CONFIG_SET *psRM,
2260  swi_uint8 *pStatus,
2261  swi_uint32 timeout);
2262 
2263 extern SWI_API SWI_RCODE SwiSoftModemReset(void);
2264 
2266 
2267 extern SWI_API SWI_RCODE SwiGetSdkVersion(swi_charp *sdkversionpp);
2268 
2270  struct SWI_STRUCT_DeviceInformation_Request *sDeviceInformation_Requestp,
2271  struct SWI_STRUCT_DeviceInformation_Response *sDeviceInformation_Responsep,
2272  swi_uint32 timeout);
2273 
2275  struct SWI_STRUCT_GetSwocCfg* pSwocCfg,
2276  swi_uint32 timeout);
2277 
2279  struct SWI_STRUCT_UsbPortName *sPortNamep );
2280 
2281 extern void SwiUpkDeviceInformationResp(
2282  swi_uint8 *paramfieldp,
2283  struct SWI_STRUCT_DeviceInformation_Response *pDeviceInfo );
2284 
2285 extern void SwiUpkSwocCfg (
2286  swi_uint8 *paramfieldp,
2287  struct SWI_STRUCT_GetSwocCfg *pSwocCfg );
2288 
2289 #ifdef __cplusplus
2290 } /* extern "C" { */
2291 #endif
2292 
2293 #endif /* __SWIAPI_CM */
2294 
2295 /*
2296  * $Log: SwiApiCmBasic.h,v $
2297  */

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