- uint8_t parity[16];
- oddparitybuf(cmd, cmdsize, parity);
- printf("parity check. size=%d\n", cmdsize);
- printf("cmd =%s\n", sprint_hex(cmd, cmdsize));
- printf("cmd_enc=%s\n", sprint_hex(cmd_enc, cmdsize));
- printf("parity =%s\n", printBitsPar(parity, cmdsize));
- printf("parity_enc=%s\n", printBitsPar(parity_enc, cmdsize));
-// (oddparity8(ntx >> 8 & 0xff) ^ (ntx & 0x01) ^ ((ad->nt_enc_par >> 5) & 0x01) ^ (ad->nt_enc & 0x01)) ||
-// (oddparity8(ntx >> 24 & 0xff) ^ (ntx >> 16 & 0x01) ^ ((ad->nt_enc_par >> 7) & 0x01) ^ (ad->nt_enc >> 16 & 0x01))