comparison src/g23m-aci/aci/cmh_l2r.h @ 1:d393cd9bb723

src/g23m-*: initial import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 04:40:46 +0000
parents
children
comparison
equal deleted inserted replaced
0:b6a5e36de839 1:d393cd9bb723
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-PS (6147)
4 | Modul : CMH_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 command handler of Layer 2 Relay
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef CMH_L2R_H
22 #define CMH_L2R_H
23
24 /*==== CONSTANTS ==================================================*/
25
26
27 /*==== TYPES ======================================================*/
28
29 typedef struct entL2rStatus /* entity status */
30 {
31 T_ACI_CMD_SRC entOwn; /* entity owner */
32 T_ACI_AT_CMD curCmd; /* current command processing */
33 BOOL isTempDisconnected;
34 } T_L2R_ENT_STAT;
35
36 /*==== PROTOTYPES =================================================*/
37
38 GLOBAL void cmhL2R_TRA_Enabled ( void );
39 GLOBAL void cmhL2R_Deactivated ( void );
40 GLOBAL void cmhTRA_Deactivated ( void );
41
42 #ifdef DTI
43 GLOBAL void cmhL2R_TRA_Disabled ( T_DTI_ENTITY_ID entityId);
44 #endif
45
46 GLOBAL void cmhL2R_Failure ( void );
47
48 GLOBAL SHORT cmhL2R_GetCompDir ( void );
49 GLOBAL UBYTE cmhL2R_SelCompDir ( T_L2R_CMD_PRM * pCmdPrm );
50 GLOBAL UBYTE cmhL2R_SelChnRate ( void );
51 GLOBAL T_ACI_RETURN cmhL2R_Activate ( T_ACI_CMD_SRC srcId,
52 T_ACI_AT_CMD cmdId,
53 SHORT cId );
54 GLOBAL T_ACI_RETURN cmhL2R_Deactivate ( void );
55 GLOBAL T_ACI_RETURN cmhTRA_Deactivate ( void );
56
57 #ifdef DTI
58 GLOBAL void cmhCC_L2R_or_TRA_Activated ( T_DTI_ENTITY_ID activated_module, SHORT cId );
59 #endif /* DTI */
60 GLOBAL void cmhCC_L2R_or_TRA_Deactivated ( SHORT cId );
61
62 #ifdef DTI
63 GLOBAL BOOL TRA_connect_dti_cb(UBYTE dti_id, T_DTI_CONN_STATE result_type);
64 GLOBAL BOOL L2R_connect_dti_cb(UBYTE dti_id, T_DTI_CONN_STATE result_type);
65 #endif /* DTI */
66
67
68 GLOBAL T_ACI_RETURN cmhL2R_Enable ( void );
69
70
71 /*==== EXPORT =====================================================*/
72 #ifdef CMH_L2RF_C
73
74 GLOBAL T_L2R_ENT_STAT l2rEntStat;
75
76 #else
77
78 EXTERN T_L2R_ENT_STAT l2rEntStat;
79
80 #endif /* CMH_L2RF_C */
81
82
83 #endif /* CMH_L2R_H */
84
85 /*==== EOF =======================================================*/
86