FreeCalypso > hg > fc-magnetite
comparison src/aci2/aci/cmh_ra.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 : CMH_RA | |
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 Rate Adaptation | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 | |
21 #ifndef CMH_RA_H | |
22 #define CMH_RA_H | |
23 | |
24 /*==== CONSTANTS ==================================================*/ | |
25 | |
26 | |
27 /*==== TYPES ======================================================*/ | |
28 | |
29 typedef struct entRaStatus /* 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_RA_ENT_STAT; | |
35 | |
36 /*==== PROTOTYPES =================================================*/ | |
37 EXTERN void cmhRA_Deactivated( SHORT cId ); | |
38 EXTERN void cmhRA_Activated ( SHORT cId ); | |
39 EXTERN UBYTE cmhRA_SelTrfProt ( SHORT cId ); | |
40 EXTERN UBYTE cmhRA_SelChnRate ( void ); | |
41 EXTERN UBYTE cmhRA_SelUsrRate ( SHORT cId ); | |
42 EXTERN UBYTE cmhRA_SelDataBits( SHORT cId ); | |
43 EXTERN UBYTE cmhRA_SelStopBits( SHORT cId ); | |
44 EXTERN T_ACI_RETURN cmhRA_Activate ( T_ACI_CMD_SRC srcId, | |
45 T_ACI_AT_CMD cmdId, | |
46 SHORT cId ); | |
47 EXTERN T_ACI_RETURN cmhRA_Deactivate ( void ); | |
48 EXTERN T_ACI_RETURN cmhRA_SendBreak ( T_ACI_CMD_SRC srcId, | |
49 USHORT break_len); | |
50 EXTERN T_ACI_RETURN cmhRA_Escape ( void ); | |
51 | |
52 #ifdef FF_FAX | |
53 EXTERN UBYTE cmhRA_SelBitOrder( T_ACI_CMD_SRC srcId ); | |
54 EXTERN T_ACI_RETURN cmhRA_Modify ( T_ACI_CMD_SRC srcId, | |
55 SHORT cId ); | |
56 #endif /* FF_FAX */ | |
57 | |
58 /*==== EXPORT =====================================================*/ | |
59 | |
60 /* FAX_AND_DATA related Command Parameters... moved from cmh.h */ | |
61 | |
62 typedef struct l2rCmdPrm /* command parameters related to L2R */ | |
63 { | |
64 USHORT CRLPiws; | |
65 USHORT CRLPmws; | |
66 USHORT CRLPt1; | |
67 USHORT CRLPn2; | |
68 T_ACI_DS_DIR DSdir; | |
69 T_ACI_DS_COMP DScomp; | |
70 LONG DSmaxDict; | |
71 SHORT DSmaxStr; | |
72 } T_L2R_CMD_PRM; | |
73 | |
74 #ifdef FF_FAX | |
75 | |
76 typedef struct t30CmdPrm /* command parameters related to T30 */ | |
77 { | |
78 T_ACI_FCLASS_CLASS FCLASSclass; | |
79 T_ACI_FCR_VAL FCRval; | |
80 T_ACI_F_VR FCCvr; | |
81 T_ACI_F_BR FCCbr; | |
82 T_ACI_F_WD FCCwd; | |
83 T_ACI_F_LN FCCln; | |
84 T_ACI_F_DF FCCdf; | |
85 T_ACI_F_EC FCCec; | |
86 T_ACI_F_BF FCCbf; | |
87 T_ACI_F_ST FCCst; | |
88 T_ACI_F_JP FCCjp; | |
89 T_ACI_F_VR FISvr; | |
90 T_ACI_F_BR FISbr; | |
91 T_ACI_F_WD FISwd; | |
92 T_ACI_F_LN FISln; | |
93 T_ACI_F_DF FISdf; | |
94 T_ACI_F_EC FISec; | |
95 T_ACI_F_BF FISbf; | |
96 T_ACI_F_ST FISst; | |
97 T_ACI_F_JP FISjp; | |
98 CHAR FLIstr[MAX_ID_CHAR]; | |
99 CHAR FPIstr[MAX_ID_CHAR]; | |
100 T_ACI_FLP_VAL FLPval; | |
101 T_ACI_FAP_VAL FAPsub; | |
102 T_ACI_FAP_VAL FAPsep; | |
103 T_ACI_FAP_VAL FAPpwd; | |
104 CHAR FSAsub[MAX_ID_CHAR]; | |
105 CHAR FPAsep[MAX_ID_CHAR]; | |
106 CHAR FPWpwd[MAX_ID_CHAR]; | |
107 UBYTE FNSoct[MAX_NSF_BYTE]; | |
108 UBYTE FNSlen; | |
109 T_ACI_FCQ_RQ FCQrq; | |
110 T_ACI_F_BR FMSbr; | |
111 T_ACI_FPS_PPR FPSppr; | |
112 T_ACI_FSP_VAL FSPval; | |
113 T_ACI_FIE_VAL FIEval; | |
114 T_ACI_FIT_ACT FITact; | |
115 LONG FITtime; | |
116 T_ACI_FBO_VAL FBOval; | |
117 | |
118 } T_T30_CMD_PRM; | |
119 | |
120 #endif /* FF_FAX */ | |
121 | |
122 typedef struct fnd_cmhCmdPrm /* fax_n_data handler command parameter */ | |
123 { | |
124 T_L2R_CMD_PRM l2rCmdPrm; | |
125 #ifdef FF_FAX | |
126 T_T30_CMD_PRM t30CmdPrm; | |
127 #endif | |
128 } FND_T_CMH_PRM; | |
129 | |
130 | |
131 #ifdef CMH_RAF_C | |
132 | |
133 GLOBAL T_RA_ENT_STAT raEntStat; | |
134 GLOBAL FND_T_CMH_PRM fnd_cmhPrm[CMD_SRC_MAX]; | |
135 #else | |
136 | |
137 EXTERN T_RA_ENT_STAT raEntStat; | |
138 EXTERN FND_T_CMH_PRM fnd_cmhPrm[CMD_SRC_MAX]; | |
139 #endif /* CMH_RAF_C */ | |
140 | |
141 #endif /* CMH_RA_H */ | |
142 | |
143 /*==== EOF =======================================================*/ |