modules

raspihats.crc16 module

This module contains CRC(16-bits) algorithms.

raspihats.crc16.modbus(data)

Calculate the Modbus CRC

Parameters:data (List[int]) – Data bytes
Returns:CRC value on 16-bits
Return type:int