21 #ifndef STM32H7xx_HAL_CRC_EX_H
22 #define STM32H7xx_HAL_CRC_EX_H
48 #define CRC_INPUTDATA_INVERSION_NONE 0x00000000U
49 #define CRC_INPUTDATA_INVERSION_BYTE CRC_CR_REV_IN_0
50 #define CRC_INPUTDATA_INVERSION_HALFWORD CRC_CR_REV_IN_1
51 #define CRC_INPUTDATA_INVERSION_WORD CRC_CR_REV_IN
59 #define CRC_OUTPUTDATA_INVERSION_DISABLE 0x00000000U
60 #define CRC_OUTPUTDATA_INVERSION_ENABLE CRC_CR_REV_OUT
79 #define __HAL_CRC_OUTPUTREVERSAL_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= CRC_CR_REV_OUT)
86 #define __HAL_CRC_OUTPUTREVERSAL_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~(CRC_CR_REV_OUT))
94 #define __HAL_CRC_POLYNOMIAL_CONFIG(__HANDLE__, __POLYNOMIAL__) ((__HANDLE__)->Instance->POL = (__POLYNOMIAL__))
105 #define IS_CRC_INPUTDATA_INVERSION_MODE(MODE) (((MODE) == CRC_INPUTDATA_INVERSION_NONE) || \
106 ((MODE) == CRC_INPUTDATA_INVERSION_BYTE) || \
107 ((MODE) == CRC_INPUTDATA_INVERSION_HALFWORD) || \
108 ((MODE) == CRC_INPUTDATA_INVERSION_WORD))
110 #define IS_CRC_OUTPUTDATA_INVERSION_MODE(MODE) (((MODE) == CRC_OUTPUTDATA_INVERSION_DISABLE) || \
111 ((MODE) == CRC_OUTPUTDATA_INVERSION_ENABLE))