Class NitroCrcGenerator
Generate CRC compatible with Nitro devices.
public class NitroCrcGenerator
- Inheritance
-
NitroCrcGenerator
- Inherited Members
Methods
GenerateCrc16(Stream)
Generate a CRC16-MODBUS of the data.
public byte[] GenerateCrc16(Stream stream)
Parameters
stream
StreamThe data to read.
Returns
- byte[]
The CRC of the data in little endian.
GenerateCrc16(Stream, long, long)
Generate a CRC16-MODBUS of the data.
public byte[] GenerateCrc16(Stream stream, long offset, long length)
Parameters
stream
StreamThe data to read.
offset
longThe offset to start reading data.
length
longThe length of the data.
Returns
- byte[]
The CRC of the data in little endian.