2
* Copyright (c) 2005, Adaptive Digital Technologies, Inc.
4
* File Name: gpakenum.h
7
* This file contains common enumerations related to G.PAK application
13
* 06/15/05 - Initial release.
15
* This program has been released under the terms of the GPL version 2 by
16
* permission of Adaptive Digital Technologies, Inc.
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.
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.
33
#ifndef _GPAKENUM_H /* prevent multiple inclusion */
36
/* G.PAK Serial Port Word Size */
39
SerWordSize8 = 0, // 8-bit seial word
40
SerWordSize16 = 1 // 16-bit serial word
43
/* G.PAK Serial Port FrameSync Polarity */
46
FrameSyncActLow = 0, // active low frame sync signal
47
FrameSyncActHigh = 1 // active high frame sync signal
48
} GpakSerFrameSyncPol_t;
50
/* G.PAK Serial Port Clock Polarity */
53
SerClockActLow = 0, // active low serial clock
54
SerClockActHigh = 1 // active high serial clock
57
/* G.PAK Serial Port Data Delay */
60
DataDelay0 = 0, // no data delay
61
DataDelay1 = 1, // 1-bit data delay
62
DataDelay2 = 2 // 2-bit data delay
65
/* G.PAK Serial Port Ids. */
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)
74
/* G.PAK serial port Slot Configuration selection codes. */
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
82
/* G.PAK serial port Companding Mode codes. */
90
/* G.PAK Active/Inactive selection codes. */
93
Disabled=0, // Inactive
97
/* G.PAK Channel Type codes. */
100
inactive=0, // channel inactive
101
tdmToTdm=1 // tdmToTdm
104
/* G.PAK Algorithm control commands */
107
EnableEcanA = 0, // Enable A side echo canceller
108
BypassEcanA = 1, // Bypass A side echo canceller
109
ResetEcanA = 2, // Reset A side echo canceller
110
EnableEcanB = 3, // Enable B side echo canceller
111
BypassEcanB = 4, // Bypass B side echo canceller
112
ResetEcanB = 5, // Reset B side echo canceller
114
EnableMuLawSwCompanding = 6,// Enable Mu-law Software companding
115
EnableALawSwCompanding = 7, // Enable Mu-law Software companding
116
BypassSwCompanding = 8, // Bypass Software companding
117
EnableDTMFMuteA = 9, // Mute A side Dtmf digit after tone detected
118
DisableDTMFMuteA = 10, // Do not mute A side Dtmf digit once tone detected
119
EnableDTMFMuteB = 11, // Mute B side Dtmf digit after tone detected
120
DisableDTMFMuteB = 12, // Do not mute B side Dtmf digit once tone detected
121
EnableFaxCngDetectA = 13, // Enable A side Fax CNG detector, channel must be configed already
122
DisableFaxCngDetectA = 14, // Disable A side Fax CNG detector, channel must be configed already
123
EnableFaxCngDetectB = 15, // Enable B side Fax CNG detector, channel must be configed already
124
DisableFaxCngDetectB = 16 // Disable B side Fax CNG detector, channel must be configed already
127
/* G.PAK Tone types. */
130
Null_tone = 0, // no tone detection
131
DTMF_tone = 1 // DTMF tone
134
/* G.PAK direction. */
137
TDMAToB = 0, // A to B
138
TDMBToA = 1 // B to A
149
/* G.PAK Asynchronous Event Codes */
152
EventToneDetect = 0, // Tone detection event
153
EventDSPDebug = 7 // DSP debug data event
154
} GpakAsyncEventCode_t;
156
/* G.PAK MF Tone Code Indices */
159
DtmfDigit1 = 0, // DTMF Digit 1
160
DtmfDigit2 = 1, // DTMF Digit 2
161
DtmfDigit3 = 2, // DTMF Digit 3
162
DtmfDigitA = 3, // DTMF Digit A
163
DtmfDigit4 = 4, // DTMF Digit 4
164
DtmfDigit5 = 5, // DTMF Digit 5
165
DtmfDigit6 = 6, // DTMF Digit 6
166
DtmfDigitB = 7, // DTMF Digit B
167
DtmfDigit7 = 8, // DTMF Digit 7
168
DtmfDigit8 = 9, // DTMF Digit 8
169
DtmfDigit9 = 10, // DTMF Digit 9
170
DtmfDigitC = 11, // DTMF Digit C
171
DtmfDigitSt = 12, // DTMF Digit *
172
DtmfDigit0 = 13, // DTMF Digit 0
173
DtmfDigitPnd = 14, // DTMF Digit #
174
DtmfDigitD = 15, // DTMF Digit D
176
FaxCngDigit = 90, // Fax Calling Tone (1100 Hz)
178
EndofMFDigit = 100, // End of MF digit
179
EndofCngDigit = 101 // End of Cng Digit
182
/* GPIO control code*/
191
#endif // end multiple inclusion