Macros | |
#define | __HAL_RNG_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->State = HAL_RNG_STATE_RESET) |
Reset RNG handle state. More... | |
#define | __HAL_RNG_COMMAND(__HANDLE__, CMD) (__HANDLE__)->Instance->CTRL=CMD |
RNG module command. More... | |
#define | __HAL_RNG_ENABLE(__HANDLE__) |
Enable the RNG peripheral. More... | |
#define | __HAL_RNG_DISABLE(__HANDLE__) |
Disable the RNG peripheral. More... | |
#define | __HAL_RNG_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->STAT & (__FLAG__)) == (__FLAG__)) |
Check whether the specified RNG flag is set or not. More... | |
#define | __HAL_RNG_CLEAR_FLAG(__HANDLE__, __FLAG__) /* dummy macro */ |
Clear the selected RNG flag status. More... | |
#define | __HAL_RNG_ENABLE_IT(__HANDLE__) |
Enable the RNG interrupt. More... | |
#define | __HAL_RNG_DISABLE_IT(__HANDLE__) |
Disable the RNG interrupt. More... | |
#define | __HAL_RNG_GET_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->IRQ & (__INTERRUPT__)) == (__INTERRUPT__)) |
Check whether the specified RNG interrupt has occurred or not. More... | |
#define | __HAL_RNG_CLEAR_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->IRQ) = (__INTERRUPT__)) |
Clear the RNG interrupt status flags. More... | |
#define __HAL_RNG_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | /* dummy macro */ |
Clear the selected RNG flag status.
__HANDLE__ | RNG handle |
__FLAG__ | RNG flag to clear |
None |
#define __HAL_RNG_CLEAR_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->IRQ) = (__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 |
#define __HAL_RNG_COMMAND | ( | __HANDLE__, | |
CMD | |||
) | (__HANDLE__)->Instance->CTRL=CMD |
RNG module command.
__HANDLE__ | RNG Handle |
CMD | RNG command This parameter can be one of the following values:
|
None |
#define __HAL_RNG_DISABLE | ( | __HANDLE__ | ) |
Disable the RNG peripheral.
__HANDLE__ | RNG Handle |
None |
#define __HAL_RNG_DISABLE_IT | ( | __HANDLE__ | ) |
Disable the RNG interrupt.
__HANDLE__ | RNG Handle |
None |
#define __HAL_RNG_ENABLE | ( | __HANDLE__ | ) |
Enable the RNG peripheral.
__HANDLE__ | RNG Handle |
None |
#define __HAL_RNG_ENABLE_IT | ( | __HANDLE__ | ) |
Enable the RNG interrupt.
__HANDLE__ | RNG Handle |
None |
#define __HAL_RNG_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((__HANDLE__)->Instance->STAT & (__FLAG__)) == (__FLAG__)) |
Check whether the specified RNG flag is set or not.
__HANDLE__ | RNG Handle |
__FLAG__ | RNG flag This parameter can be one of the following values:
|
The | new state of FLAG (SET or RESET). |
#define __HAL_RNG_GET_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->IRQ & (__INTERRUPT__)) == (__INTERRUPT__)) |
Check 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). |
#define __HAL_RNG_RESET_HANDLE_STATE | ( | __HANDLE__ | ) | ((__HANDLE__)->State = HAL_RNG_STATE_RESET) |
Reset RNG handle state.
__HANDLE__ | RNG Handle |
None |