| Xmega IEC60730 Class B Library 1.0 |

All Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs
Type definitions for CRC functions
CRC Tests

## Detailed Description

Data types used in connection with CRC computations.

This includes the type for variables that stores the data size in bytes, memory addresses in Flash, and pointers to memory. Both for Flash and EEPROM there are void pointer types and pointers to byte. Variables can be assigned a memory attribute with IAR. Therefore, pointers will be large enough to hold the address of a given variable. However, with GCC pointers have 16 bits. This means that if a device has a large program memory, we have to use 32-bits variables to store Flash addresses.

## Typedefs
typedef uint32_t | crcbytenum_t
| Data type to use for byte counts in CRC computations. This type should be kept as small as possible to optimize for speed.
typedef uint32_t | flash_addr_t
| Data type for holding flash memory addresses. Depending of the size of the device it will be necessary to use 32 or 16 bits.
typedef const void * | eepromptr_t
| Generic pointer to EEPROM.
typedef const uint8_t * | eeprom_uint8ptr_t
| Pointer to a byte in EEPROM.
typedef const uint16_t * | eeprom_uint16ptr_t
| Pointer to two bytes in EEPROM.
typedef const uint32_t * | eeprom_uint32ptr_t
| Pointer to four bytes in EEPROM.
typedef flash_addr_t | flashptr_t
| Generic pointer to Flash.
typedef flash_addr_t | flash_uint8ptr_t
| Pointer to a byte in Flash.