![]() |
Midnight Sun Firmware
|
Public Member Functions | |
| def | __init__ (self, _poly) |
| def | calculate (self, buf) |
| def | crc_int_to_bytes (self, i) |
Static Public Attributes | |
| dictionary | crc_table = {} |
@brief CRC32 class to validate the packets sent
| def __init__ | ( | self, | |
| _poly | |||
| ) |
@brief Initialize the FOTA crc32
| def calculate | ( | self, | |
| buf | |||
| ) |
@brief returns crc32 hash of the buffer
| def crc_int_to_bytes | ( | self, | |
| i | |||
| ) |
@brief converts the into to bytes