STM32L4xx_HAL_Driver  1.14.0
Peripheral State and Error functions

Peripheral State functions. More...

Functions

HAL_RNG_StateTypeDef HAL_RNG_GetState (RNG_HandleTypeDef *hrng)
 Return the RNG handle state. More...
 
uint32_t HAL_RNG_GetError (RNG_HandleTypeDef *hrng)
 Return the RNG handle error code. More...
 

Detailed Description

Peripheral State functions.

 ===============================================================================
                ##### Peripheral State and Error functions #####
 ===============================================================================  
    [..]
    This subsection permits to :
      (+) Return in run-time the status of the peripheral.
      (+) Return the RNG handle error code

Function Documentation

◆ HAL_RNG_GetError()

uint32_t HAL_RNG_GetError ( RNG_HandleTypeDef hrng)

Return the RNG handle error code.

Parameters
hrngpointer to a RNG_HandleTypeDef structure.
Return values
RNGError Code

Definition at line 826 of file stm32l4xx_hal_rng.c.

827 {
828  /* Return RNG Error Code */
829  return hrng->ErrorCode;
830 }
__IO uint32_t ErrorCode

◆ HAL_RNG_GetState()

HAL_RNG_StateTypeDef HAL_RNG_GetState ( RNG_HandleTypeDef hrng)

Return the RNG handle state.

Parameters
hrngpointer to a RNG_HandleTypeDef structure.
Return values
HALstate

Definition at line 815 of file stm32l4xx_hal_rng.c.

816 {
817  /* Return RNG handle state */
818  return hrng->State;
819 }
__IO HAL_RNG_StateTypeDef State