Debian Codegraph @

drivers/dahdi/voicebus/gpakErrs.h

raw symbols SCIP
1 /*
2 * Copyright (c) 2002 - 2004, Adaptive Digital Technologies, Inc.
3 *
4 * File Name: GpakErrs.h
5 *
6 * Description:
7 * This file contains DSP reply status codes used by G.PAK API functions to
8 * indicate specific errors.
9 *
10 * Version: 1.0
11 *
12 * Revision History:
13 * 10/17/01 - Initial release.
14 * 07/03/02 - Updates for conferencing.
15 * 06/15/04 - Tone type updates.
16 *
17 * This program has been released under the terms of the GPL version 2 by
18 * permission of Adaptive Digital Technologies, Inc.
19 */
20
21 /*
22 * See http://www.asterisk.org for more information about
23 * the Asterisk project. Please do not directly contact
24 * any of the maintainers of this project for assistance;
25 * the project provides a web site, mailing lists and IRC
26 * channels for your use.
27 *
28 * This program is free software, distributed under the terms of
29 * the GNU General Public License Version 2 as published by the
30 * Free Software Foundation. See the LICENSE file included with
31 * this program for more details.
32 */
33
34 #ifndef _GPAKERRS_H /* prevent multiple inclusion */
35 #define _GPAKERRS_H
36
37 /* Configure Serial Ports reply status codes. */
38 typedef enum
39 {
40 Pc_Success = 0, /* serial ports configured successfully */
41 Pc_ChannelsActive = 1, /* unable to configure while channels active */
42 Pc_TooManySlots1 = 2, /* too many slots selected for port 1 */
43 Pc_InvalidBlockCombo1 = 3, /* invalid combination of blocks for port 1 */
44 Pc_NoSlots1 = 4, /* no slots selected for port 1 */
45 Pc_InvalidSlots1 = 5, /* invalid slot (> max) selected for port 1 */
46 Pc_TooManySlots2 = 6, /* too many slots selected for port 2 */
47 Pc_InvalidBlockCombo2 = 7, /* invalid combination of blocks for port 2 */
48 Pc_NoSlots2 = 8, /* no slots selected for port 2 */
49 Pc_InvalidSlots2 = 9, /* invalid slot (> max) selected for port 2 */
50 Pc_TooManySlots3 = 10, /* too many slots selected for port 3 */
51 Pc_InvalidBlockCombo3 = 11, /* invalid combination of blocks for port 3 */
52 Pc_NoSlots3 = 12, /* no slots selected for port 3 */
53 Pc_InvalidSlots3 = 13 /* invalid slot (> max) selected for port 3 */
54 } GPAK_PortConfigStat_t;
55
56 /* Configure Channel reply status codes. */
57 typedef enum
58 {
59 Cc_Success = 0, /* channel configured successfully */
60 Cc_InvalidChannelType = 1, /* invalid Channel Type */
61 Cc_InvalidChannel = 2, /* invalid Channel A Id */
62 Cc_ChannelActiveA = 3, /* Channel A is currently active */
63 Cc_InvalidInputPortA = 4, /* invalid Input A Port */
64 Cc_InvalidInputSlotA = 5, /* invalid Input A Slot */
65 Cc_BusyInputSlotA = 6, /* busy Input A Slot */
66 Cc_InvalidOutputPortA = 7, /* invalid Output A Port */
67 Cc_InvalidOutputSlotA = 8, /* invalid Output A Slot */
68 Cc_BusyOutputSlotA = 9, /* busy Output A Slot */
69 Cc_InvalidInputPortB = 10, /* invalid Input B Port */
70 Cc_InvalidInputSlotB = 11, /* invalid Input B Slot */
71 Cc_BusyInputSlotB = 12, /* busy Input B Slot */
72 Cc_InvalidPktInCodingA = 13, /* invalid Packet In A Coding */
73 Cc_InvalidPktOutCodingA = 14, /* invalid Packet Out A Coding */
74 Cc_InvalidPktInSizeA = 15, /* invalid Packet In A Frame Size */
75 Cc_InvalidPktOutSizeA = 16, /* invalid Packet Out A Frame Size */
76
77 Cc_ChanTypeNotConfigured = 21, /* channel type was not configured */
78 Cc_InsuffECResources = 22, /* insufficient ecan resources avail. */
79 Cc_InsuffTDMResources = 23, /* insufficient tdm block resources avail. */
80
81 Cc_InsuffPktBufResources = 25, /* insufficient pkt buffer resources avail. */
82 Cc_InsuffPcmBufResources = 26, /* insufficient pcm buffer resources avail. */
83
84 Cc_BadPcmEcNlpType = 30, /* invalid EC Nlp type */
85 Cc_BadPcmEcTapLength = 31, /* invalid EC tap length */
86 Cc_BadPcmEcDblTalkThresh = 32, /* invalid EC double-talk threshold */
87 Cc_BadPcmEcNlpThreshold = 33, /* invalid EC Nlp threshold */
88 Cc_BadPcmEcCngThreshold = 34, /* invalid EC Cng threshold */
89 Cc_BadPcmEcAdaptLimit = 35, /* invalid EC Adapt Limit */
90 Cc_BadPcmEcCrossCorrLim = 36, /* invalid EC Cross Correlation Limit */
91 Cc_BadPcmEcNumFirSegs = 37, /* invalid EC Number of FirSegments */
92 Cc_BadPcmEcFirSegLen = 38, /* invalid EC Fir Segment Length */
93
94 /*Cc_InvalidNumEcsEnabled = 48, */ /* more than 1 Ec enabled on channel */
95 Cc_InvalidFrameRate = 49, /* invalid gpak frame rate */
96 Cc_InvalidSoftCompand = 50, /* invalid softCompanding type */
97
98 Cc_InvalidMuteToneA = 51, /* invalid MuteToneA set, no detector */
99 Cc_InvalidMuteToneB = 52, /* invalid MuteToneB set, no detector */
100 Cc_InsuffFaxCngDetResources = 53, /* insufficient tdm block resources avail. */
101 Cc_PortDmaNotStarted = 54, /* SerialPort not ready */
102 Cc_ChannelDebugActive = 55, /* Debug Channel is not active */
103 Cc_ChannelDebugEnabled = 56 /* Channel already been debugged */
104 } GPAK_ChannelConfigStat_t;
105
106 /* Tear Down Channel reply status codes. */
107 typedef enum
108 {
109 Td_Success = 0, /* channel torn down successfully */
110 Td_InvalidChannel = 1, /* invalid Channel Id */
111 Td_ChannelNotActive = 2 /* channel is not active */
112 } GPAK_TearDownChanStat_t;
113
114
115 typedef enum
116 {
117 Ac_Success = 0, /* algorithm control is successfull */
118 Ac_InvalidChannel = 1, /* invalid channel identifier */
119 Ac_InvalidCode = 2, /* invalid algorithm control code */
120 Ac_ECNotEnabled = 3, /* echo canceller was not allocated */
121 Ac_InvalidSoftComp = 4, /* invalid softcompanding, 'cause serial port not in companding mode */
122 Ac_InvalidDTMFMuteA = 5, /* A side invalid Mute, since no dtmf detector */
123 Ac_InvalidDTMFMuteB = 6, /* B side invalid Mute, since no dtmf detector */
124 Ac_InvalidFaxCngA = 7, /* A side FAXCNG detector not available */
125 Ac_InvalidFaxCngB = 8, /* B side FAXCNG detector not available */
126 Ac_InvalidSysConfig = 9 /* No new system parameters (DTMF config) wrriten yet */
127 } GPAK_AlgControlStat_t;
128
129 /* Write System Parameters reply status codes. */
130 typedef enum
131 {
132 Sp_Success = 0, /* System Parameters written successfully */
133 Sp_BadTwistThresh = 29 /* invalid twist threshold */
134
135 } GPAK_SysParmsStat_t;
136
137 #endif /* prevent multiple inclusion */
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156