mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-04 13:57:43 +00:00
Prepare for Wires-X encoding.
This commit is contained in:
parent
d9c0bb27c9
commit
bbb7fc6c2c
12 changed files with 97 additions and 177 deletions
|
|
@ -123,7 +123,7 @@ bool CYSFPayload::readVDMode1Data(const unsigned char* data, unsigned char* dt)
|
|||
unsigned char output[23U];
|
||||
conv.chainback(output, 176U);
|
||||
|
||||
bool ret = CCRC::checkCCITT162(output, 22U);
|
||||
bool ret = CCRC::checkCCITT16(output, 22U);
|
||||
if (ret) {
|
||||
for (unsigned int i = 0U; i < 20U; i++)
|
||||
output[i] ^= WHITENING_DATA[i];
|
||||
|
|
@ -168,7 +168,7 @@ bool CYSFPayload::readVDMode2Data(const unsigned char* data, unsigned char* dt)
|
|||
unsigned char output[13U];
|
||||
conv.chainback(output, 96U);
|
||||
|
||||
bool ret = CCRC::checkCCITT162(output, 12U);
|
||||
bool ret = CCRC::checkCCITT16(output, 12U);
|
||||
if (ret) {
|
||||
for (unsigned int i = 0U; i < 10U; i++)
|
||||
output[i] ^= WHITENING_DATA[i];
|
||||
|
|
@ -213,7 +213,7 @@ bool CYSFPayload::readDataFRModeData1(const unsigned char* data, unsigned char*
|
|||
unsigned char output[23U];
|
||||
conv.chainback(output, 176U);
|
||||
|
||||
bool ret = CCRC::checkCCITT162(output, 22U);
|
||||
bool ret = CCRC::checkCCITT16(output, 22U);
|
||||
if (ret) {
|
||||
for (unsigned int i = 0U; i < 20U; i++)
|
||||
output[i] ^= WHITENING_DATA[i];
|
||||
|
|
@ -258,7 +258,7 @@ bool CYSFPayload::readDataFRModeData2(const unsigned char* data, unsigned char*
|
|||
unsigned char output[23U];
|
||||
conv.chainback(output, 176U);
|
||||
|
||||
bool ret = CCRC::checkCCITT162(output, 22U);
|
||||
bool ret = CCRC::checkCCITT16(output, 22U);
|
||||
if (ret) {
|
||||
for (unsigned int i = 0U; i < 20U; i++)
|
||||
output[i] ^= WHITENING_DATA[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue