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

Public Member Functions

def __init__ (self, _poly)
 
def calculate (self, buf)
 
def crc_int_to_bytes (self, i)
 

Static Public Attributes

dictionary crc_table = {}
 

Detailed Description

@brief CRC32 class to validate the packets sent

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  _poly 
)
@brief Initialize the FOTA crc32

Member Function Documentation

◆ calculate()

def calculate (   self,
  buf 
)
@brief returns crc32 hash of the buffer

◆ crc_int_to_bytes()

def crc_int_to_bytes (   self,
  i 
)
@brief converts the into to bytes

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