[Asterisk-cvs] zaptel fxotune.h,NONE,1.1
mattf at lists.digium.com
mattf at lists.digium.com
Fri Jan 7 18:01:11 CST 2005
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv2161
Added Files:
fxotune.h
Log Message:
Adding a new file for the fxotune program
--- NEW FILE: fxotune.h ---
/*
* This file and contents thereof are distributed under the terms of the
* Gnu Public License version 2. For terms and conditions of this license
* see http://www.gnu.org
*
* fxotune.h -- data structures and associated definitions for fxotune.c
*
* By Matthew Fredrickson <creslin at digium.com>
*
* Echo coefficients and acim register values taken from AN84 from Silicon
* Laboratories
*
* (C) 2005 Digium, Inc.
*/
#include "wctdm.h"
struct wctdm_echo_coefs echo_trys [] =
{
/* 600 ohm echo settings */
{ 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 10, 0, 6, 1, 254, 2, 255, 0, 0},
{ 3, 255, 255, 0, 1, 0, 0, 0, 0},
{ 3, 1, 253, 253, 2, 255, 0, 0, 0},
{ 9, 254, 251, 255, 2, 0, 1, 0, 0},
{ 5, 3, 251, 250, 2, 254, 0, 0, 255},
{ 8, 253, 2, 244, 255, 10, 244, 3, 253},
{ 10, 249, 244, 8, 12, 245, 252, 0, 1},
/* 900 ohm echo settings */
{ 1, 0, 0, 0, 0, 0, 0, 0, 0},
{ 10, 252, 255, 1, 255, 0, 0, 0, 0},
{ 7, 255, 251, 251, 2, 255, 255, 1, 255},
{ 3, 1, 251, 250, 1, 254, 255, 0, 255},
{ 5, 252, 250, 0, 0, 255, 1, 0, 0},
{ 5, 3, 251, 250, 1, 253, 0, 0, 255},
{ 8, 253, 2, 244, 255, 10, 244, 3, 253},
{ 10, 249, 244, 8, 12, 245, 252, 0, 1},
/* 270 ohm + (750 ohm || 150 nF) (CTR21) */
{ 2, 0, 0, 0, 0, 0, 0, 0, 0},
{ 7, 0, 0, 255, 254, 0, 0, 0, 0},
{ 9, 0, 253, 254, 2, 255, 0, 0, 0},
{ 5, 1, 249, 254, 4, 253, 1, 0, 0},
{ 5, 252, 250, 1, 1, 254, 0, 255, 0},
{ 5, 3, 251, 250, 2, 253, 255, 255, 255},
{ 8, 253, 2, 244, 255, 10, 244, 3, 253},
{ 10, 249, 244, 8, 12, 245, 252, 0, 1},
/* 220 ohm + (820 ohm || 120 nF) (Australia/NewZealand) and 220 ohm + (820 ohm
* || 115nF) (Slovakia/SAfrica/Germany/Austria/Bulgaria)
*/
{ 3, 0, 0, 0, 0, 0, 0, 0, 0},
{ 7, 0, 255, 254, 255, 0, 255, 0, 0},
{ 9, 0, 253, 253, 1, 255, 0, 0, 0},
{ 5, 1, 249, 254, 3, 253, 1, 0, 0},
{ 5, 252, 250, 1, 1, 254, 0, 255, 0},
{ 5, 3, 251, 251, 2, 253, 255, 255, 255},
{ 8, 253, 2, 244, 255, 10, 244, 3, 253},
{ 10, 249, 244, 8, 12, 245, 252, 0, 1},
/* 370 ohm + (620ohm || 310nF) (New Zealand #2/India) CO Termination */
{ 4, 0, 0, 0, 0, 0, 0, 0, 0},
{ 9, 255, 1, 4, 0, 0, 1, 255, 0},
{ 9, 0, 253, 0, 3, 254, 0, 0, 255},
{ 9, 2, 250, 253, 5, 253, 1, 0 ,255},
{ 5, 252, 250, 1, 2, 255, 0 ,255, 0},
{ 5, 3, 251, 250, 3, 254, 255, 255, 255},
{ 8, 253, 2, 244, 255, 10, 244, 3, 253},
{ 10, 249, 244, 8, 12, 245, 252, 0, 1},
/* 320 ohm + (1050ohm || 230 nF) (England) CO Termination */
{ 5, 0, 0, 0, 0, 0, 0, 0, 0},
{ 9, 0 ,255, 1, 255, 255, 0, 255, 0},
{ 5, 255, 252, 0, 2, 254, 0, 255, 255},
{ 9, 2, 250, 253, 4, 252, 0, 255, 255},
{ 5, 252, 250, 1, 1, 254, 0 ,255, 255},
{ 5, 3, 251, 250, 2, 253, 255, 255, 254},
{ 3, 1, 1, 242, 2, 9, 245, 3, 253},
{ 10, 249, 244, 8, 12, 245, 252, 0, 1},
/* 370 ohm + (820 ohm || 110 nF) CO Termination */
{ 6, 0, 0, 0, 0, 0, 0, 0, 0},
{ 6, 1, 254, 253, 0, 255, 0, 0, 0},
{ 9, 0, 251, 252, 2, 255, 0, 0, 0},
{ 5, 1, 248, 252, 4, 253, 1, 0, 0},
{ 5, 252, 250, 0, 0, 254, 0 , 255, 0},
{ 5, 3, 251, 250, 2, 253, 255, 255, 254},
{ 3, 1, 1, 242, 2, 9, 245, 3, 253},
{ 10, 249, 244, 8, 12, 245, 252, 0, 1},
/* 275 ohm + (780 ohm || 115 nF) CO Termination */
{ 7, 0, 0, 0, 0, 0, 0, 0, 0},
{ 7, 255, 255, 255, 255, 0, 0, 0, 0},
{ 9, 0, 253, 254, 2, 255, 0, 0, 0},
{ 5, 1, 249, 254, 4, 253, 1, 0, 0},
{ 5, 252, 250, 1, 1, 254, 0, 255, 0},
{ 5, 3, 251, 250, 2, 253, 255, 255, 255},
{ 8, 253, 2, 244, 255, 10, 244, 3, 253},
{ 10, 249, 244, 8, 12, 245, 252, 0, 1},
};
More information about the svn-commits
mailing list