We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A CRC calculation on Luos can be change to correspond to standard CRC-16 ANSI / IBM
Actual Luos CRC
CRC-16 ANSI / IBM
code example:
`uint16_t crc16_ibm(char* data, unsigned int data_len) { uint16_t crc = 0;
if (data_len == 0) return 0; for (unsigned int i = 0; i < data_len; ++i) { uint16_t dbyte = bit_reflect(data[i], 8); crc ^= dbyte << 8; for (unsigned char j = 0; j < 8; ++j) { uint16_t mix = crc & 0x8000; crc = (crc << 1); if (mix) crc = crc ^ 0x8005; } } return bit_reflect(crc, 16);
}`
The text was updated successfully, but these errors were encountered:
Salem-Tho
No branches or pull requests
A CRC calculation on Luos can be change to correspond to standard CRC-16 ANSI / IBM
Actual Luos CRC
CRC-16 ANSI / IBM
code example:
`uint16_t crc16_ibm(char* data, unsigned int data_len)
{
uint16_t crc = 0;
}`
The text was updated successfully, but these errors were encountered: