Skip to main content

Module crc

Module crc 

Source
Expand description

The CRCs of wireless M-Bus and its receiver sticks.

crc16 is CRC-16/EN-13757, the block checksum of wireless M-Bus (EN 13757-4): polynomial 0x3D65, initial value 0x0000, not reflected, final XOR 0xFFFF, transmitted most significant byte first; check value over "123456789" 0xC2B7.

crc16_x25 is CRC-16/X-25 (IBM-SDLC), the frame check of the IMST sticks’ host controller interfaces: reflected polynomial 0x8408, initial value 0xFFFF, final XOR 0xFFFF, transmitted least significant byte first; check value 0x906E.

Functions§

crc16
The CRC-16/EN-13757 of bytes.
crc16_x25
The CRC-16/X-25 of bytes (bitwise: the stick frames are short).