Debian Codegraph @

drivers/dahdi/voicebus/gpakenum.h

raw symbols SCIP
1 /*
2 * Copyright (c) 2005, Adaptive Digital Technologies, Inc.
3 *
4 * File Name: gpakenum.h
5 *
6 * Description:
7 * This file contains common enumerations related to G.PAK application
8 * software.
9 *
10 * Version: 1.0
11 *
12 * Revision History:
13 * 06/15/05 - Initial release.
14 *
15 * This program has been released under the terms of the GPL version 2 by
16 * permission of Adaptive Digital Technologies, Inc.
17 *
18 */
19
20 /*
21 * See http://www.asterisk.org for more information about
22 * the Asterisk project. Please do not directly contact
23 * any of the maintainers of this project for assistance;
24 * the project provides a web site, mailing lists and IRC
25 * channels for your use.
26 *
27 * This program is free software, distributed under the terms of
28 * the GNU General Public License Version 2 as published by the
29 * Free Software Foundation. See the LICENSE file included with
30 * this program for more details.
31 */
32
33 #ifndef _GPAKENUM_H /* prevent multiple inclusion */
34 #define _GPAKENUM_H
35
36 /* G.PAK Serial Port Word Size */
37 typedef enum
38 {
39 SerWordSize8 = 0, // 8-bit seial word
40 SerWordSize16 = 1 // 16-bit serial word
41 } GpakSerWordSize_t;
42
43 /* G.PAK Serial Port FrameSync Polarity */
44 typedef enum
45 {
46 FrameSyncActLow = 0, // active low frame sync signal
47 FrameSyncActHigh = 1 // active high frame sync signal
48 } GpakSerFrameSyncPol_t;
49
50 /* G.PAK Serial Port Clock Polarity */
51 typedef enum
52 {
53 SerClockActLow = 0, // active low serial clock
54 SerClockActHigh = 1 // active high serial clock
55 } GpakSerClockPol_t;
56
57 /* G.PAK Serial Port Data Delay */
58 typedef enum
59 {
60 DataDelay0 = 0, // no data delay
61 DataDelay1 = 1, // 1-bit data delay
62 DataDelay2 = 2 // 2-bit data delay
63 } GpakSerDataDelay_t;
64
65 /* G.PAK Serial Port Ids. */
66 typedef enum
67 {
68 SerialPortNull = 0, // null serial port
69 SerialPort1 = 1, // first PCM serial stream port (McBSP0)
70 SerialPort2 = 2, // second PCM serial stream port (McBSP1)
71 SerialPort3 = 3 // third PCM serial stream port (McBSP2)
72 } GpakSerialPort_t;
73
74 /* G.PAK serial port Slot Configuration selection codes. */
75 typedef enum
76 {
77 SlotCfgNone = 0, // no time slots used
78 SlotCfg2Groups = 2, // 2 groups of 16 time slots used, 32 Channels system
79 SlotCfg8Groups = 8 // 8-partition mode for 128-channel system
80 } GpakSlotCfg_t;
81
82 /* G.PAK serial port Companding Mode codes. */
83 typedef enum
84 {
85 cmpPCMU=0, // u-Law
86 cmpPCMA=1, // A-Law
87 cmpNone=2 // none
88 } GpakCompandModes;
89
90 /* G.PAK Active/Inactive selection codes. */
91 typedef enum
92 {
93 Disabled=0, // Inactive
94 Enabled=1 // Active
95 } GpakActivation;
96
97 /* G.PAK Channel Type codes. */
98 typedef enum
99 {
100 inactive=0, // channel inactive
101 tdmToTdm = 1, /* tdmToTdm */
102 tdmToTdmDebug = 2 /* tdmToTdm */
103 } GpakChanType;
104
105 /* G.PAK Algorithm control commands */
106 typedef enum
107 {
108 EnableEcanA = 0, // Enable A side echo canceller
109 BypassEcanA = 1, // Bypass A side echo canceller
110 ResetEcanA = 2, // Reset A side echo canceller
111 EnableEcanB = 3, // Enable B side echo canceller
112 BypassEcanB = 4, // Bypass B side echo canceller
113 ResetEcanB = 5, // Reset B side echo canceller
114
115 EnableMuLawSwCompanding = 6,// Enable Mu-law Software companding
116 EnableALawSwCompanding = 7, // Enable Mu-law Software companding
117 BypassSwCompanding = 8, // Bypass Software companding
118 EnableDTMFMuteA = 9, // Mute A side Dtmf digit after tone detected
119 DisableDTMFMuteA = 10, // Do not mute A side Dtmf digit once tone detected
120 EnableDTMFMuteB = 11, // Mute B side Dtmf digit after tone detected
121 DisableDTMFMuteB = 12, // Do not mute B side Dtmf digit once tone detected
122 EnableFaxCngDetectA = 13, // Enable A side Fax CNG detector, channel must be configed already
123 DisableFaxCngDetectA = 14, // Disable A side Fax CNG detector, channel must be configed already
124 EnableFaxCngDetectB = 15, // Enable B side Fax CNG detector, channel must be configed already
125 DisableFaxCngDetectB = 16 // Disable B side Fax CNG detector, channel must be configed already
126 } GpakAlgCtrl_t;
127
128 /* G.PAK Tone types. */
129 typedef enum
130 {
131 Null_tone = 0, // no tone detection
132 DTMF_tone = 1 // DTMF tone
133 } GpakToneTypes;
134
135 /* G.PAK direction. */
136 typedef enum
137 {
138 TDMAToB = 0, // A to B
139 TDMBToA = 1 // B to A
140 } GpakTdmDirection;
141
142
143 typedef enum
144 {
145 rate1ms=0,
146 rate2ms=1,
147 rate10ms=2
148 } GpakRate_t;
149
150 /* G.PAK Asynchronous Event Codes */
151 typedef enum
152 {
153 EventToneDetect = 0, // Tone detection event
154 EventDSPDebug = 7 // DSP debug data event
155 } GpakAsyncEventCode_t;
156
157 /* G.PAK MF Tone Code Indices */
158 typedef enum
159 {
160 DtmfDigit1 = 0, // DTMF Digit 1
161 DtmfDigit2 = 1, // DTMF Digit 2
162 DtmfDigit3 = 2, // DTMF Digit 3
163 DtmfDigitA = 3, // DTMF Digit A
164 DtmfDigit4 = 4, // DTMF Digit 4
165 DtmfDigit5 = 5, // DTMF Digit 5
166 DtmfDigit6 = 6, // DTMF Digit 6
167 DtmfDigitB = 7, // DTMF Digit B
168 DtmfDigit7 = 8, // DTMF Digit 7
169 DtmfDigit8 = 9, // DTMF Digit 8
170 DtmfDigit9 = 10, // DTMF Digit 9
171 DtmfDigitC = 11, // DTMF Digit C
172 DtmfDigitSt = 12, // DTMF Digit *
173 DtmfDigit0 = 13, // DTMF Digit 0
174 DtmfDigitPnd = 14, // DTMF Digit #
175 DtmfDigitD = 15, // DTMF Digit D
176
177 FaxCngDigit = 90, // Fax Calling Tone (1100 Hz)
178
179 EndofMFDigit = 100, // End of MF digit
180 EndofCngDigit = 101 // End of Cng Digit
181 } GpakToneCodes_t;
182
183 /* GPIO control code*/
184 typedef enum
185 {
186 GPIO_READ = 0,
187 GPIO_WRITE = 1,
188 GPIO_DIR = 2
189 } GpakGPIOCotrol_t;
190
191
192 #endif // end multiple inclusion