| Xmega IEC60730 Class B Library 1.0 |

All Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
classb_crc_hw.h File Reference

## Detailed Description

Definitions and settings for the CRC hardware module driver.

Copyright (C) 2012 Atmel Corporation. All rights reserved.

Definition in file classb_crc_hw.h.

`#include "avr_compiler.h"`
`#include "classb_crc.h"`
Include dependency graph for classb_crc_hw.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Macros
NVM Commands
NVMcommands related to 32-bit CRC for flash memory. This is only used by CLASSB_CRC32_Flash_HW.
#define | CRC_FLASH_RANGE NVM_CMD_FLASH_RANGE_CRC_gc
| Compute a CRC checksum on an address range.
#define | CRC_BOOT NVM_CMD_BOOT_CRC_gc
| Compute a CRC checksum on the application section.
#define | CRC_APP NVM_CMD_APP_CRC_gc
| Compute a CRC checksum on the boot section.

## Functions
CRC tests
Invariant memory tests based on CRC that are compliant with IEC60730 Class B.
uint16_t | CLASSB_CRC16_EEPROM_HW (eepromptr_t dataptr, const crcbytenum_t numBytes, eeprom_uint16ptr_t pchecksum)
| Compute 16-bit CRC for EEPROM address range using hardware CRC module.
uint16_t | CLASSB_CRC16_Flash_HW (flashptr_t dataptr, const crcbytenum_t numBytes, eeprom_uint16ptr_t pchecksum)
| Compute 16-bit CRC for Flash address range using hardware CRC module.
uint32_t | CLASSB_CRC32_EEPROM_HW (eepromptr_t dataptr, const crcbytenum_t numBytes, eeprom_uint32ptr_t pchecksum)
| Compute 32-bit CRC for EEPROM address range using hardware CRC module.
uint32_t | CLASSB_CRC32_Flash_HW (NVM_CMD_t crc_type, flashptr_t dataptr, const crcbytenum_t numBytes, eeprom_uint32ptr_t pchecksum)
| Compute 32-bit CRC for Flash address range using hardware CRC module.