Microchip® Advanced Software Framework

classb_crc_sw.c File Reference

Functions for computing 32- and 16-bit CRC for EEPROM and Flash.

Application note:
AVR1610: Guide to IEC60730 Class B compliance with XMEGA

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include "classb_crc_sw.h"

Functions

uint16_t PROGMEM_DECLARE (CLASSB_CRC16Table[256])
 Table for CCITT 16-bit CRC, stored in Flash. More...
 
uint16_t CLASSB_CRC16_EEPROM_SW (eepromptr_t origDataptr, crcbytenum_t numBytes, eeprom_uint16ptr_t pchecksum)
 Compute 16-bit CRC for EEPROM address range using table lookup. More...
 
uint16_t CLASSB_CRC16_Flash_SW (flashptr_t origDataptr, crcbytenum_t numBytes, eeprom_uint16ptr_t pchecksum)
 Compute 16-bit CRC for Flash address range using table lookup. More...
 
uint32_t PROGMEM_DECLARE (CLASSB_CRC32Table[256])
 Table for IEE802.3 32-bit CRC, stored in Flash. More...
 
uint32_t CLASSB_CRC32_EEPROM_SW (eepromptr_t origDataptr, crcbytenum_t numBytes, eeprom_uint32ptr_t pchecksum)
 Compute 32-bit CRC for EEPROM address range using table lookup. More...
 
uint32_t CLASSB_CRC32_Flash_SW (flashptr_t origDataptr, crcbytenum_t numBytes, eeprom_uint32ptr_t pchecksum)
 Compute 32-bit CRC for Flash address range using table lookup. More...