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

Public Member Functions

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

Public Attributes

 poly
 
 crc_table
 

Detailed Description

@class  CRC8
@brief  CRC8 checksum calculation class

@param  poly CRC8 polynomial. Defaults to 0x07 (CRC-8)

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
@brief Initializes the CRC8 with the CRC-8 default polynomial

Member Function Documentation

◆ calculate()

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

@param buf Buffer used for CRC8 calculation

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