|
STM32L443xx HAL User Manual
|
Defines | |
| #define | __HAL_RNG_RESET_HANDLE_STATE(__HANDLE__) |
| Reset RNG handle state. | |
| #define | __HAL_RNG_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= RNG_CR_RNGEN) |
| Enables the RNG peripheral. | |
| #define | __HAL_RNG_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~RNG_CR_RNGEN) |
| Disables the RNG peripheral. | |
| #define | __HAL_RNG_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
| Check the selected RNG flag status. | |
| #define | __HAL_RNG_CLEAR_FLAG(__HANDLE__, __FLAG__) /* dummy macro */ |
| Clears the selected RNG flag status. | |
| #define | __HAL_RNG_ENABLE_IT(__HANDLE__) ((__HANDLE__)->Instance->CR |= RNG_CR_IE) |
| Enables the RNG interrupts. | |
| #define | __HAL_RNG_DISABLE_IT(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~RNG_CR_IE) |
| Disables the RNG interrupts. | |
| #define | __HAL_RNG_GET_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->SR & (__INTERRUPT__)) == (__INTERRUPT__)) |
| Checks whether the specified RNG interrupt has occurred or not. | |
| #define | __HAL_RNG_CLEAR_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->SR) = ~(__INTERRUPT__)) |
| Clear the RNG interrupt status flags. | |
| #define __HAL_RNG_CLEAR_FLAG | ( | __HANDLE__, | |
| __FLAG__ | |||
| ) | /* dummy macro */ |
Clears the selected RNG flag status.
| __HANDLE__ | RNG handle |
| __FLAG__ | RNG flag to clear |
| None |
Definition at line 248 of file stm32l4xx_hal_rng.h.
| #define __HAL_RNG_CLEAR_IT | ( | __HANDLE__, | |
| __INTERRUPT__ | |||
| ) | (((__HANDLE__)->Instance->SR) = ~(__INTERRUPT__)) |
Clear the RNG interrupt status flags.
| __HANDLE__ | RNG Handle |
| __INTERRUPT__ | specifies the RNG interrupt status flag to clear. This parameter can be one of the following values:
|
| None |
Definition at line 286 of file stm32l4xx_hal_rng.h.
Referenced by HAL_RNG_IRQHandler().
| #define __HAL_RNG_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR &= ~RNG_CR_RNGEN) |
Disables the RNG peripheral.
| __HANDLE__ | RNG Handle |
| None |
Definition at line 226 of file stm32l4xx_hal_rng.h.
Referenced by HAL_RNG_Init().
| #define __HAL_RNG_DISABLE_IT | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR &= ~RNG_CR_IE) |
Disables the RNG interrupts.
| __HANDLE__ | RNG Handle |
| None |
Definition at line 262 of file stm32l4xx_hal_rng.h.
Referenced by HAL_RNG_IRQHandler().
| #define __HAL_RNG_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR |= RNG_CR_RNGEN) |
Enables the RNG peripheral.
| __HANDLE__ | RNG Handle |
| None |
Definition at line 219 of file stm32l4xx_hal_rng.h.
Referenced by HAL_RNG_Init().
| #define __HAL_RNG_ENABLE_IT | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR |= RNG_CR_IE) |
Enables the RNG interrupts.
| __HANDLE__ | RNG Handle |
| None |
Definition at line 255 of file stm32l4xx_hal_rng.h.
Referenced by HAL_RNG_GenerateRandomNumber_IT(), and HAL_RNG_GetRandomNumber_IT().
| #define __HAL_RNG_GET_FLAG | ( | __HANDLE__, | |
| __FLAG__ | |||
| ) | (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
Check the selected RNG flag status.
| __HANDLE__ | RNG Handle |
| __FLAG__ | RNG flag This parameter can be one of the following values:
|
| The | new state of __FLAG__ (SET or RESET). |
Definition at line 238 of file stm32l4xx_hal_rng.h.
Referenced by HAL_RNG_GenerateRandomNumber(), and HAL_RNG_Init().
| #define __HAL_RNG_GET_IT | ( | __HANDLE__, | |
| __INTERRUPT__ | |||
| ) | (((__HANDLE__)->Instance->SR & (__INTERRUPT__)) == (__INTERRUPT__)) |
Checks whether the specified RNG interrupt has occurred or not.
| __HANDLE__ | RNG Handle |
| __INTERRUPT__ | specifies the RNG interrupt status flag to check. This parameter can be one of the following values:
|
| The | new state of __INTERRUPT__ (SET or RESET). |
Definition at line 274 of file stm32l4xx_hal_rng.h.
Referenced by HAL_RNG_Init(), and HAL_RNG_IRQHandler().
| #define __HAL_RNG_RESET_HANDLE_STATE | ( | __HANDLE__ | ) |
do{ \ (__HANDLE__)->State = HAL_RNG_STATE_RESET; \ (__HANDLE__)->MspInitCallback = NULL; \ (__HANDLE__)->MspDeInitCallback = NULL; \ } while(0U)
Reset RNG handle state.
| __HANDLE__ | RNG Handle |
| None |
Definition at line 205 of file stm32l4xx_hal_rng.h.
1.7.6.1