comparison src/aci2/aci/psa.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-PS (6147)
4 | Modul : PSA
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : Definitions for the protocol stack adapter
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef PSA_H
22 #define PSA_H
23
24 /*==== CONSTANTS ==================================================*/
25
26 #define OWN_ATI 1
27 typedef enum /* owner id's */
28 {
29 OWN_NONE = -1, /* no owner */
30 OWN_LCL = 0, /* local (MMI) */
31 #ifdef FF_ATI
32 OWN_ATI_1,
33 OWN_ATI_2,
34 OWN_ATI_3,
35 OWN_ATI_4,
36 #ifdef SIM_TOOLKIT
37 OWN_ATI_5, /* intended for SAT AT CMDS */
38 #endif /* SIM_TOOLKIT */
39 #ifdef _SIMULATION_
40 OWN_ATI_6, /* this one is needed for ACISAT251 ff. */
41 #endif /* _SIMULATION_ */
42 #endif /* FF_ATI */
43 NO_VLD_OWN, /* not a valid owner */
44 OWN_SAT, /* SIM application toolkit */
45 OWN_MAX /* maximum owners */
46 } T_OWN;
47
48 /*==== TYPES ======================================================*/
49 typedef struct
50 {
51 CHAR num[MAX_DIAL_LEN]; /* party number/dial string */
52 UBYTE ton; /* type of number */
53 UBYTE npi; /* numbering plan */
54 CHAR sub[MAX_SUBADDR_LEN]; /* party subaddress */
55 UBYTE tos; /* type of subaddress */
56 UBYTE oe; /* odd/even indicator */
57 } T_CLPTY_PRM;
58
59 #ifdef GPRS
60 /*
61 * !!! ATTENTION !!!
62 * This struct will be writed in one block to the FFS.
63 * So the position of the variables can not be changed!
64 */
65 typedef struct
66 { /* default values */
67 UBYTE max_cid; /* 2 */
68 UBYTE auto_attach; /* manual mode */
69 UBYTE auto_detach; /* mode off */
70 UBYTE default_mobile_class; /* BG */
71 UBYTE accm ; /* 0 (async control character map) */
72 UBYTE restart_timer; /* 3 */
73 UBYTE max_configure; /* 10 */
74 UBYTE max_terminate; /* 2 */
75 UBYTE max_failure; /* 5 */
76
77 } T_FFS_GPRS_ACI;
78 #endif /* GPRS */
79
80 /*==== PROTOTYPES =================================================*/
81 EXTERN BOOL psa_IsVldOwnId ( T_OWN ownId );
82 EXTERN UBYTE psa_timeout ( USHORT handle );
83
84 #ifdef GPRS
85 EXTERN void psa_GPRSInit ( void );
86 #endif /* GPRS */
87
88 /*==== EXPORT =====================================================*/
89
90 #endif /* PSA_H */
91
92 /*==== EOF ========================================================*/
93