Midnight Sun Firmware
Loading...
Searching...
No Matches
CRC16

Public Member Functions

def __init__ (self)
 
def calculate (self, buf)
 

Public Attributes

 poly
 
 crc_table
 

Detailed Description

@class  CRC16
@brief  CRC16 checksum calculation class

@param  poly CRC16 polynomial. Defaults to 0x1021 (CRC-16-CCITT)

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
@brief Initializes the CRC16 with the CRC-16-CCITT default polynomial

Member Function Documentation

◆ calculate()

def calculate (   self,
  buf 
)
@brief Calculates the CRC16 for a given buffer of data

@param buf Buffer used for CRC16 calculation

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