This driver provides Cyclic Redundancy Check (CRC) support for the device. The driver requires the following IP drivers:
IP: CRC register block and driver
CRC polynomial definition normalize type
Definition at line 48 of file crc_8xx.h.
Convenience function for computing a standard CRC16 checksum from 16-bit data block.
- Parameters
-
| data | : Pointer to the block of 16-bit data |
| hwords | : The number of 16 byte entries pointed to by data |
- Returns
- Check sum value
- Parameters
-
| data | : A pointer to the block of 16-bit data |
| hwords | : The number of 16 byte entries pointed to by data |
- Returns
- Nothing
Definition at line 59 of file crc_17xx_40xx.c.
Convenience function for computing a standard CRC32 checksum from 32-bit data block.
- Parameters
-
| data | : Pointer to the block of 32-bit data |
| words | : The number of 32-bit entries pointed to by data |
- Returns
- Check sum value
- Parameters
-
| data | : A pointer to the block of 32-bit data |
| words | : The number of 32 byte entries pointed to by data |
- Returns
- Nothing
Definition at line 66 of file crc_17xx_40xx.c.
Convenience function for computing a standard CCITT checksum from an 8-bit data block.
- Parameters
-
| data | : Pointer to the block of 8-bit data |
| bytes | : The number of bytes pointed to by data |
- Returns
- Check sum value
- Parameters
-
| data | : A pointer to the block of 8 bit data |
| bytes | : The number of bytes pointed to by data |
- Returns
- Nothing
Definition at line 52 of file crc_17xx_40xx.c.
Deinitializes the CRC Engine.
- Returns
- Nothing
Definition at line 65 of file crc_8xx.h.
Get the CRC Mode bits.
- Returns
- The current value of the CRC Mode bits
Definition at line 109 of file crc_8xx.h.
Get the CRC seed value.
- Returns
- Seed value
Definition at line 128 of file crc_8xx.h.
Initialize the CRC Engine.
- Returns
- Nothing
Definition at line 54 of file crc_8xx.h.
Set the CRC Mode bits.
- Parameters
-
- Returns
- Nothing
Definition at line 100 of file crc_8xx.h.
Set the polynomial used for the CRC calculation.
- Parameters
-
| poly | : The enumerated polynomial to be used |
| flags | : An Or'ed value of flags that setup the mode |
- Returns
- Nothing
- Note
- Flags for setting up the mode word include CRC_MODE_WRDATA_BIT_RVS, CRC_MODE_WRDATA_CMPL, CRC_MODE_SUM_BIT_RVS, and CRC_MODE_SUM_CMPL.
Definition at line 80 of file crc_8xx.h.
Set the seed bits used by the CRC_SUM register.
- Parameters
-
- Returns
- Nothing
Definition at line 119 of file crc_8xx.h.
Gets the CRC Sum based on the Mode and Seed as previously configured.
- Returns
- CRC Checksum value
Definition at line 167 of file crc_8xx.h.
Set up the CRC engine with defaults based on the polynomial to be used.
- Parameters
-
| poly | : The enumerated polynomial to be used |
- Returns
- Nothing
Definition at line 90 of file crc_8xx.h.
Convenience function for writing 16-bit data to the CRC engine.
- Parameters
-
| data | : 16-bit data to write |
- Returns
- Nothing
Definition at line 148 of file crc_8xx.h.
Convenience function for writing 32-bit data to the CRC engine.
- Parameters
-
| data | : 32-bit data to write |
- Returns
- Nothing
Definition at line 158 of file crc_8xx.h.
Convenience function for writing 8-bit data to the CRC engine.
- Parameters
-
| data | : 8-bit data to write |
- Returns
- Nothing
Definition at line 138 of file crc_8xx.h.