Definitions and settings for the CRC implemented in software.
Copyright (C) 2012 Atmel Corporation. All rights reserved.
Definition in file classb_crc_sw.h.
Include dependency graph for classb_crc_sw.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
Settings for CRC software implementation | |
These symbols are used to choose between lookup table or direct computation. They should be defined for lookup table implementation and commented out otherwise. | |
| #define | CRC_USE_16BIT_LOOKUP_TABLE |
| Select the lookup table method for 16-bit CRC. | |
| #define | CRC_USE_32BIT_LOOKUP_TABLE |
| Select the lookup table method for 32-bit CRC. | |
Functions | |
CRC tests | |
Invariant memory tests based on CRC that are compliant with IEC60730 Class B. | |
| uint16_t | CLASSB_CRC16_EEPROM_SW (eepromptr_t dataptr, const crcbytenum_t numBytes, eeprom_uint16ptr_t pchecksum) |
| Compute 16-bit CRC for EEPROM address range using table lookup. | |
| uint16_t | CLASSB_CRC16_Flash_SW (flashptr_t dataptr, const crcbytenum_t numBytes, eeprom_uint16ptr_t pchecksum) |
| Compute 16-bit CRC for Flash address range using table lookup. | |
| uint32_t | CLASSB_CRC32_EEPROM_SW (eepromptr_t dataptr, const crcbytenum_t numBytes, eeprom_uint32ptr_t pchecksum) |
| Compute 32-bit CRC for EEPROM address range using table lookup. | |
| uint32_t | CLASSB_CRC32_Flash_SW (flashptr_t dataptr, const crcbytenum_t numBytes, eeprom_uint32ptr_t pchecksum) |
| Compute 32-bit CRC for Flash address range using table lookup. | |