FreeCalypso > hg > fc-tourmaline
comparison src/g23m-aci/aci/psa_l2r.h @ 1:fa8dc04885d8
src/g23m-*: import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:25:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:4e78acac3d88 | 1:fa8dc04885d8 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : GSM-PS (6147) | |
4 | Modul : PSA_L2R | |
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 | Layer 2 Relay ( L2R ) | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 | |
22 #ifndef PSA_L2R_H | |
23 #define PSA_L2R_H | |
24 | |
25 /*==== CONSTANTS ==================================================*/ | |
26 | |
27 typedef enum | |
28 { | |
29 L2R_DEACTIVATED = 0, | |
30 L2R_ACTIVATE, | |
31 L2R_CONNECT, | |
32 L2R_CONNECTED, | |
33 L2R_ENABLE, | |
34 L2R_ENABLED, | |
35 // L2R_DISABLE, | |
36 L2R_DETACH, | |
37 L2R_DISCONNECT, | |
38 L2R_DEACTIVATE, | |
39 L2R_ESCAPE | |
40 } T_L2R_STATE; | |
41 | |
42 | |
43 /*==== TYPES ======================================================*/ | |
44 | |
45 typedef struct | |
46 { | |
47 UBYTE rlp_vers; /* L2R_XID_IND */ | |
48 USHORT k_ms_iwf; /* L2R_ACTIVATE_REQ, L2R_XID_IND */ | |
49 USHORT k_iwf_ms; | |
50 UBYTE t1; | |
51 UBYTE t2; | |
52 UBYTE n2; | |
53 UBYTE pt; | |
54 UBYTE p0; | |
55 USHORT p1; | |
56 UBYTE p2; | |
57 UBYTE uil2p; | |
58 UBYTE rate; | |
59 USHORT err_cause; /* L2R_ERROR_IND */ | |
60 ULONG error_rate; /* L2R_STATISTIC_IND */ | |
61 USHORT reset; /* L2R_RESET_IND */ | |
62 } T_L2R_SET_PRM; | |
63 | |
64 typedef struct L2RShrdParm | |
65 { | |
66 UBYTE owner; | |
67 UBYTE state; | |
68 UBYTE uart_conn; | |
69 T_L2R_SET_PRM set_prm[OWN_SRC_MAX]; | |
70 T_L2R_SET_PRM set_prm_use; | |
71 } T_L2R_SHRD_PRM; | |
72 | |
73 typedef struct L2RTstPrmRef | |
74 { | |
75 const char * key; /* keyword string */ | |
76 UBYTE id; /* corresponding id */ | |
77 } L2R_TSTPRM_REF; | |
78 | |
79 /*==== PROTOTYPES =================================================*/ | |
80 | |
81 #ifdef DTI | |
82 GLOBAL SHORT psaL2R_Enable( T_DTI_CONN_LINK_ID link_id, UBYTE peer ); | |
83 #endif /* DTI */ | |
84 | |
85 GLOBAL SHORT psaL2R_Activate( UBYTE srcId ); | |
86 GLOBAL SHORT psaL2R_Deactivate( void ); | |
87 void psaL2R_Init (void); | |
88 | |
89 GLOBAL SHORT psaL2R_ESC( UBYTE src_id ); | |
90 | |
91 /*==== EXPORT =====================================================*/ | |
92 | |
93 #ifdef PSA_L2RF_C | |
94 | |
95 GLOBAL T_L2R_SHRD_PRM l2rShrdPrm; | |
96 | |
97 #else | |
98 | |
99 EXTERN T_L2R_SHRD_PRM l2rShrdPrm; | |
100 | |
101 #endif /* PSA_L2RF_C */ | |
102 | |
103 | |
104 #endif /* PSA_L2R_H */ | |
105 | |
106 /*==== EOF =======================================================*/ | |
107 |