![]() |
Midnight Sun Firmware
|
Public Member Functions | |
| def | __init__ (self) |
| def | calculate (self, buf) |
Public Attributes | |
| poly | |
| crc_table | |
@class CRC16 @brief CRC16 checksum calculation class @param poly CRC16 polynomial. Defaults to 0x1021 (CRC-16-CCITT)
| def __init__ | ( | self | ) |
@brief Initializes the CRC16 with the CRC-16-CCITT default polynomial
| def calculate | ( | self, | |
| buf | |||
| ) |
@brief Calculates the CRC16 for a given buffer of data @param buf Buffer used for CRC16 calculation