![]() |
MCUXpresso SDK API Reference Manual
Rev 2.16.000
NXP Semiconductors
|
Content including 1) peripheral features, work logic and work method; 2) driver design logic and use method; 3) typical use case. More...
The Cyclic Redundancy Check (CRC) generator module uses the 16-bit CRC-CCITT polynomial, x16 + x12 + x5 + 1, to generate a CRC code for error detection.
+ The CRC module calculates 8 bits at a time with a 16-bit code, and provides checks on all access locations, * whether they are in simple data or simply provided in RAM. * - Hardware CRC generator circuit using 16-bit shift register. * - CRC16-CCITT compliancy with x16 + x12 + x5 + 1 polynomial. * - Programmable initial seed value. * * + Optional ability to transpose input data and CRC result via transpose register, required on applications where bytes are in LSb (Least Significant bit) format. * * + This section defines the CRC operation in run, wait, and stop modes. * - Run Mode and Wait Mode is the basic mode of operation. *
This driver provides multiple definitions/functions to enable and configure the CRC peripheral module. The CRC_Init() function takes the argument in type of crc_config_t, which contains all CRC features. After all the necessary configuration is completed, the data for error detection can be written, then the CRC checksum value will be stored in the CRC data register.The APIs this driver provides can be classified in 3 API groups: