Xmega IEC60730 Class B Library  1.0
 All Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
classb_crc_sw.c File Reference

Detailed Description

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

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.c.

#include "classb_crc_sw.h"
+ Include dependency graph for classb_crc_sw.c:

Go to the source code of this file.

const uint16_t CLASSB_CRC16Table [256]
const uint32_t CLASSB_CRC32Table [256]
 Table for IEE802.3 32-bit CRC, stored in Flash.
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.
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.
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.
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.