[Asterisk-cvs] zaptel wcte11xp.c,1.10,1.11
mattf at lists.digium.com
mattf at lists.digium.com
Sun Apr 3 00:20:00 CST 2005
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv11600
Modified Files:
wcte11xp.c
Log Message:
J1 mode changes
Index: wcte11xp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wcte11xp.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- wcte11xp.c 21 Mar 2005 05:14:11 -0000 1.10
+++ wcte11xp.c 3 Apr 2005 06:13:01 -0000 1.11
@@ -178,6 +178,7 @@
#define CANARY 0xca1e
static int debug = 0; /* doesnt do anything */
+static int j1mode = 0;
static int alarmdebounce = 0;
static int loopback = 0;
static int clockextra = 0;
@@ -699,7 +700,13 @@
fmr2 = 0x22; /* FMR2: no payload loopback, auto send yellow alarm */
if (loopback)
fmr2 |= 0x4;
- fmr4 = 0x0c; /* FMR4: Lose sync on 2 out of 5 framing bits, auto resync */
+
+ if (j1mode)
+ fmr4 = 0x1c;
+ else
+ fmr4 = 0x0c; /* FMR4: Lose sync on 2 out of 5 framing bits, auto resync */
+
+
lim2 = 0x21; /* LIM2: 50% peak is a "1", Advanced Loss recovery */
lim2 |= (mytxlevel << 6); /* LIM2: Add line buildout */
__t1_framer_out(wc, 0x1d, fmr1);
@@ -721,6 +728,7 @@
fmr2 |= 0xc0;
}
__t1_framer_out(wc, 0x1c, fmr0);
+
__t1_framer_out(wc, 0x20, fmr4);
__t1_framer_out(wc, 0x21, 0x40); /* FMR5: Enable RBS mode */
@@ -733,6 +741,9 @@
__t1_framer_out(wc, 0x3a, lim2); /* LIM2: 50% peak amplitude is a "1" */
__t1_framer_out(wc, 0x38, 0x0a); /* PCD: LOS after 176 consecutive "zeros" */
__t1_framer_out(wc, 0x39, 0x15); /* PCR: 22 "ones" clear LOS */
+
+ if (j1mode)
+ __t1_framer_out(wc, 0x24, 0x80); /* J1 overide */
/* Generate pulse mask for T1 */
switch(mytxlevel) {
@@ -1570,12 +1581,14 @@
module_param(t1e1override, int, 0600);
module_param(clockextra, int, 0600);
module_param(debug, int, 0600);
+module_param(j1mode, int, 0600);
#else
MODULE_PARM(alarmdebounce, "i");
MODULE_PARM(loopback, "i");
MODULE_PARM(t1e1override, "i");
MODULE_PARM(clockextra, "i");
MODULE_PARM(debug, "i");
+MODULE_PARM(j1mode, "i");
#endif
MODULE_DESCRIPTION("Wildcard T100P/E100P Zaptel Driver");
MODULE_AUTHOR("Mark Spencer <markster at linux-support.net>");
More information about the svn-commits
mailing list