spandsp: modem_echo.h Source File

spandsp 0.0.6

private/modem_echo.h
Go to the documentation of this file.
1/*
2 * SpanDSP - a series of DSP components for telephony
3 *
4 * private/modem_echo.h - An echo cancellor, suitable for electrical echos in GSTN modems
5 *
6 * Written by Steve Underwood <steveu@coppice.org>
7 *
8 * Copyright (C) 2001, 2004 Steve Underwood
9 *
10 * Based on a bit from here, a bit from there, eye of toad,
11 * ear of bat, etc - plus, of course, my own 2 cents.
12 *
13 * All rights reserved.
14 *
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 2.1,
17 * as published by the Free Software Foundation.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License for more details.
23 *
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with this program; if not, write to the Free Software
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 */
28
29/*! \file */
30
31#if !defined(_SPANDSP_PRIVATE_MODEM_ECHO_H_)
32#define _SPANDSP_PRIVATE_MODEM_ECHO_H_
33
34/*!
35 Modem line echo canceller descriptor. This defines the working state for a line
36 echo canceller.
37*/
38 struct modem_echo_can_state_s
39{
40 int adapt;
41 int taps;
42
43 fir16_state_t fir_state;
44 /*! Echo FIR taps (16 bit version) */
45 int16_t *fir_taps16;
46 /*! Echo FIR taps (32 bit version) */
47 int32_t *fir_taps32;
48
49 int tx_power;
50 int rx_power;
51
52 int curr_pos;
53};
54
55#endif
56/*- End of file ------------------------------------------------------------*/
fir16_state_t
Definition fir.h:46
modem_echo_can_state_s
Definition private/modem_echo.h:39
modem_echo_can_state_s::fir_taps16
int16_t * fir_taps16
Definition private/modem_echo.h:45
modem_echo_can_state_s::fir_taps32
int32_t * fir_taps32
Definition private/modem_echo.h:47