LinuxSDK  V1.4.0.5
SwiApiCdmaSms.h
Go to the documentation of this file.
1 
13 #ifndef __SWIAPICDMASMS_H__
14 #define __SWIAPICDMASMS_H__
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 /* include files */
21 #include "SwiDataTypes.h"
22 #include "SwiRcodes.h"
23 
24 #define CNS_MAX_PACKET_SIZE 256
25 #define CNS_PACKET_HEADER_SIZE 10
28 #define CNS_MAX_PAYLOAD_SIZE (CNS_MAX_PACKET_SIZE - CNS_PACKET_HEADER_SIZE)
29 
30 #define CNS_SMS_HEADER_SIZE 6
33 #define CNS_SMS_MAX_SIZE (CNS_MAX_PAYLOAD_SIZE - CNS_SMS_HEADER_SIZE)
34 
35 #define MAX_SMSI_CALL_BACK 32
36 #define MAX_SMSI_TL_ADDRESS 50
42 typedef enum SWI_SMS_PACKET_TYPE
43 {
49 
63 typedef enum SMSAPIUsage
64 {
69 
70 /*
71  *
72  * SMS Messaging
73  *
74  * CDMA2000 1X modems can send and receive
75  * SMS messages. To handle SMS messages, there
76  * are many data types and structures involved.
77  * Most of these relate to header content. The
78  * details of the parameters in the SMS header are
79  * defined in the CDMA specification and are
80  * beyond the scope of this manual.
81  *
82  * Consult the documentation for a discussion of the SMS message handling
83  * process.
84  *
85  */
86 
93 {
98 
101 
104 
107 
110 
120 
122  SWI_SMS_PARAMASK_ALERT = 0x00002000,
128 
135 {
140 
149 {
154 
157 
160 
164 
167 
171 
178 {
190 
197 {
203 
210 {
216 
223 {
233 
240 {
245 
255 {
258 
264 
270 
275 
280 
283 
293 {
301 
314 {
324 
325  /* ! Below are terminal Problems */
338 
345 
361 
378 
387 {
389  SWI_PRI_SMS_MT = 0x0001,
390 
392  SWI_PRI_SMS_MO = 0x0002,
393 
394  SWI_PRI_SMS_ALL = 0xFFFF,
399 
409 {
415 
427 {
432 
439 
443 
468 
473 
481 
486 
493 
496 
501 
506 
509 
513 
517 
522 
526 
530 
533 
537 
541 
546 
550 
554 
558 
562 
566 
570 
575 
579 
583 
587 
590 
600 {
606 
612 
616 
622 
627 
638 {
643 
647 
657 {
665 
668 
672 
676 
679 
691 typedef struct CDMA_SMS_HEADER
692 {
695 
696 
703 
707 
710 
713 
716 
724 
730 
734 
742 
750 
753 
757 
760 
763 
766 
769 
777 
785 
788 
796 
799 
802 
804 
810 typedef struct CNS_SMS_HEADER
811 {
821 
825 
826 /* Function prototypes */
827 
829 
831  swi_uint32 timeout);
832 
834 
836  SWI_STRUCT_CDMA_SMS_Status *pSMS_Status,
837  swi_uint32 timeout);
838 
841  swi_uint32 timeout);
842 
845  swi_bool bDeleteAfterRetrieve,
846  swi_uint32 timeout);
847 
849 
851  SWI_STRUCT_CDMA_SMS_StoreSms *pStoreSMS,
852  swi_uint32 timeout);
853 
854 #ifdef __cplusplus
855 } /* extern "C" { */
856 #endif
857 
858 #endif /* __SWIAPICDMASMS_H__ */
859 
860 /*
861  * $Log: SwiApiCdmaSms.h,v $
862  */

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