STM32F4xx_HAL_Driver  1.8.3
Initialization and configuration functions

Initialization and configuration functions. More...

+ Collaboration diagram for Initialization and configuration functions:

Functions

HAL_StatusTypeDef HAL_RNG_Init (RNG_HandleTypeDef *hrng)
 Initializes the RNG peripheral and creates the associated handle. More...
 
HAL_StatusTypeDef HAL_RNG_DeInit (RNG_HandleTypeDef *hrng)
 DeInitializes the RNG peripheral. More...
 
void HAL_RNG_MspInit (RNG_HandleTypeDef *hrng)
 Initializes the RNG MSP. More...
 
void HAL_RNG_MspDeInit (RNG_HandleTypeDef *hrng)
 DeInitializes the RNG MSP. More...
 
HAL_StatusTypeDef HAL_RNG_RegisterCallback (RNG_HandleTypeDef *hrng, HAL_RNG_CallbackIDTypeDef CallbackID, pRNG_CallbackTypeDef pCallback)
 Register a User RNG Callback To be used instead of the weak predefined callback. More...
 
HAL_StatusTypeDef HAL_RNG_UnRegisterCallback (RNG_HandleTypeDef *hrng, HAL_RNG_CallbackIDTypeDef CallbackID)
 Unregister an RNG Callback RNG callback is redirected to the weak predefined callback. More...
 
HAL_StatusTypeDef HAL_RNG_RegisterReadyDataCallback (RNG_HandleTypeDef *hrng, pRNG_ReadyDataCallbackTypeDef pCallback)
 Register Data Ready RNG Callback To be used instead of the weak HAL_RNG_ReadyDataCallback() predefined callback. More...
 
HAL_StatusTypeDef HAL_RNG_UnRegisterReadyDataCallback (RNG_HandleTypeDef *hrng)
 UnRegister the Data Ready RNG Callback Data Ready RNG Callback is redirected to the weak HAL_RNG_ReadyDataCallback() predefined callback. More...
 

Detailed Description

Initialization and configuration functions.

 ===============================================================================
          ##### Initialization and configuration functions #####
 ===============================================================================
    [..]  This section provides functions allowing to:
      (+) Initialize the RNG according to the specified parameters
          in the RNG_InitTypeDef and create the associated handle
      (+) DeInitialize the RNG peripheral
      (+) Initialize the RNG MSP
      (+) DeInitialize RNG MSP

Function Documentation

◆ HAL_RNG_DeInit()

HAL_StatusTypeDef HAL_RNG_DeInit ( RNG_HandleTypeDef *  hrng)

DeInitializes the RNG peripheral.

Parameters
hrngpointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG.
Return values
HALstatus

Definition at line 216 of file stm32f4xx_hal_rng.c.

◆ HAL_RNG_Init()

HAL_StatusTypeDef HAL_RNG_Init ( RNG_HandleTypeDef *  hrng)

Initializes the RNG peripheral and creates the associated handle.

Parameters
hrngpointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG.
Return values
HALstatus

Definition at line 155 of file stm32f4xx_hal_rng.c.

◆ HAL_RNG_MspDeInit()

__weak void HAL_RNG_MspDeInit ( RNG_HandleTypeDef *  hrng)

DeInitializes the RNG MSP.

Parameters
hrngpointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG.
Return values
None

Definition at line 277 of file stm32f4xx_hal_rng.c.

◆ HAL_RNG_MspInit()

__weak void HAL_RNG_MspInit ( RNG_HandleTypeDef *  hrng)

Initializes the RNG MSP.

Parameters
hrngpointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG.
Return values
None

Definition at line 262 of file stm32f4xx_hal_rng.c.

◆ HAL_RNG_RegisterCallback()

HAL_StatusTypeDef HAL_RNG_RegisterCallback ( RNG_HandleTypeDef *  hrng,
HAL_RNG_CallbackIDTypeDef  CallbackID,
pRNG_CallbackTypeDef  pCallback 
)

Register a User RNG Callback To be used instead of the weak predefined callback.

Parameters
hrngRNG handle
CallbackIDID of the callback to be registered This parameter can be one of the following values:
pCallbackpointer to the Callback function
Return values
HALstatus

Definition at line 299 of file stm32f4xx_hal_rng.c.

◆ HAL_RNG_RegisterReadyDataCallback()

HAL_StatusTypeDef HAL_RNG_RegisterReadyDataCallback ( RNG_HandleTypeDef *  hrng,
pRNG_ReadyDataCallbackTypeDef  pCallback 
)

Register Data Ready RNG Callback To be used instead of the weak HAL_RNG_ReadyDataCallback() predefined callback.

Parameters
hrngRNG handle
pCallbackpointer to the Data Ready Callback function
Return values
HALstatus

Definition at line 444 of file stm32f4xx_hal_rng.c.

◆ HAL_RNG_UnRegisterCallback()

HAL_StatusTypeDef HAL_RNG_UnRegisterCallback ( RNG_HandleTypeDef *  hrng,
HAL_RNG_CallbackIDTypeDef  CallbackID 
)

Unregister an RNG Callback RNG callback is redirected to the weak predefined callback.

Parameters
hrngRNG handle
CallbackIDID of the callback to be unregistered This parameter can be one of the following values:
Return values
HALstatus

Definition at line 377 of file stm32f4xx_hal_rng.c.

◆ HAL_RNG_UnRegisterReadyDataCallback()

HAL_StatusTypeDef HAL_RNG_UnRegisterReadyDataCallback ( RNG_HandleTypeDef *  hrng)

UnRegister the Data Ready RNG Callback Data Ready RNG Callback is redirected to the weak HAL_RNG_ReadyDataCallback() predefined callback.

Parameters
hrngRNG handle
Return values
HALstatus

Definition at line 480 of file stm32f4xx_hal_rng.c.