LinuxSDK  V1.4.0.5
SwiApiCdmaBasic.h
Go to the documentation of this file.
1 
14 #ifndef __SWIAPICDMABASIC_H__
15 #define __SWIAPICDMABASIC_H__
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 /* include files */
22 #include "SwiDataTypes.h"
23 #include "SwiRcodes.h"
24 
25 #define G_SZ_FNERINAM1 "eri_nam1"
26 
28 #define CNS_MAX_DATA_BLOCK_SIZE 120
29 
30 #define LENGTH_NvNameNam 12
31 #define LENGTH_PhoneNumberMin 10
32 #define LENGTH_NVItemPayloadMax 240
33 #define LENGTH_Mdn 15
34 #define LENGTH_Min 10
35 #define LENGTH_PinPassword 4
36 #define LENGTH_SecureChallenge 8
37 #define LENGTH_SecureRebuttal 4
38 #define LENGTH_ProvisioningDate 8
40 #define LENGTH_CallNumber 32
41 #define LENGTH_CallExtendedNumber 64
43 #define SCP_PROT_SUBTYPE_MASK 0x000000F9
44 #define SCP_BCMCS_SUBTYPE_MASK 0
45 #define SCP_APP_SUBTYPE_MASK 1
53 typedef enum SWI_TYPE_Commit_ErrorMask
54 {
55  SWI_COMMIT_ERRMASK_NONE = 0x00000000,
56  SWI_COMMIT_ERRMASK_MDN = 0x00000001,
57  SWI_COMMIT_ERRMASK_IMSI = 0x00000002,
59  SWI_COMMIT_ERRMASK_DATE = 0x00000008,
61  /* NAM profile index out of sequence. (NAM 0 must always be provisioned
62  first) */
65 
72 {
78 
87 typedef enum SWI_TYPE_E911Mode
88 {
92 
99 typedef struct SWI_STRUCT_E911Mode
100 {
106 
117 {
119  /* no data */
121 
132 {
134  /* no data */
136 
143 {
144  SWI_PRI_DATA_1X = 0x0001,
148 
151 
152 #if FUTURE_USE
153  SWI_PRI_DATA_ = 0x0008,
154  SWI_PRI_DATA_ = 0x0010,
155  SWI_PRI_DATA_ = 0x0020,
156  SWI_PRI_DATA_ = 0x0040,
157 #endif
158  SWI_PRI_VOICE = 0x0080,
159  SWI_PRI_VD_ALL = 0xFFFF,
164 
170 typedef enum SWI_TYPE_CarrierID
171 {
204 
211 {
222 
229 {
233 
240 {
241  SWI_HDR_MODE_NO_SERVICE = 0x00000000,
242  SWI_HDR_MODE_AMPS = 0x00000001,
243  SWI_HDR_MODE_CDMA = 0x00000002,
244  SWI_HDR_MODE_GSM = 0x00000003,
245  SWI_HDR_MODE_HDR = 0x00000004,
246  SWI_HDR_MODE_WCDMA = 0x00000005,
247  SWI_HDR_MODE_GPS = 0x00000006
249 
257 {
262 
266 
277 {
279  /* no data */
281 
292 {
294  /* no data */
296 
303 {
304  SWI_REV_UNKNOWN = 0x00ff,
305  SWI_REV_0 = 0x0000,
306  SWI_REV_A = 0x0001
308 
314 typedef struct SWI_STRUCT_MeidEsn
315 {
321 
325 
329 
333 
336 
340 
343 
345 
346 /* Below are from SwiApiExt.h */
347 /*
348  * TYPE DEFINITIONS
349  */
350 
357 {
359  SWI_GEN_FEATURE_ENH_GPS = 0x00000002,
360  SWI_GEN_FEATURE_ENH_LED = 0x00000004,
368  /*remaining bits reserved for future feature definitions... */
370 
376 typedef enum SWI_TYPE_LED_TYPE
377 {
389 
396 {
400 
401 #define SWI_MAX_LEDS 10
408 typedef struct SWI_STRUCT_LED_CFG_ENABLE
409 {
413 
419 typedef struct SWI_STRUCT_EFileInfo
420 {
426 
436 {
439 
444 
445 /* Function prototypes */
446 
447 SWI_API SWI_RCODE SwiSetEFile(const swi_charp pszEFilename,
448  swi_uint8* pBuffer,
449  swi_uint16 nBufLen,
450  swi_uint32 timeout);
451 
452 SWI_API SWI_RCODE SwiGetEFileInfo(const swi_charp pszEFilename,
453  SWI_STRUCT_EFileInfo* psEFileInfo,
454  swi_uint32 timeout);
455 
456 SWI_API SWI_RCODE SwiGetEFileBlock(const swi_charp pszEFilename,
457  swi_uint16 nSeq,
458  swi_uint8* pBuffer,
459  swi_uint16 nBufLen,
460  swi_uint32 *pnBlockSize,
461  swi_uint32 timeout);
462 
464  swi_uint32 nSize,
465  swi_uint32 timeout);
466 
469 
471  swi_uint32 timeout);
472 
474  swi_uint32 timeout);
475 
477  swi_uint32 timeout);
478 
480  swi_uint32 timeout);
481 
483  swi_uint32 BufferSize,
484  swi_uint32 timeout);
485 
487  swi_uint32 timeout);
488 
489 SWI_API SWI_RCODE SwiGetCarrierID(swi_int16* pnCarrierID, swi_uint32 timeout);
490 
492  swi_uint32 timeout);
493 
495  swi_uint16 *month,
496  swi_uint16 *day,
497  swi_uint16 *weekDay,
498  swi_uint16 *hour,
499  swi_uint16 *minute,
500  swi_uint16 *second,
501  swi_uint32 timeout);
502 
506 
507 SWI_API SWI_RCODE SwiGetNamInfo(swi_uint16 *cntNamProfile,
508  swi_uint16 *nextNamProfile,
509  swi_uint32 timeout);
510 
512  swi_uint32 timeout);
513 
515  swi_uint32 timeout);
516 
518  swi_uint32 timeout);
519 
521  swi_charp pszProvisioningData,
522  swi_uint32 length,
523  swi_uint32 timeout);
524 
526  swi_charp pszMIN,
527  swi_uint32 length,
528  swi_uint32 timeout);
529 
530 SWI_API SWI_RCODE SwiPstUnlock(swi_uint32 SubsidyLock, swi_uint32 timeout);
531 
533  const swi_charp pszMIN,
534  swi_uint32 timeout);
535 
537  swi_uint16 Nam,
538  swi_uint16* commitResult,
539  swi_uint16* failureMask,
540  swi_uint32 timeout);
541 
544 
546  swi_uint32 timeout);
547 
550 
551 SWI_API SWI_RCODE SwiLockModem(const swi_charp Password,
552  swi_uint16* pResponse,
553  swi_uint32 timeout);
554 
555 SWI_API SWI_RCODE SwiChangeLockPIN(const swi_charp OldPassword,
556  const swi_charp NewPassword,
557  swi_uint16* pResponse,
558  swi_uint32 timeout);
559 
560 SWI_API SWI_RCODE SwiGetERIVer(const swi_charp pszERIFilename,
561  swi_uint16* pnERIVer,
562  swi_uint32 timeout);
563 
566 
568  swi_uint16 mask,
569  swi_uint32 timeout);
570 
572  swi_uint16 *Accolc,
573  swi_uint32 timeout);
574 
576  swi_uint16 Accolc,
577  swi_uint32 timeout);
578 
580 
582  swi_uint8* pPRLBuffer,
583  swi_uint16 nPRLBufLen,
584  swi_uint32 timeout);
585 
587  swi_uint8* pPRLBuffer,
588  swi_uint16 nPRLBufLen,
589  swi_uint32 timeout);
590 
591 SWI_API SWI_RCODE SwiSetERI(swi_uint8* pERIBuffer,
592  swi_uint16 nERIBufLen,
593  swi_uint32 timeout);
594 
596  swi_uint32 timeout);
597 
599  swi_uint32 *IMSI,
600  swi_uint32 timeout);
601 
603  swi_uint32 Imsi_MS1,
604  swi_uint32 timeout);
605 
607  swi_uint16 *Imsi_MS2,
608  swi_uint32 timeout);
609 
611  swi_uint16 Imsi_MS2,
612  swi_uint32 timeout);
613 
615  swi_charp pszNamName,
616  swi_uint32 length,
617  swi_uint32 timeout);
618 
620  const swi_charp pszNamName,
621  swi_uint32 timeout);
622 
624  swi_uint16 *Mcc,
625  swi_uint32 timeout);
626 
628  swi_uint16 Mcc,
629  swi_uint32 timeout);
630 
632  swi_uint16 *Digits1112,
633  swi_uint32 timeout);
634 
636  swi_uint16 Digits1112,
637  swi_uint32 timeout);
638 
641 
643  SWI_STRUCT_Tech_Hdr_Mac_Index *pTechHdrMacIndex,
644  swi_uint32 timeout);
645 
648 
650  swi_uint32 timeout);
651 
653  swi_uint32 timeout);
654 
656  swi_uint32 timeout);
657 
659  swi_uint32 timeout);
660 
662  swi_uint32 timeout);
663 
665  swi_uint32 timeout);
666 
668  swi_uint32 timeout);
669 
671  swi_uint32 timeout);
672 
674  swi_uint32 timeout);
675 
676 
677 #ifdef __cplusplus
678 } /* extern "C" { */
679 #endif
680 
681 #endif /* __SWIAPICDMABASIC_H__ */
682 
683 /*
684  * $Log: SwiApiCdmaBasic.h,v $
685  */
686 

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