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

Public Member Functions

def __init__ (self, poly=0x04C11DB7)
 
def calculate (self, buf)
 

Public Attributes

 poly
 

Detailed Description

@class  CRC32
@brief  CRC32 checksum calculation class

@param  poly CRC32 polynomial. Defaults to 0x04C11DB7 (IEEE 802.3 standard polynomial)

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  poly = 0x04C11DB7 
)
@brief Initializes the CRC32 with a default polynomial

@param poly CRC32 polynomial. Defaults to IEE 802.3 standard as per STM32 datasheet

Member Function Documentation

◆ calculate()

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

@param buf Buffer used for CRC32 calculation

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