summaryrefslogtreecommitdiff
path: root/wcte12xp/GpakApi.c
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-04-04 15:59:39 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-04-04 15:59:39 +0000
commita4fe9246698c4dd4b060236cfed88c1fc01db02a (patch)
treeaf6c75e293d602295da6f8fe06da56ad42d25709 /wcte12xp/GpakApi.c
parenta39b7271370a81fb32864c2de52f3c9aabfc6d8d (diff)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@4133 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wcte12xp/GpakApi.c')
-rw-r--r--wcte12xp/GpakApi.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/wcte12xp/GpakApi.c b/wcte12xp/GpakApi.c
index 8e280a4..944c327 100644
--- a/wcte12xp/GpakApi.c
+++ b/wcte12xp/GpakApi.c
@@ -562,7 +562,7 @@ gpakConfigPortStatus_t gpakConfigurePorts(
((pPortConfig->RxFrameSyncPolarity2 << 4) & 0x0010) |
((pPortConfig->TxFrameSyncPolarity2 << 3) & 0x0008) |
((pPortConfig->CompandingMode2 << 1) & 0x0006) |
- (pPortConfig->SerialWordSize2 & 0x0001));
+ (pPortConfig->SerialWordSize1 & 0x0001));
MsgBuffer[12] = (DSP_WORD)
(((pPortConfig->DxDelay3 << 11) & 0x0800) |
@@ -674,7 +674,7 @@ gpakConfigChanStatus_t gpakConfigureChannel(
((pChanConfig->SoftwareCompand & 3) << 2) |
(pChanConfig->EcanEnableB << 1) |
(pChanConfig->EcanEnableA & 1)
- );
+ );
MsgBuffer[7] = (DSP_WORD)
pChanConfig->EcanParametersA.EcanTapLength;
@@ -734,16 +734,8 @@ gpakConfigChanStatus_t gpakConfigureChannel(
pChanConfig->EcanParametersB.EcanNumFirSegments;
MsgBuffer[34] = (DSP_WORD)
pChanConfig->EcanParametersB.EcanFirSegmentLen;
- MsgBuffer[35] = (DSP_WORD)
- pChanConfig->EcanParametersA.EcanTandemOperationEnable;
- MsgBuffer[36] = (DSP_WORD)
- pChanConfig->EcanParametersA.EcanMixedFourWireMode;
- MsgBuffer[37] = (DSP_WORD)
- pChanConfig->EcanParametersB.EcanTandemOperationEnable;
- MsgBuffer[38] = (DSP_WORD)
- pChanConfig->EcanParametersB.EcanMixedFourWireMode;
-
- MsgLength = 78; // byte number == 39*2
+
+ MsgLength = 70; // byte number == 35*2
break;