Initialization and Configuration functions.
More...
Initialization and Configuration functions.
===============================================================================
##### Initialization and de-initialization functions #####
===============================================================================
[..] This section provides functions allowing to:
(+) Initialize the CRC according to the specified parameters
in the CRC_InitTypeDef and create the associated handle
(+) DeInitialize the CRC peripheral
(+) Initialize the CRC MSP (MCU Specific Package)
(+) DeInitialize the CRC MSP
◆ HAL_CRC_DeInit()
DeInitialize the CRC peripheral.
- Parameters
-
- Return values
-
Definition at line 179 of file stm32l4xx_hal_crc.c.
200 __HAL_CRC_DR_RESET(hcrc);
__IO HAL_CRC_StateTypeDef State
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
void HAL_CRC_MspDeInit(CRC_HandleTypeDef *hcrc)
DeInitialize the CRC MSP.
◆ HAL_CRC_Init()
Initialize the CRC according to the specified parameters in the CRC_InitTypeDef and create the associated handle.
- Parameters
-
- Return values
-
Definition at line 103 of file stm32l4xx_hal_crc.c.
130 WRITE_REG(hcrc->
Instance->POL, DEFAULT_CRC32_POLY);
147 WRITE_REG(hcrc->
Instance->INIT, DEFAULT_CRC_INITVALUE);
uint32_t OutputDataInversionMode
uint32_t GeneratingPolynomial
__IO HAL_CRC_StateTypeDef State
void HAL_CRC_MspInit(CRC_HandleTypeDef *hcrc)
Initializes the CRC MSP.
uint8_t DefaultPolynomialUse
HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength)
Initialize the CRC polynomial if different from default one.
uint32_t InputDataInversionMode
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)
uint8_t DefaultInitValueUse
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_CRC_MspDeInit()
◆ HAL_CRC_MspInit()