@class CRC32
@brief CRC32 checksum calculation class
@param poly CRC32 polynomial. Defaults to 0x04C11DB7 (IEEE 802.3 standard polynomial)
◆ __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
◆ 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:
- smoke/crc_api/scripts/crc.py