LinuxSDK  V1.4.0.5
SwiApiNotify.h
Go to the documentation of this file.
1 
15 #ifndef __SWI_API_NOTIFY_H__
16 #define __SWI_API_NOTIFY_H__
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 /* include files */
23 #include "SwiDataTypes.h"
24 #include "SwiRcodes.h"
25 #include "SwiApiGsmBasic.h"
26 #include "SwiApiGsmNetwork.h"
27 #include "SwiApiGsmSim.h"
28 #include "SwiApiGsmSs.h"
29 #include "SwiApiGsmPhonebook.h"
30 #include "SwiApiGsmStk.h"
31 #include "SwiApiGsmVoice.h"
32 #include "SwiApiCmBasic.h"
33 #include "SwiApiCmUpgrade.h"
34 #include "SwiApiCmLbs.h"
35 #include "SwiApiCmDm.h"
36 #include "SwiApiGsmLbs.h"
37 #include "SwiApiCdmaBasic.h"
38 #include "SwiIntCdma.h"
39 #include "SwiApiCdmaIota.h"
40 #include "SwiApiCdmaLbs.h"
41 #include "SwiApiCdmaNetwork.h"
42 #include "SwiApiCdmaRuim.h"
43 #include "SwiApiCdmaSms.h"
44 #include "SwiApiCdmaVoice.h"
45 #include "SwiApiCmDm.h"
46 #include "SwiApiGsmSms.h"
47 
48 
49 /* defines */
50 #define LENGTH_MaxPPPString 33
51 #define LENGTH_IPAddress 16
52 #define LENGTH_LogFileName 128
53 #define LENGTH_SdkPathName 128
54 #define LENGTH_CommPort 7
55 #define LENGTH_UsbdVersion 85
56 #define LENGTH_UsbdBuildDate 9
57 #define LENGTH_BootBuildDate 9
58 #define NUMVALUE_WIMAX 80216
59 #define MAX_NOTIF_LIST 122
60 #define LENGTH_DriverName 100
61 #define LENGTH_MacAddress 6
62 #define LENGTH_ProductName 20
63 #define LENGTH_ModemName 75
64 #define LENGTH_HardwareId 50
65 #define MAX_NUM_LBS_SV 12
66 #define LENGTH_TimeStamp 16
67 #define MAX_BAND_GROUPS 50
68 #define MAX_BAND_LIST 50
69 #define MAX_AIR_SERVERS 50 /* Must be < than a frame. */
70 
71 
72 /* structure declarations */
73 
81 {
88 
93 };
94 
95 
104 {
108 
111 };
112 
134 {
137 
142 
147 
153 
159 
166 
176 
180 
185 
193 
200 
210 
215 
219 
224 
228 
232 
237 
242 
247 
253 
258 
266 
270 
274 
278 
282 
287 
291 
297 
301 
305 
309 
313 
318 
322 
326 
337 
344 
348 
353 
358 
363 
368 
372 
377 
382 
387 
392 
397 
402 
407 
412 
417 
421 
426 
431 
435 
441 
445 
467 
472 
477 
481 
490 
499 
508 
516 
519 
522 
531 
540 
549 
558 
568 
578 
586 
595 
604 
607 
610 
613 
616 
624 
627 
630 
633 
636 
639 
642 
645 
669 
679 
693 
700 
703 
713 
720 
727 
730 
733 
736 
741 
746 
752 
758 
764 
770 
773 
779 
786 
791 
795 
799 
803 
807 
811 
815 
819 
823 
828 
832 
836 
840 
844 
848 
854 
861 
862  /* Rev A */
869 
876 
883 
890 
897 
904 
911 
919 
927 
935 
944 
951 
954 
957 
968 
978 
985 
992 
1001 
1008 
1016 
1023 
1032 
1038 
1044 
1056 
1064 
1072 
1080 
1089 
1092 
1101 
1106 
1109 
1115 
1123 
1127 
1134 
1135 
1153 
1154 
1163 
1173 
1182 
1189 
1201 
1213 
1219 
1222 
1225 
1231 
1234 
1249 
1266 
1283 
1300 
1317 
1334 
1351 
1369 
1387 
1403 
1419 
1436 
1452 
1468 
1484 
1503 
1512 
1515 
1516  /* OMA-DM */
1522 
1528 
1533 
1536 
1539 
1542 
1545 
1546  /* DM-DL */
1551 
1555 
1560 
1565 
1570 
1572  SWI_NOTIFY_END_NOTIFY /* place holder - must be last entry in this list */
1573 };
1574 
1575 
1588 {
1593 
1597 
1601 };
1602 
1621 {
1623 
1624  union
1625  {
1626  /*
1627  * common
1628  */
1630 /* SWI_STRUCT_LockAirServer _LockAirServer; */
1631 /* SWI_STRUCT_HeartBeat _HeartBeat; */
1632 /* SWI_STRUCT_HeadsetIcon _HeadsetIcon; - Not required until release 2 */
1635 #if 0
1636  SWI_STRUCT_Reset _Reset;
1637  SWI_STRUCT_Power _Power;
1638  SWI_HW_STRUCT_Power _HWPower;
1639  SWI_STRUCT_Dhcp _Dhcp;
1640  SWI_STRUCT_PPP _PPP;
1641  SWI_STRUCT_Debug _Debug;
1642 #endif
1647 #if 0
1648 
1649 #endif
1651 #if 0
1652 
1653  /* MP notifications */
1654  SWI_STRUCT_Gps _Gps;
1655  SWI_STRUCT_ExtDioNotif _ExtDio;
1656  SWI_STRUCT_ExtAiNotif _ExtAi;
1657  SWI_STRUCT_GpsCommand _GpsCommand;
1658  SWI_STRUCT_IgnSense _MPIgnSense;
1659  SWI_STRUCT_RfDownload _RfDownload;
1660  SWI_STRUCT_SimSled _SimSled;
1661  SWI_STRUCT_BatteryStatus _BatteryStatus;
1662  SWI_STRUCT_MpShutdown _MpShutdown;
1663  SWI_STRUCT_MpConnect _MpConnect;
1664  SWI_STRUCT_MpStartupDiag _MpStartupDiag;
1665  SWI_STRUCT_MpStartupConfig _MpStartupConfig;
1666  SWI_STRUCT_MpByteCounter _MpByteCounter;
1667  SWI_STRUCT_MpDisconnect _MpDisconnect;
1668  SWI_STRUCT_MpManagerData _MpManagerData;
1669 
1670 #endif
1671  /* LBS notifications */
1696 
1697  /*
1698  * CDMA
1699  */
1704  SWI_STRUCT_Ecio _Ecio;
1705  SWI_STRUCT_AuthenticationStatus _AuthenticationStatus;
1717  /*SWI_STRUCT_HeadsetState _HeadsetState;*/
1718  SWI_STRUCT_ActiveNam _ActiveNam;
1719  SWI_STRUCT_TechSid _TechSid;
1720  SWI_STRUCT_TechNid _TechNid;
1721  SWI_STRUCT_TechBsInfo _TechBsInfo;
1723  SWI_STRUCT_TechRegZone _TechRegZone;
1724  SWI_STRUCT_TechPacketZone _TechPacketZone;
1725  SWI_STRUCT_TechPcsBlock _TechPcsBlock;
1726  SWI_STRUCT_TechCellChannel _TechCellChannel;
1727  SWI_STRUCT_SystemTime _SystemTime;
1728  SWI_STRUCT_ActivationStatus _ActivationStatus;
1729  SWI_STRUCT_V42BisEnabled _V42BisEnabled;
1734  SWI_STRUCT_ModemTooHotIndication _ModemTooHotIndication;
1736  SWI_STRUCT_FlashBurn _FlashBurn;
1737  SWI_STRUCT_ExcessSPCFailures _ExcessSPCFailures;
1741  SWI_STRUCT_Hdr_Acq _Hdr_Acq;
1742  SWI_STRUCT_Hdr_Rssi _Hdr_Rssi;
1751  SWI_STRUCT_TechHdrNotificationStatus _TechHdrNotificationStatus;
1752  SWI_STRUCT_Tech_Hdr_Prev _Tech_Hdr_Prev;
1753  SWI_STRUCT_Tech_Hdr_Sector _Tech_Hdr_Sector;
1754  SWI_STRUCT_Tech_Hdr_State _Tech_Hdr_State;
1755  SWI_STRUCT_Tech_Hdr_Channel _Tech_Hdr_Channel;
1756  SWI_STRUCT_Tech_Hdr_Session _Tech_Hdr_Session;
1757  SWI_STRUCT_Tech_Hdr_An_Auth _Tech_Hdr_An_Auth;
1758  SWI_STRUCT_Tech_Hdr_Drc_Val _Tech_Hdr_Drc_Val;
1759  SWI_STRUCT_Tech_Hdr_Drc_Cover _Tech_Hdr_Drc_Cover;
1760  SWI_STRUCT_Tech_Hdr_Rri _Tech_Hdr_Rri;
1761  SWI_STRUCT_Tech_Hdr_Stats _Tech_Hdr_Stats;
1762  SWI_STRUCT_DebugPacket _DebugPacket;
1763  SWI_STRUCT_HIOTAStatus _HIOTA_Status;
1767 
1768  /* Rev A */
1769  SWI_STRUCT_Tech_Hdr_Su_Fwd_Stats _Tech_Hdr_Su_Fwd_Stats;
1770  SWI_STRUCT_Tech_Hdr_Su_Fwd_Slot_Cnt _Tech_Hdr_Su_Fwd_Slot_Cnt;
1771  SWI_STRUCT_Tech_Hdr_Su_Fwd_Slot_Cnt2 _Tech_Hdr_Su_Fwd_Slot_Cnt2;
1772  SWI_STRUCT_Tech_Hdr_Mu_Fwd_Stats _Tech_Hdr_Mu_Fwd_Stats;
1773  SWI_STRUCT_Tech_Hdr_Personality _Tech_Hdr_Personality;
1775 
1776  /*
1777  * GSM
1778  */
1781 #if 0
1782  SWI_STRUCT_Temperature _Temperature;
1783  SWI_STRUCT_GSM_SMS_Status _GsmSmsStatus;
1784  SWI_STRUCT_SMS_SimFull _SmsSimFull;
1785  SWI_STRUCT_Band _Band;
1786  SWI_STRUCT_Band _BandWrite;
1787 #endif
1791 #if 0
1792  SWI_STRUCT_TransmitAlert _TransmitAlert;
1793  SWI_STRUCT_SMS_SendReference _SmsSendReference;
1794  SWI_STRUCT_GSM_SMS_SendStatus _GsmSmsSendStatus;
1795 #endif
1800 #if 0
1801  SWI_STRUCT_SmsReady _SmsReady;
1802 #endif
1829 #if 0
1830  SWI_STRUCT_IconGprsState _IconGprsState;
1831  SWI_STRUCT_IconRoamState _IconRoamState;
1832 #endif
1835 #if 0
1836  SWI_STRUCT_DataRate _DataRate;
1837 #endif
1839 #if 0
1840  SWI_STRUCT_SmsStoreExp _SmsStoreExp;
1841  SWI_STRUCT_SmsSendExp _SmsSendExp;
1842 #endif
1844 #if 0
1845  SWI_STRUCT_TTYControl _TTYControl;
1846  SWI_STRUCT_SMS_Received _SmsReceived;
1847  SWI_STRUCT_SMS_Deliver _SmsDeliver;
1848  SWI_STRUCT_SMS_Submit _SmsSubmit;
1849  SWI_STRUCT_SMS_StatusReport _SmsStatusReport;
1850  SWI_STRUCT_SMS_SimStatus _SmsSimStatus;
1851 #endif
1855 #if 0
1856  SWI_STRUCT_HSDPA_TestChan _HSDPA_TestChan;
1857  SWI_STRUCT_SmsStatusReportCfg _SmsStsReportCfg;
1858 #endif
1864 
1865  /* OMA-DM */
1873 
1874  /* DM-DL */
1878  };
1879 };
1880 
1881 /*************
1882  *
1883  * Callback
1884  *
1885  ************/
1886 typedef void (*SWI_CALLBACK_EX)(struct SwiNotifyVariant *pNotify);
1887 
1888 
1889 /* function prototypes */
1890 extern SWI_API SWI_RCODE SwiCreateNotifThread( void (*threadfuncp)(void) );
1891 
1892 extern SWI_API SWI_RCODE SwiWaitNotification( void );
1893 
1895  swi_uint64 nNotifications);
1896 
1898 
1900  swi_uint32 timeout);
1901 
1903  swi_uint32 timeout);
1904 
1905 #ifdef __cplusplus
1906 } /* extern "C" { */
1907 #endif
1908 
1909 #endif /* __SWI_API_NOTIFY_H__ */
1910 
1911 /*
1912  * $Log: SwiApiNotify.h,v $
1913  */

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