| Xmega IEC60730 Class B Library 1.0 |

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

## Detailed Description

Definitions and settings for the CRC implemented in software.

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

Documentation
  For comprehensive code documentation, supported compilers, compiler settings and supported devices see readme.html

Author:
  Atmel Corporation: http://www.atmel.com
  Support email: avr@a.nosp@m.tmel.nosp@m..com

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

Definition in file classb_crc_sw.h.

`#include "avr_compiler.h"`
`#include "classb_crc.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.