pytropicsquare
 
Loading...
Searching...
No Matches
tropicsquare.crc.CRC Class Reference

Public Member Functions

bytes crc16 (cls, bytes data)
 

Static Public Attributes

int CRC16_POLYNOMIAL = 0x8005
 
int CRC16_INITIAL_VAL = 0x0000
 
int CRC16_FINAL_XOR_VALUE = 0x0000
 

Protected Member Functions

int _crc16_byte (cls, int data, int crc)
 

Member Function Documentation

◆ _crc16_byte()

int tropicsquare.crc.CRC._crc16_byte (   cls,
int  data,
int  crc 
)
protected
Process one byte of data into the CRC.

◆ crc16()

bytes tropicsquare.crc.CRC.crc16 (   cls,
bytes  data 
)
Compute the CRC16 value for the given byte sequence.

Member Data Documentation

◆ CRC16_FINAL_XOR_VALUE

int tropicsquare.crc.CRC.CRC16_FINAL_XOR_VALUE = 0x0000
static

◆ CRC16_INITIAL_VAL

int tropicsquare.crc.CRC.CRC16_INITIAL_VAL = 0x0000
static

◆ CRC16_POLYNOMIAL

int tropicsquare.crc.CRC.CRC16_POLYNOMIAL = 0x8005
static

The documentation for this class was generated from the following file: