RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Macros
CRC Extended Exported Macros

Macros

#define __HAL_CRC_OUTPUTREVERSAL_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR |= CRC_CR_REV_OUT)
 Set CRC output reversal.
 
#define __HAL_CRC_OUTPUTREVERSAL_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR &= ~(CRC_CR_REV_OUT))
 Unset CRC output reversal.
 
#define __HAL_CRC_POLYNOMIAL_CONFIG(__HANDLE__, __POLYNOMIAL__)   ((__HANDLE__)->Instance->POL = (__POLYNOMIAL__))
 Set CRC non-default polynomial.
 

Detailed Description

Macro Definition Documentation

◆ __HAL_CRC_OUTPUTREVERSAL_DISABLE

#define __HAL_CRC_OUTPUTREVERSAL_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR &= ~(CRC_CR_REV_OUT))

Unset CRC output reversal.

Parameters
__HANDLE__CRC handle
Return values
None

◆ __HAL_CRC_OUTPUTREVERSAL_ENABLE

#define __HAL_CRC_OUTPUTREVERSAL_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR |= CRC_CR_REV_OUT)

Set CRC output reversal.

Parameters
__HANDLE__CRC handle
Return values
None

◆ __HAL_CRC_POLYNOMIAL_CONFIG

#define __HAL_CRC_POLYNOMIAL_CONFIG (   __HANDLE__,
  __POLYNOMIAL__ 
)    ((__HANDLE__)->Instance->POL = (__POLYNOMIAL__))

Set CRC non-default polynomial.

Parameters
__HANDLE__CRC handle
__POLYNOMIAL__7, 8, 16 or 32-bit polynomial
Return values
None