at91rm3400 ATMEL Corporation, at91rm3400 Datasheet - Page 74

no-image

at91rm3400

Manufacturer Part Number
at91rm3400
Description
Atmel Advanced At91 Arm Microcontroller
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
at91rm3400-AU-002
Manufacturer:
Atmel
Quantity:
10 000
CRC Service
Presentation
CRC Service Description
Table 22. CRC Service Description
74
Methods and Array Available
// Typical Use:
pAT91->CRC32(...);
// Default Method:
void CalculateCrc32(
const unsigned char *address,
unsigned int size,
unsigned int *crc)
// Typical Use:
pAT91->CRC16(...);
// Default Method:
void CalculateCrc16(
const unsigned char *address,
unsigned int size,
unsigned short *crc)
// Typical Use:
pAT91->CRCHDLC(...);
// Default Method:
void CalculateCrcHdlc(
const unsigned char *address,
unsigned int size,
unsigned short *crc)
// Typical Use:
pAT91->CRCCCITT(...);
// Default Method:
void CalculateCrc16ccitt(
const unsigned char *address,
unsigned int size,
unsigned short *crc)
// Typical Use:
char reverse_byte;
reverse_byte = pAT91->Bit_Reverse_Array[...];
// Array Embedded:
const unsigned char bit_rev[256]
AT91RM3400
This “service” differs from the preceding ones in that it is structured differently: it is composed
of an array and some methods directly accessible via the
Description
This function provides a table driven 32bit CRC generation for
byte data. This CRC is known as the CCITT CRC32.
Input Parameters:
Pointer on the data buffer.
The size of this buffer.
A pointer on the result of the CRC.
Output Parameters:
None.
This function provides a table driven 16bit CRC generation for
byte data. This CRC is calculated with the POLYNOME 0x8005
Input Parameters:
Pointer on the data buffer.
The size of this buffer.
A pointer on the result of the CRC.
Output Parameters:
None.
This function provides a table driven 16bit CRC generation for
byte data. This CRC is known as the HDLC CRC.
Input Parameters:
Pointer on the data buffer.
The size of this buffer.
A pointer on the result of the CRC.
Output Parameters:
None.
This function provides a table driven 16bit CRC generation for
byte data. This CRC is known as the CCITT CRC16
(POLYNOME = 0x1021).
Input Parameters:
Pointer on the data buffer.
The size of this buffer.
A pointer on the result of the CRC.
Output Parameters:
None.
Bit Reverse Array: array which allows to reverse one octet.
Frequently used in mathematical algorithms.
Used for example in the CRC16 calculation.
AT91S_RomBoot
structure.
1790A–ATARM–11/03

Related parts for at91rm3400