Expand description
Shared codec utilities for ZUS RPC protocols
This module provides common utilities used by both the standard 40-byte protocol and the mobile 16-byte protocol:
- CRC calculations (header CRC16, data CRC32/CRC16)
- Common flag definitions
Modules§
Functions§
- calculate_
data_ crc16 - Calculate data CRC16 (lower 16 bits of CRC32)
- calculate_
data_ crc32 - Calculate data CRC32 using IEEE polynomial (ISO-HDLC)
- calculate_
header_ crc16 - Calculate header CRC16 using truncating addition