![]() |
![]() |
|
MSPM0L111X Driver Library
2.05.00.05
|
Macros | |
| #define | DL_CRC_POLYNOMIAL_SIZE_16 DL_CRCP_POLYNOMIAL_SIZE_16 |
| Redirects to DL_CRCP_POLYNOMIAL_SIZE_16 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_POLYNOMIAL_SIZE_32 DL_CRCP_POLYNOMIAL_SIZE_32 |
| Redirects to DL_CRCP_POLYNOMIAL_SIZE_32 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_BIT_REVERSED DL_CRCP_BIT_REVERSED |
| Redirects to DL_CRCP_BIT_REVERSED for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_BIT_NOT_REVERSED DL_CRCP_BIT_NOT_REVERSED |
| Redirects to DL_CRCP_BIT_NOT_REVERSED for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_INPUT_ENDIANESS_LITTLE_ENDIAN DL_CRCP_INPUT_ENDIANESS_LITTLE_ENDIAN |
| Redirects to DL_CRCP_INPUT_ENDIANESS_LITTLE_ENDIAN for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_INPUT_ENDIANESS_BIG_ENDIAN DL_CRCP_INPUT_ENDIANESS_BIG_ENDIAN |
| Redirects to DL_CRCP_INPUT_ENDIANESS_BIG_ENDIAN for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_OUTPUT_BYTESWAP_ENABLED DL_CRCP_OUTPUT_BYTESWAP_ENABLED |
| Redirects to DL_CRCP_OUTPUT_BYTESWAP_ENABLED for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_OUTPUT_BYTESWAP_DISABLED DL_CRCP_OUTPUT_BYTESWAP_DISABLED |
| Redirects to DL_CRCP_OUTPUT_BYTESWAP_DISABLED for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCPOLY_POLYNOMIAL_32_MPEG2 DL_CRCP_CRCPOLY_POLYNOMIAL_32_MPEG2 |
| Redirects to DL_CRCP_CRCPOLY_POLYNOMIAL_32_MPEG2 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCPOLY_POLYNOMIAL_32_MPEG2 DL_CRCP_CRCPOLY_POLYNOMIAL_32_MPEG2 |
| Redirects to DL_CRCP_CRCPOLY_POLYNOMIAL_32_MPEG2 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCPOLY_POLYNOMIAL_32_Q DL_CRCP_CRCPOLY_POLYNOMIAL_32_Q |
| Redirects to DL_CRCP_CRCPOLY_POLYNOMIAL_32_Q for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCPOLY_POLYNOMIAL_32_JAMCRC DL_CRCP_CRCPOLY_POLYNOMIAL_32_JAMCRC |
| Redirects to DL_CRCP_CRCPOLY_POLYNOMIAL_32_JAMCRC for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCPOLY_POLYNOMIAL_32_XFER DL_CRCP_CRCPOLY_POLYNOMIAL_32_XFER |
| Redirects to DL_CRCP_CRCPOLY_POLYNOMIAL_32_XFER for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCPOLY_POLYNOMIAL_16_CCIT_ZERO DL_CRCP_CRCPOLY_POLYNOMIAL_16_CCIT_ZERO |
| Redirects to DL_CRCP_CRCPOLY_POLYNOMIAL_16_CCIT_ZERO for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCPOLY_POLYNOMIAL_16_ARC DL_CRCP_CRCPOLY_POLYNOMIAL_16_ARC |
| Redirects to DL_CRCP_CRCPOLY_POLYNOMIAL_16_ARC for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCPOLY_POLYNOMIAL_16_AUG_CCIT DL_CRCP_CRCPOLY_POLYNOMIAL_16_AUG_CCIT |
| Redirects to DL_CRCP_CRCPOLY_POLYNOMIAL_16_AUG_CCIT for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCPOLY_POLYNOMIAL_16_BUYPASS DL_CRCP_CRCPOLY_POLYNOMIAL_16_BUYPASS |
| Redirects to DL_CRCP_CRCPOLY_POLYNOMIAL_16_BUYPASS for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCPOLY_POLYNOMIAL_16_CCIT_FALSE DL_CRCP_CRCPOLY_POLYNOMIAL_16_CCIT_FALSE |
| Redirects to DL_CRCP_CRCPOLY_POLYNOMIAL_16_CCIT_FALSE for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCPOLY_POLYNOMIAL_16_CDMA2000 DL_CRCP_CRCPOLY_POLYNOMIAL_16_CDMA2000 |
| Redirects to DL_CRCP_CRCPOLY_POLYNOMIAL_16_CDMA2000 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCPOLY_POLYNOMIAL_16_MODBUS DL_CRCP_CRCPOLY_POLYNOMIAL_16_MODBUS |
| Redirects to DL_CRCP_CRCPOLY_POLYNOMIAL_16_MODBUS for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCSEED_SEED_32_MPEG2 DL_CRCP_CRCSEED_SEED_32_MPEG2 |
| Redirects to DL_CRCP_CRCSEED_SEED_32_MPEG2 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCSEED_SEED_32_MPEG2 DL_CRCP_CRCSEED_SEED_32_MPEG2 |
| Redirects to DL_CRCP_CRCSEED_SEED_32_MPEG2 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCSEED_SEED_32_Q DL_CRCP_CRCSEED_SEED_32_Q |
| Redirects to DL_CRCP_CRCSEED_SEED_32_Q for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCSEED_SEED_32_JAMCRC DL_CRCP_CRCSEED_SEED_32_JAMCRC |
| Redirects to DL_CRCP_CRCSEED_SEED_32_JAMCRC for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCSEED_SEED_32_XFER DL_CRCP_CRCSEED_SEED_32_XFER |
| Redirects to DL_CRCP_CRCSEED_SEED_32_XFER for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCSEED_SEED_16_AUG_CCIT DL_CRCP_CRCSEED_SEED_16_AUG_CCIT |
| Redirects to DL_CRCP_CRCSEED_SEED_16_AUG_CCIT for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCSEED_SEED_16_BUYPASS DL_CRCP_CRCSEED_SEED_16_BUYPASS |
| Redirects to DL_CRCP_CRCSEED_SEED_16_BUYPASS for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCSEED_SEED_16_CCIT_FALSE DL_CRCP_CRCSEED_SEED_16_CCIT_FALSE |
| Redirects to DL_CRCP_CRCSEED_SEED_16_CCIT_FALSE for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCSEED_SEED_16_CDMA2000 DL_CRCP_CRCSEED_SEED_16_CDMA2000 |
| Redirects to DL_CRCP_CRCSEED_SEED_16_CDMA2000 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_CRCSEED_SEED_16_MODBUS DL_CRCP_CRCSEED_SEED_16_MODBUS |
| Redirects to DL_CRCP_CRCSEED_SEED_16_MODBUS for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_enablePower DL_CRCP_enablePower |
| Redirects to DL_CRCP_enablePower for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_isPowerEnabled DL_CRCP_isPowerEnabled |
| Redirects to DL_CRCP_isPowerEnabled for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_reset DL_CRCP_reset |
| Redirects to DL_CRCP_reset for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_isReset DL_CRCP_isReset |
| Redirects to DL_CRCP_isReset for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_init DL_CRCP_init |
| Redirects to DL_CRCP_init for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_setSeed16 DL_CRCP_setSeed16 |
| Redirects to DL_CRCP_setSeed16 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_setSeed32 DL_CRCP_setSeed32 |
| Redirects to DL_CRCP_setSeed32 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_feedData8 DL_CRCP_feedData8 |
| Redirects to DL_CRCP_feedData8 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_feedData16 DL_CRCP_feedData16 |
| Redirects to DL_CRCP_feedData16 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_feedData32 DL_CRCP_feedData32 |
| Redirects to DL_CRCP_feedData32 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_getResult16 DL_CRCP_getResult16 |
| Redirects to DL_CRCP_getResult16 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_getResult32 DL_CRCP_getResult32 |
| Redirects to DL_CRCP_getResult32 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_setPolynomial DL_CRCP_setPolynomial |
| Redirects to DL_CRCP_setPolynomial for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_getPolynomial DL_CRCP_getPolynomial |
| Redirects to DL_CRCP_getPolynomial for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_calculateBlock32 DL_CRCP_calculateBlock32 |
| Redirects to DL_CRCP_calculateBlock32 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_calculateMemoryRange32 DL_CRCP_calculateMemoryRange32 |
| Redirects to DL_CRCP_calculateMemoryRange32 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_calculateBlock16 DL_CRCP_calculateBlock16 |
| Redirects to DL_CRCP_calculateBlock16 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_calculateMemoryRange16 DL_CRCP_calculateMemoryRange16 |
| Redirects to DL_CRCP_calculateMemoryRange16 for compatibility between CRC and CRCP DriverLib modules. | |
| #define | DL_CRC_getCRCINAddr DL_CRCP_getCRCINAddr |
| Redirects to DL_CRCP_getCRCINAddr for compatibility between CRC and CRCP DriverLib modules. | |
Functions | |
| __STATIC_INLINE void | DL_CRCP_enablePower (CRCP_Regs *crcp) |
| Enables the Peripheral Write Enable (PWREN) register for the CRCP. More... | |
| __STATIC_INLINE void | DL_CRCP_disablePower (CRCP_Regs *crcp) |
| Disables the Peripheral Write Enable (PWREN) register for the CRCP. More... | |
| __STATIC_INLINE bool | DL_CRCP_isPowerEnabled (const CRCP_Regs *crcp) |
| Returns if the Peripheral Write Enable (PWREN) register for the CRCP is enabled. More... | |
| __STATIC_INLINE void | DL_CRCP_reset (CRCP_Regs *crcp) |
| Resets CRCP peripheral. More... | |
| __STATIC_INLINE bool | DL_CRCP_isReset (const CRCP_Regs *crcp) |
| Returns if CRCP module has been reset. More... | |
| __STATIC_INLINE void | DL_CRCP_init (CRCP_Regs *crcp, DL_CRCP_POLYNOMIAL_SIZE polySize, DL_CRCP_BIT bitOrd, DL_CRCP_INPUT_ENDIANESS inEndianness, DL_CRCP_OUTPUT_BYTESWAP outByteSwap) |
| Initializes the CRCP peripheral. More... | |
| __STATIC_INLINE void | DL_CRCP_setSeed16 (CRCP_Regs *crcp, uint16_t seed) |
| Initializes the seed for a 16-bit polynomial CRC calculation. More... | |
| __STATIC_INLINE void | DL_CRCP_setSeed32 (CRCP_Regs *crcp, uint32_t seed) |
| Initializes the seed for a 32-bit polynomial CRC calculation. More... | |
| __STATIC_INLINE void | DL_CRCP_feedData8 (CRCP_Regs *crcp, uint8_t dataIn) |
| Feeds 8-bit data into the CRC calculation. More... | |
| __STATIC_INLINE void | DL_CRCP_feedData16 (CRCP_Regs *crcp, uint16_t dataIn) |
| Feeds 16-bit data into the CRC calculation. More... | |
| __STATIC_INLINE void | DL_CRCP_feedData32 (CRCP_Regs *crcp, uint32_t dataIn) |
| Feeds 32-bit data into the CRC calculation. More... | |
| __STATIC_INLINE uint16_t | DL_CRCP_getResult16 (const CRCP_Regs *crcp) |
| Returns the result from the 16-bit polynomial calculation. More... | |
| __STATIC_INLINE uint32_t | DL_CRCP_getResult32 (const CRCP_Regs *crcp) |
| Returns the result from the 32-bit polynomial calculation. More... | |
| __STATIC_INLINE void | DL_CRCP_setPolynomial (CRCP_Regs *crcp, uint32_t poly) |
| Sets the active polynomial terms for the CRC calculation. More... | |
| __STATIC_INLINE uint32_t | DL_CRCP_getPolynomial (const CRCP_Regs *crcp) |
| Gets the active polynomial terms for the CRC calculation. More... | |
| uint32_t | DL_CRCP_calculateBlock32 (CRCP_Regs *crcp, uint32_t seed, const uint32_t *ptr, uint32_t size) |
| Calculates the CRC over a range of 32-bit values. More... | |
| uint32_t | DL_CRCP_calculateMemoryRange32 (CRCP_Regs *crcp, uint32_t seed, uint32_t *ptrStart, const uint32_t *ptrEnd) |
| Calculates the CRC over a memory range. More... | |
| uint16_t | DL_CRCP_calculateBlock16 (CRCP_Regs *crcp, uint16_t seed, const uint16_t *ptr, uint16_t size) |
| Calculates the CRC over a range of 16-bit values. More... | |
| uint16_t | DL_CRCP_calculateMemoryRange16 (CRCP_Regs *crcp, uint16_t seed, uint16_t *ptrStart, const uint16_t *ptrEnd) |
| Calculates the CRC over a memory range. More... | |
| __STATIC_INLINE uintptr_t | DL_CRCP_getCRCINAddr (const CRCP_Regs *crcp) |
| Returns the address of the CRC input data register. More... | |
The CRCP DriverLib allows full configuration of the MSPM0 CRCP module. The cyclic redundancy check (CRC) accelerator generates signatures for a given data sequence based on a user-configured polynomial, allowing for support of any 16-bit or 32-bit polynomial including but not limited to:
| enum DL_CRCP_BIT |
commonly used pre-defined polynomials to be used by CRCP as mentioned by the website http://www.sunshine2k.de/coding/javascript/crc/crc_js.html. Custom polynomials can also be used in lieu of the follwoing.
| enum DL_CRCP_CRCSEED_SEED |
seeds for commonly used pre-defined polynomials to be used by CRCP as mentioned by the website http://www.sunshine2k.de/coding/javascript/crc/crc_js.html. Custom polynomials can also be used in lieu of the follwoing.
| __STATIC_INLINE void DL_CRCP_enablePower | ( | CRCP_Regs * | crcp | ) |
Enables the Peripheral Write Enable (PWREN) register for the CRCP.
Before any peripheral registers can be configured by software, the peripheral itself must be enabled by writing the ENABLE bit together with the appropriate KEY value to the peripheral's PWREN register.
| crcp | Pointer to the register overlay for the CRCP peripheral |
| __STATIC_INLINE void DL_CRCP_disablePower | ( | CRCP_Regs * | crcp | ) |
Disables the Peripheral Write Enable (PWREN) register for the CRCP.
When the PWREN.ENABLE bit is cleared, the peripheral's registers are not accessible for read/write operations.
| crcp | Pointer to the register overlay for the CRCP peripheral |
| __STATIC_INLINE bool DL_CRCP_isPowerEnabled | ( | const CRCP_Regs * | crcp | ) |
Returns if the Peripheral Write Enable (PWREN) register for the CRCP is enabled.
Before any peripheral registers can be configured by software, the peripheral itself must be enabled by writing the ENABLE bit together with the appropriate KEY value to the peripheral's PWREN register.
When the PWREN.ENABLE bit is cleared, the peripheral's registers are not accessible for read/write operations.
| crcp | Pointer to the register overlay for the CRCP peripheral |
| __STATIC_INLINE void DL_CRCP_reset | ( | CRCP_Regs * | crcp | ) |
Resets CRCP peripheral.
| crcp | Pointer to the register overlay for the CRCP peripheral |
| __STATIC_INLINE bool DL_CRCP_isReset | ( | const CRCP_Regs * | crcp | ) |
Returns if CRCP module has been reset.
| crcp | Pointer to the register overlay for the CRCP peripheral |
| __STATIC_INLINE void DL_CRCP_init | ( | CRCP_Regs * | crcp, |
| DL_CRCP_POLYNOMIAL_SIZE | polySize, | ||
| DL_CRCP_BIT | bitOrd, | ||
| DL_CRCP_INPUT_ENDIANESS | inEndianness, | ||
| DL_CRCP_OUTPUT_BYTESWAP | outByteSwap | ||
| ) |
Initializes the CRCP peripheral.
| crcp | Pointer to the register overlay for the CRCP peripheral. |
| polySize | Selects CRC polynomial size. One of DL_CRCP_POLYNOMIAL_SIZE. |
| bitOrd | Selects CRC bit order. One of DL_CRCP_BIT. |
| inEndianness | Selects CRC input endianess. One of DL_CRCP_INPUT_ENDIANESS. |
| outByteSwap | Selects CRC output byte swap mode. One of DL_CRCP_OUTPUT_BYTESWAP. |
| __STATIC_INLINE void DL_CRCP_setSeed16 | ( | CRCP_Regs * | crcp, |
| uint16_t | seed | ||
| ) |
Initializes the seed for a 16-bit polynomial CRC calculation.
Sets the inital seed for a 16-bit CRC calculation. can be any value, or cast one of the common seeds in DL_CRCP_CRCSEED_SEED.
| [in] | crcp | Pointer to the register overlay for the CRCP peripheral |
| [in] | seed | The seed from which to start generating a signature |
| __STATIC_INLINE void DL_CRCP_setSeed32 | ( | CRCP_Regs * | crcp, |
| uint32_t | seed | ||
| ) |
Initializes the seed for a 32-bit polynomial CRC calculation.
Sets the inital seed for a 32-bit CRC calculation. can be any value, or cast one of the common seeds in DL_CRCP_CRCSEED_SEED.
| [in] | crcp | Pointer to the register overlay for the CRCP peripheral |
| [in] | seed | The seed from which to start generating a signature |
| __STATIC_INLINE void DL_CRCP_feedData8 | ( | CRCP_Regs * | crcp, |
| uint8_t | dataIn | ||
| ) |
Feeds 8-bit data into the CRC calculation.
| [in] | crcp | Pointer to the register overlay for the CRCP peripheral |
| [in] | dataIn | 8-bit data value to add to the signature |
| __STATIC_INLINE void DL_CRCP_feedData16 | ( | CRCP_Regs * | crcp, |
| uint16_t | dataIn | ||
| ) |
Feeds 16-bit data into the CRC calculation.
| [in] | crcp | Pointer to the register overlay for the CRCP peripheral |
| [in] | dataIn | 16-bit data value to add to the signature |
| __STATIC_INLINE void DL_CRCP_feedData32 | ( | CRCP_Regs * | crcp, |
| uint32_t | dataIn | ||
| ) |
Feeds 32-bit data into the CRC calculation.
Feeds a 32-bit value into the CRC calculation. 32-bit data can only be used with the 32-bit polynomial.
| [in] | crcp | Pointer to the register overlay for the CRCP peripheral |
| [in] | dataIn | 32 bit data value to add to the signature |
| __STATIC_INLINE uint16_t DL_CRCP_getResult16 | ( | const CRCP_Regs * | crcp | ) |
Returns the result from the 16-bit polynomial calculation.
| [in] | crcp | Pointer to the register overlay for the CRCP peripheral |
| __STATIC_INLINE uint32_t DL_CRCP_getResult32 | ( | const CRCP_Regs * | crcp | ) |
Returns the result from the 32-bit polynomial calculation.
| [in] | crcp | Pointer to the register overlay for the CRCP peripheral |
| __STATIC_INLINE void DL_CRCP_setPolynomial | ( | CRCP_Regs * | crcp, |
| uint32_t | poly | ||
| ) |
Sets the active polynomial terms for the CRC calculation.
The polynomial can be any value represented with MSB first. Thus, in a 16-bit polynomial (where the 16th power is always present), the nth bit corresponds to the inclusion of the nth term of the polynomial. For example, The 16-bit polynomial CCIT x^16 + x^12 + x^5 + 1 is represented as 0x1021. One can craft a custom polynomial, use an existing polynomial, or cast one of the common polynomials in DL_CRCP_CRCPOLY_POLYNOMIAL. If the polynomial size is configured as 16-bit, the upper 16-bits are ignored.
| [in] | crcp | Pointer to the register overlay for the CRCP peripheral |
| [in] | poly | Polynomial to implement (normal representation) |
| __STATIC_INLINE uint32_t DL_CRCP_getPolynomial | ( | const CRCP_Regs * | crcp | ) |
Gets the active polynomial terms for the CRC calculation.
The polynomial can be any value represented as with MSB first. Thus, in a 16-bit polynomial (where the 16th power is always present), the nth bit corresponds to the inclusion of the nth term of the polynomial. For example, The 16-bit polynomial CCIT x^16 + x^12 + x^5 + 1 is represented as 0x1021. If the polynomial size is configured as 16-bit, the upper 16-bits are ignored.
| [in] | crcp | Pointer to the register overlay for the CRCP peripheral |
References DL_CRCP_calculateBlock16(), DL_CRCP_calculateBlock32(), DL_CRCP_calculateMemoryRange16(), and DL_CRCP_calculateMemoryRange32().
| uint32_t DL_CRCP_calculateBlock32 | ( | CRCP_Regs * | crcp, |
| uint32_t | seed, | ||
| const uint32_t * | ptr, | ||
| uint32_t | size | ||
| ) |
Calculates the CRC over a range of 32-bit values.
Uses the 32-bit polynomial to calculate the checksum over a block of values.
| [in] | crcp | Pointer to the register overlay for the CRCP peripheral |
| [in] | seed | The seed for the CRC to start generating a signature from |
| [in] | ptr | A pointer to the block of code to calculate the CRC over |
| [in] | size | The size of the block of uint32_t data |
Referenced by DL_CRCP_getPolynomial().
| uint32_t DL_CRCP_calculateMemoryRange32 | ( | CRCP_Regs * | crcp, |
| uint32_t | seed, | ||
| uint32_t * | ptrStart, | ||
| const uint32_t * | ptrEnd | ||
| ) |
Calculates the CRC over a memory range.
Calculates the checksum using the 32-bit polynomial over any memory range.
| [in] | crcp | Pointer to the register overlay for the CRC peripheral |
| [in] | seed | The seed used to start generating a signature from |
| [in] | ptrStart | A uint32_t pointer to the start of a block of code to calculate the CRC over |
| [in] | ptrEnd | A uint32_t pointer to the end of a block of code to calculate the CRC over |
Referenced by DL_CRCP_getPolynomial().
| uint16_t DL_CRCP_calculateBlock16 | ( | CRCP_Regs * | crcp, |
| uint16_t | seed, | ||
| const uint16_t * | ptr, | ||
| uint16_t | size | ||
| ) |
Calculates the CRC over a range of 16-bit values.
Uses the 16-bit polynomial to calculate the checksum over a block of values.
| [in] | crcp | Pointer to the register overlay for the CRCP peripheral |
| [in] | seed | The seed for the CRCP to start generating a signature from |
| [in] | ptr | A pointer to the block of code to calculate the CRC over |
| [in] | size | The size of the block of 16-bit data |
Referenced by DL_CRCP_getPolynomial().
| uint16_t DL_CRCP_calculateMemoryRange16 | ( | CRCP_Regs * | crcp, |
| uint16_t | seed, | ||
| uint16_t * | ptrStart, | ||
| const uint16_t * | ptrEnd | ||
| ) |
Calculates the CRC over a memory range.
Calculates the checksum using the 16-bit polynomial over any memory range.
| [in] | crcp | Pointer to the register overlay for the CRC peripheral |
| [in] | seed | The seed used to start generating a signature from |
| [in] | ptrStart | A uint16_t pointer to the start of a block of code to calculate the CRC over |
| [in] | ptrEnd | A uint16_t pointer to the end of a block of code to calculate the CRC over |
Referenced by DL_CRCP_getPolynomial().
| __STATIC_INLINE uintptr_t DL_CRCP_getCRCINAddr | ( | const CRCP_Regs * | crcp | ) |
Returns the address of the CRC input data register.
This API can be used with DL_DMA_setDestAddr to set the destination address when using DMA transfers
| [in] | crcp | Pointer to the register overlay for the CRC peripheral |