STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros
RNG Exported Macros

Macros

#define __HAL_RNG_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->State = HAL_RNG_STATE_RESET)
 Reset RNG handle state. More...
 
#define __HAL_RNG_ENABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR |= RNG_CR_RNGEN)
 Enables the RNG peripheral. More...
 
#define __HAL_RNG_DISABLE(__HANDLE__)   ((__HANDLE__)->Instance->CR &= ~RNG_CR_RNGEN)
 Disables the RNG peripheral. More...
 
#define __HAL_RNG_GET_FLAG(__HANDLE__, __FLAG__)   (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))
 Check the selected RNG flag status. More...
 
#define __HAL_RNG_CLEAR_FLAG(__HANDLE__, __FLAG__)    /* dummy macro */
 Clears the selected RNG flag status. More...
 
#define __HAL_RNG_ENABLE_IT(__HANDLE__)   ((__HANDLE__)->Instance->CR |= RNG_CR_IE)
 Enables the RNG interrupts. More...
 
#define __HAL_RNG_DISABLE_IT(__HANDLE__)   ((__HANDLE__)->Instance->CR &= ~RNG_CR_IE)
 Disables the RNG interrupts. More...
 
#define __HAL_RNG_GET_IT(__HANDLE__, __INTERRUPT__)   (((__HANDLE__)->Instance->SR & (__INTERRUPT__)) == (__INTERRUPT__))
 Checks whether the specified RNG interrupt has occurred or not. More...
 
#define __HAL_RNG_CLEAR_IT(__HANDLE__, __INTERRUPT__)   (((__HANDLE__)->Instance->SR) = ~(__INTERRUPT__))
 Clear the RNG interrupt status flags. More...
 

Detailed Description

Macro Definition Documentation

#define __HAL_RNG_CLEAR_FLAG (   __HANDLE__,
  __FLAG__ 
)    /* dummy macro */

Clears the selected RNG flag status.

Parameters
<strong>HANDLE</strong>RNG handle
<strong>FLAG</strong>RNG flag to clear
Note
WARNING: This is a dummy macro for HAL code alignment, flags RNG_FLAG_DRDY, RNG_FLAG_CECS and RNG_FLAG_SECS are read-only.
Return values
None

Definition at line 181 of file stm32f7xx_hal_rng.h.

#define __HAL_RNG_CLEAR_IT (   __HANDLE__,
  __INTERRUPT__ 
)    (((__HANDLE__)->Instance->SR) = ~(__INTERRUPT__))

Clear the RNG interrupt status flags.

Parameters
<strong>HANDLE</strong>RNG Handle
<strong>INTERRUPT</strong>specifies the RNG interrupt status flag to clear. This parameter can be one of the following values:
  • RNG_IT_CEI: Clock error interrupt
  • RNG_IT_SEI: Seed error interrupt
Note
RNG_IT_DRDY flag is read-only, reading RNG_DR register automatically clears RNG_IT_DRDY.
Return values
None

Definition at line 221 of file stm32f7xx_hal_rng.h.

#define __HAL_RNG_DISABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR &= ~RNG_CR_RNGEN)

Disables the RNG peripheral.

Parameters
<strong>HANDLE</strong>RNG Handle
Return values
None

Definition at line 159 of file stm32f7xx_hal_rng.h.

#define __HAL_RNG_DISABLE_IT (   __HANDLE__)    ((__HANDLE__)->Instance->CR &= ~RNG_CR_IE)

Disables the RNG interrupts.

Parameters
<strong>HANDLE</strong>RNG Handle
Return values
None

Definition at line 197 of file stm32f7xx_hal_rng.h.

#define __HAL_RNG_ENABLE (   __HANDLE__)    ((__HANDLE__)->Instance->CR |= RNG_CR_RNGEN)

Enables the RNG peripheral.

Parameters
<strong>HANDLE</strong>RNG Handle
Return values
None

Definition at line 152 of file stm32f7xx_hal_rng.h.

#define __HAL_RNG_ENABLE_IT (   __HANDLE__)    ((__HANDLE__)->Instance->CR |= RNG_CR_IE)

Enables the RNG interrupts.

Parameters
<strong>HANDLE</strong>RNG Handle
Return values
None

Definition at line 190 of file stm32f7xx_hal_rng.h.

#define __HAL_RNG_GET_FLAG (   __HANDLE__,
  __FLAG__ 
)    (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))

Check the selected RNG flag status.

Parameters
<strong>HANDLE</strong>RNG Handle
<strong>FLAG</strong>RNG flag This parameter can be one of the following values:
  • RNG_FLAG_DRDY: Data ready
  • RNG_FLAG_CECS: Clock error current status
  • RNG_FLAG_SECS: Seed error current status
Return values
Thenew state of FLAG (SET or RESET).

Definition at line 171 of file stm32f7xx_hal_rng.h.

#define __HAL_RNG_GET_IT (   __HANDLE__,
  __INTERRUPT__ 
)    (((__HANDLE__)->Instance->SR & (__INTERRUPT__)) == (__INTERRUPT__))

Checks whether the specified RNG interrupt has occurred or not.

Parameters
<strong>HANDLE</strong>RNG Handle
<strong>INTERRUPT</strong>specifies the RNG interrupt status flag to check. This parameter can be one of the following values:
  • RNG_IT_DRDY: Data ready interrupt
  • RNG_IT_CEI: Clock error interrupt
  • RNG_IT_SEI: Seed error interrupt
Return values
Thenew state of INTERRUPT (SET or RESET).

Definition at line 209 of file stm32f7xx_hal_rng.h.

#define __HAL_RNG_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->State = HAL_RNG_STATE_RESET)

Reset RNG handle state.

Parameters
<strong>HANDLE</strong>RNG Handle
Return values
None

Definition at line 145 of file stm32f7xx_hal_rng.h.