Driverlib CRCP API
Module: Driverlib (AM13E230X) APIs
Types
Name |
|
|---|---|
enum |
DL_CRCP_POLYNOMIAL_SIZE { DL_CRCP_POLYNOMIAL_SIZE_16 = CRCP_CRCCTRL_POLYSIZE_CRC16, DL_CRCP_POLYNOMIAL_SIZE_32 = CRCP_CRCCTRL_POLYSIZE_CRC32} |
enum |
DL_CRCP_BIT { DL_CRCP_BIT_REVERSED = CRCP_CRCCTRL_BITREVERSE_REVERSED, DL_CRCP_BIT_NOT_REVERSED = CRCP_CRCCTRL_BITREVERSE_NOT_REVERSED} |
enum |
DL_CRCP_INPUT_ENDIANESS { DL_CRCP_INPUT_ENDIANESS_LITTLE_ENDIAN = CRCP_CRCCTRL_INPUT_ENDIANNESS_LITTLE_ENDIAN, DL_CRCP_INPUT_ENDIANESS_BIG_ENDIAN = CRCP_CRCCTRL_INPUT_ENDIANNESS_BIG_ENDIAN} |
enum |
DL_CRCP_OUTPUT_BYTESWAP { DL_CRCP_OUTPUT_BYTESWAP_ENABLED = CRCP_CRCCTRL_OUTPUT_BYTESWAP_ENABLE, DL_CRCP_OUTPUT_BYTESWAP_DISABLED = CRCP_CRCCTRL_OUTPUT_BYTESWAP_DISABLE} |
enum |
DL_CRCP_CRCPOLY_POLYNOMIAL { DL_CRCP_CRCPOLY_POLYNOMIAL_32_MPEG2 = 0x04C11DB7U, DL_CRCP_CRCPOLY_POLYNOMIAL_32_Q = 0x814141ABU, DL_CRCP_CRCPOLY_POLYNOMIAL_32_JAMCRC = 0x04C11DB7U, DL_CRCP_CRCPOLY_POLYNOMIAL_32_XFER = 0x000000AFU, DL_CRCP_CRCPOLY_POLYNOMIAL_16_CCIT_ZERO = 0x00001021U, DL_CRCP_CRCPOLY_POLYNOMIAL_16_ARC = 0x00001DCFU, DL_CRCP_CRCPOLY_POLYNOMIAL_16_AUG_CCIT = 0x00001021U, DL_CRCP_CRCPOLY_POLYNOMIAL_16_BUYPASS = 0x00008005U, DL_CRCP_CRCPOLY_POLYNOMIAL_16_CCIT_FALSE = 0x00001021U, DL_CRCP_CRCPOLY_POLYNOMIAL_16_CDMA2000 = 0x0000C867U, DL_CRCP_CRCPOLY_POLYNOMIAL_16_MODBUS = 0x00001DCFU} |
enum |
DL_CRCP_CRCSEED_SEED { DL_CRCP_CRCSEED_SEED_32_MPEG2 = 0xFFFFFFFFU, DL_CRCP_CRCSEED_SEED_32_Q = 0x00000000U, DL_CRCP_CRCSEED_SEED_32_JAMCRC = 0xFFFFFFFFU, DL_CRCP_CRCSEED_SEED_32_XFER = 0x00000000U, DL_CRCP_CRCSEED_SEED_16_CCIT_ZERO = 0x0000U, DL_CRCP_CRCSEED_SEED_16_ARC = 0x0000U, DL_CRCP_CRCSEED_SEED_16_AUG_CCIT = 0x1D0FU, DL_CRCP_CRCSEED_SEED_16_BUYPASS = 0x0000U, DL_CRCP_CRCSEED_SEED_16_CCIT_FALSE = 0xFFFFU, DL_CRCP_CRCSEED_SEED_16_CDMA2000 = 0xFFFFU, DL_CRCP_CRCSEED_SEED_16_MODBUS = 0xFFFFU} |
Functions
Name |
|
|---|---|
__STATIC_INLINE void |
DL_CRCP_enablePower(CRCP_Regs * crcp) |
__STATIC_INLINE void |
DL_CRCP_disablePower(CRCP_Regs * crcp) |
__STATIC_INLINE bool |
DL_CRCP_isPowerEnabled(const CRCP_Regs * crcp) |
__STATIC_INLINE void |
DL_CRCP_reset(CRCP_Regs * crcp) |
__STATIC_INLINE bool |
DL_CRCP_isReset(const CRCP_Regs * crcp) |
__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) |
__STATIC_INLINE void |
DL_CRCP_setSeed16(CRCP_Regs * crcp, uint16_t seed) |
__STATIC_INLINE void |
DL_CRCP_setSeed32(CRCP_Regs * crcp, uint32_t seed) |
__STATIC_INLINE void |
DL_CRCP_feedData8(CRCP_Regs * crcp, uint8_t dataIn) |
__STATIC_INLINE void |
DL_CRCP_feedData16(CRCP_Regs * crcp, uint16_t dataIn) |
__STATIC_INLINE void |
DL_CRCP_feedData32(CRCP_Regs * crcp, uint32_t dataIn) |
__STATIC_INLINE uint16_t |
DL_CRCP_getResult16(const CRCP_Regs * crcp) |
__STATIC_INLINE uint32_t |
DL_CRCP_getResult32(const CRCP_Regs * crcp) |
__STATIC_INLINE void |
DL_CRCP_setPolynomial(CRCP_Regs * crcp, uint32_t poly) |
__STATIC_INLINE uint32_t |
DL_CRCP_getPolynomial(const CRCP_Regs * crcp) |
uint32_t |
DL_CRCP_calculateBlock32(CRCP_Regs * crcp, uint32_t seed, const uint32_t * ptr, uint32_t size) |
uint32_t |
DL_CRCP_calculateMemoryRange32(CRCP_Regs * crcp, uint32_t seed, uint32_t * ptrStart, const uint32_t * ptrEnd) |
uint16_t |
DL_CRCP_calculateBlock16(CRCP_Regs * crcp, uint16_t seed, const uint16_t * ptr, uint16_t size) |
uint16_t |
DL_CRCP_calculateMemoryRange16(CRCP_Regs * crcp, uint16_t seed, uint16_t * ptrStart, const uint16_t * ptrEnd) |
__STATIC_INLINE uintptr_t |
DL_CRCP_getCRCINAddr(const CRCP_Regs * crcp) |
Detailed Description
The CRCP DriverLib allows full configuration of the 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:
CRC32-IS03309
CRC16-ITT
CRC-32C
CRC-32K
CRC-16-Profibus
Types Documentation
enum DL_CRCP_POLYNOMIAL_SIZE
Enumerator |
Value |
Description |
|---|---|---|
DL_CRCP_POLYNOMIAL_SIZE_16 |
CRCP_CRCCTRL_POLYSIZE_CRC16 |
Use lower 16-bit value of CRCPOLY as polynomial for calculation. Upon reset, user will need to update polynomial value for 16-bits, such as the CRC-16-CCITT standard of 0x1021. |
DL_CRCP_POLYNOMIAL_SIZE_32 |
CRCP_CRCCTRL_POLYSIZE_CRC32 |
Use 32-bit polynomial value of CRCPOLY as polynomial for calculation. Defaults to the CRC32-ISO3309 standard value of 0x04C11DB7. |
enum DL_CRCP_BIT
Enumerator |
Value |
Description |
|---|---|---|
DL_CRCP_BIT_REVERSED |
CRCP_CRCCTRL_BITREVERSE_REVERSED |
CRCP Bit Input and output bit orders are reversed |
DL_CRCP_BIT_NOT_REVERSED |
CRCP_CRCCTRL_BITREVERSE_NOT_REVERSED |
CRCP Bit Input and output are not reversed |
enum DL_CRCP_INPUT_ENDIANESS
Enumerator |
Value |
Description |
|---|---|---|
DL_CRCP_INPUT_ENDIANESS_LITTLE_ENDIAN |
CRCP_CRCCTRL_INPUT_ENDIANNESS_LITTLE_ENDIAN |
CRCP Input is proccessed in little endian. LSB is lowest memory address and first to be processed. |
DL_CRCP_INPUT_ENDIANESS_BIG_ENDIAN |
CRCP_CRCCTRL_INPUT_ENDIANNESS_BIG_ENDIAN |
CRCP Input is proccessed in big endian. LSB is highest memory address and last to be processed. |
enum DL_CRCP_OUTPUT_BYTESWAP
Enumerator |
Value |
Description |
|---|---|---|
DL_CRCP_OUTPUT_BYTESWAP_ENABLED |
CRCP_CRCCTRL_OUTPUT_BYTESWAP_ENABLE |
CRCP output byteswap is enabled |
DL_CRCP_OUTPUT_BYTESWAP_DISABLED |
CRCP_CRCCTRL_OUTPUT_BYTESWAP_DISABLE |
CRCP output byteswap is disabled |
enum DL_CRCP_CRCPOLY_POLYNOMIAL
Enumerator |
Value |
Description |
|---|---|---|
DL_CRCP_CRCPOLY_POLYNOMIAL_32_MPEG2 |
0x04C11DB7U |
CRCP commonly used polynomial CRC32_MPEG2. To match online output, seed value must be set to 0xFFFFFFFF |
DL_CRCP_CRCPOLY_POLYNOMIAL_32_Q |
0x814141ABU |
CRCP commonly used polynomial CRC32_Q. To match online output, seed value must be set to 0x00000000 |
DL_CRCP_CRCPOLY_POLYNOMIAL_32_JAMCRC |
0x04C11DB7U |
CRCP commonly used polynomial CRC32_JAMCRC. To match online output, seed value must be set to 0xFFFFFFFF and bit order reversed |
DL_CRCP_CRCPOLY_POLYNOMIAL_32_XFER |
0x000000AFU |
CRCP commonly used polynomial CRC32_XFER. To match online output, seed value must be set to 0x00000000 |
DL_CRCP_CRCPOLY_POLYNOMIAL_16_CCIT_ZERO |
0x00001021U |
CRCP commonly used polynomial CRC16_CCIT_ZERO. To match online output, seed value must be set to 0x0000 |
DL_CRCP_CRCPOLY_POLYNOMIAL_16_ARC |
0x00001DCFU |
CRCP commonly used polynomial CRC16_ARC. To match online output, seed value must be set to 0x0000 and bit order reversed |
DL_CRCP_CRCPOLY_POLYNOMIAL_16_AUG_CCIT |
0x00001021U |
CRCP commonly used polynomial CRC16_AUG_CCIT. To match online output, seed value must be set to 0x1D0F |
DL_CRCP_CRCPOLY_POLYNOMIAL_16_BUYPASS |
0x00008005U |
CRCP commonly used polynomial CRC16_BUYPASS. To match online output, seed value must be set to 0x0000 |
DL_CRCP_CRCPOLY_POLYNOMIAL_16_CCIT_FALSE |
0x00001021U |
CRCP commonly used polynomial CRC16_CCIT_FALSE. To match online output, seed value must be set to 0xFFFF |
DL_CRCP_CRCPOLY_POLYNOMIAL_16_CDMA2000 |
0x0000C867U |
CRCP commonly used polynomial CRC16_CDMA2000. To match online output, seed value must be set to 0xFFFF |
DL_CRCP_CRCPOLY_POLYNOMIAL_16_MODBUS |
0x00001DCFU |
CRCP commonly used polynomial CRC16_MODBUS. To match online output, seed value must be set to 0xFFFF and bit order reversed |
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
Enumerator |
Value |
Description |
|---|---|---|
DL_CRCP_CRCSEED_SEED_32_MPEG2 |
0xFFFFFFFFU |
CRCP commonly used polynomial CRC32_MPEG2. To match online output, polynomial must be set to 0x04C11DB7 |
DL_CRCP_CRCSEED_SEED_32_Q |
0x00000000U |
CRCP commonly used polynomial CRC32_Q. To match online output, polynomial must be set to 0x814141AB |
DL_CRCP_CRCSEED_SEED_32_JAMCRC |
0xFFFFFFFFU |
CRCP commonly used polynomial CRC32_JAMCRC. To match online output, polynomial must be set to 0x04C11DB7 and bit order reversed |
DL_CRCP_CRCSEED_SEED_32_XFER |
0x00000000U |
CRCP commonly used polynomial CRC32_XFER. To match online output, polynomial must be set to 0x000000AF |
DL_CRCP_CRCSEED_SEED_16_CCIT_ZERO |
0x0000U |
CRCP commonly used polynomial CRC16_CCIT_ZERO. To match online output, polynomial must be set to 0x00001021 |
DL_CRCP_CRCSEED_SEED_16_ARC |
0x0000U |
CRCP commonly used polynomial CRC16_ARC. To match online output, polynomial must be set to 0x00001DCF and bit order reversed |
DL_CRCP_CRCSEED_SEED_16_AUG_CCIT |
0x1D0FU |
CRCP commonly used polynomial CRC16_AUG_CCIT. To match online output, polynomial must be set to 0x00001021 |
DL_CRCP_CRCSEED_SEED_16_BUYPASS |
0x0000U |
CRCP commonly used polynomial CRC16_BUYPASS. To match online output, polynomial must be set to 0x00008005 |
DL_CRCP_CRCSEED_SEED_16_CCIT_FALSE |
0xFFFFU |
CRCP commonly used polynomial CRC16_CCIT_FALSE. To match online output, polynomial must be set to 0x00001021 |
DL_CRCP_CRCSEED_SEED_16_CDMA2000 |
0xFFFFU |
CRCP commonly used polynomial CRC16_CDMA2000. To match online output, polynomial must be set to 0x0000C867 |
DL_CRCP_CRCSEED_SEED_16_MODBUS |
0xFFFFU |
CRCP commonly used polynomial CRC16_MODBUS. To match online output, polynomial must be set to 0x00001DCF and bit order reversed |
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.
Functions Documentation
function DL_CRCP_enablePower
__STATIC_INLINE void DL_CRCP_enablePower(
CRCP_Regs * crcp
)
Enables the Peripheral Write Enable (PWREN) register for the CRCP.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
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.
function DL_CRCP_disablePower
__STATIC_INLINE void DL_CRCP_disablePower(
CRCP_Regs * crcp
)
Disables the Peripheral Write Enable (PWREN) register for the CRCP.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
Note: This API does not provide large power savings.
When the PWREN.ENABLE bit is cleared, the peripheral’s registers are not accessible for read/write operations.
function DL_CRCP_isPowerEnabled
__STATIC_INLINE bool DL_CRCP_isPowerEnabled(
const CRCP_Regs * crcp
)
Returns if the Peripheral Write Enable (PWREN) register for the CRCP is enabled.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
Return:
true if peripheral register access is enabled
false if peripheral register access is disabled
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.
function DL_CRCP_reset
__STATIC_INLINE void DL_CRCP_reset(
CRCP_Regs * crcp
)
Resets CRCP peripheral.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
function DL_CRCP_isReset
__STATIC_INLINE bool DL_CRCP_isReset(
const CRCP_Regs * crcp
)
Returns if CRCP module has been reset.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
Return:
true if peripheral was reset
false if peripheral wasn’t reset
function DL_CRCP_init
__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.
Parameters:
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.
function DL_CRCP_setSeed16
__STATIC_INLINE void DL_CRCP_setSeed16(
CRCP_Regs * crcp,
uint16_t seed
)
Initializes the seed for a 16-bit polynomial CRC calculation.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
seed The seed from which to start generating a signature
Note: CRC seed is swapped when CRCP module is configured in big-endian mode. For example when calling DL_CRCP_setSeed32(CRC, 0xaabb). The CRCP module will be initialized with 0xbbaa. Therefore, the seed value should be appropriately specified taking endianness into account. Please refer to the device TRM for additional detail.
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.
function DL_CRCP_setSeed32
__STATIC_INLINE void DL_CRCP_setSeed32(
CRCP_Regs * crcp,
uint32_t seed
)
Initializes the seed for a 32-bit polynomial CRC calculation.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
seed The seed from which to start generating a signature
Note: CRC seed is swapped when CRCP module is configured in big-endian mode. For example when calling DL_CRCP_setSeed32(CRC, 0xaabbccdd). The CRCP module will be initialized with 0xddccbbaa. Therefore, the seed value should be appropriately specified taking endianness into account. Please refer to the device TRM for additional detail.
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.
function DL_CRCP_feedData8
__STATIC_INLINE void DL_CRCP_feedData8(
CRCP_Regs * crcp,
uint8_t dataIn
)
Feeds 8-bit data into the CRC calculation.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
dataIn 8-bit data value to add to the signature
function DL_CRCP_feedData16
__STATIC_INLINE void DL_CRCP_feedData16(
CRCP_Regs * crcp,
uint16_t dataIn
)
Feeds 16-bit data into the CRC calculation.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
dataIn 16-bit data value to add to the signature
function DL_CRCP_feedData32
__STATIC_INLINE void DL_CRCP_feedData32(
CRCP_Regs * crcp,
uint32_t dataIn
)
Feeds 32-bit data into the CRC calculation.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
dataIn 32 bit data value to add to the signature
Feeds a 32-bit value into the CRC calculation. 32-bit data can only be used with the 32-bit polynomial.
function DL_CRCP_getResult16
__STATIC_INLINE uint16_t DL_CRCP_getResult16(
const CRCP_Regs * crcp
)
Returns the result from the 16-bit polynomial calculation.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
Return: The calculation result for the 16-bit polynomial
Note: CRC Output will be swapped if the CRCP module is configured in byte-swap mode. For example, if enabled and CRCOUT register has the value 0xaabbccdd, DL_CRCP_getResult16 would return 0xddcc. Please refer to the TRM for more information.
function DL_CRCP_getResult32
__STATIC_INLINE uint32_t DL_CRCP_getResult32(
const CRCP_Regs * crcp
)
Returns the result from the 32-bit polynomial calculation.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
Return: The calculation result for the 32-bit polynomial
Note: CRC Output will be swapped if the CRCP module is configured in byte-swap mode. For example, if enabled and CRCOUT register has value 0xaabbccdd, DL_CRCP_getResult32 would return 0xddccbbaa in the 32-bit case, and 0x0000ddcc. In the 16-bit case. Additionally, if byte-swap is disabled, the 16-bit size would return 0x0000ccdd. Please refer to the TRM for more information.
function DL_CRCP_setPolynomial
__STATIC_INLINE void DL_CRCP_setPolynomial(
CRCP_Regs * crcp,
uint32_t poly
)
Sets the active polynomial terms for the CRC calculation.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
poly Polynomial to implement (normal representation)
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.
function DL_CRCP_getPolynomial
__STATIC_INLINE uint32_t DL_CRCP_getPolynomial(
const CRCP_Regs * crcp
)
Gets the active polynomial terms for the CRC calculation.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
Return: Active polynomial (normal representation)
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.
function DL_CRCP_calculateBlock32
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.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
seed The seed for the CRC to start generating a signature from
ptr A pointer to the block of code to calculate the CRC over
size The size of the block of uint32_t data
Return: The calculated CRC signature value
Uses the 32-bit polynomial to calculate the checksum over a block of values.
function DL_CRCP_calculateMemoryRange32
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.
Parameters:
crcp Pointer to the register overlay for the CRC peripheral
seed The seed used to start generating a signature from
ptrStart A uint32_t pointer to the start of a block of code to calculate the CRC over
ptrEnd A uint32_t pointer to the end of a block of code to calculate the CRC over
Return: The calculated CRC signature value
Calculates the checksum using the 32-bit polynomial over any memory range.
function DL_CRCP_calculateBlock16
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.
Parameters:
crcp Pointer to the register overlay for the CRCP peripheral
seed The seed for the CRCP to start generating a signature from
ptr A pointer to the block of code to calculate the CRC over
size The size of the block of 16-bit data
Return: The calculated CRC signature value
Uses the 16-bit polynomial to calculate the checksum over a block of values.
function DL_CRCP_calculateMemoryRange16
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.
Parameters:
crcp Pointer to the register overlay for the CRC peripheral
seed The seed used to start generating a signature from
ptrStart A uint16_t pointer to the start of a block of code to calculate the CRC over
ptrEnd A uint16_t pointer to the end of a block of code to calculate the CRC over
Return: The calculated CRC signature value
Calculates the checksum using the 16-bit polynomial over any memory range.
function DL_CRCP_getCRCINAddr
__STATIC_INLINE uintptr_t DL_CRCP_getCRCINAddr(
const CRCP_Regs * crcp
)
Returns the address of the CRC input data register.
Parameters:
crcp Pointer to the register overlay for the CRC peripheral
Return: 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