![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Go to the source code of this file.
Typedefs | |
| typedef IP_CRC_001_POLY_T | CRC_POLY_T |
Functions | |
| STATIC INLINE void | Chip_CRC_Init (void) |
| Initializes the CRC Engine. | |
| STATIC INLINE void | Chip_CRC_Deinit (void) |
| Deinitializes the CRC Engine. | |
| STATIC INLINE void | Chip_CRC_SetPoly (CRC_POLY_T poly, uint32_t flags) |
| Set the polynomial used for the CRC calculation. | |
| STATIC INLINE void | Chip_CRC_UseDefaultConfig (CRC_POLY_T poly) |
| Engage the CRC engine with defaults based on the polynomial to be used. | |
| STATIC INLINE void | Chip_CRC_SetMode (uint32_t mode) |
| Set the CRC Mode bits directly. | |
| STATIC INLINE uint32_t | Chip_CRC_GetMode (void) |
| Get the CRC Mode bits directly. | |
| STATIC INLINE void | Chip_CRC_SetSeed (uint32_t seed) |
| Set the seed bits used by the CRC_SUM register. | |
| STATIC INLINE uint32_t | Chip_CRC_GetSeed (void) |
| Get the CRC seed value. | |
| STATIC INLINE void | Chip_CRC_Write8 (uint8_t data) |
| Convenience function for writing 8-bit data to the CRC engine. | |
| STATIC INLINE void | Chip_CRC_Write16 (uint16_t data) |
| Convenience function for writing 16-bit data to the CRC engine. | |
| STATIC INLINE void | Chip_CRC_Write32 (uint32_t data) |
| Convenience function for writing 32-bit data to the CRC engine. | |
| STATIC INLINE uint32_t | Chip_CRC_Sum (void) |
| Gets the CRC Sum based on the Mode and Seed as previously configured. | |
| uint32_t | Chip_CRC_CRC8 (const uint8_t *data, uint32_t bytes) |
| Convenience function for computing a standard CCITT checksum from an 8-bit data block. | |
| uint32_t | Chip_CRC_CRC16 (const uint16_t *data, uint32_t hwords) |
| Convenience function for computing a standard CRC16 checksum from 16-bit data block. | |
| uint32_t | Chip_CRC_CRC32 (const uint32_t *data, uint32_t words) |
| Convenience function for computing a standard CRC32 checksum from 32-bit data block. | |