STM32H735xx HAL User Manual
|
Initialization and configuration functions. More...
Functions | |
HAL_StatusTypeDef | HAL_RNG_Init (RNG_HandleTypeDef *hrng) |
Initializes the RNG peripheral and creates the associated handle. | |
HAL_StatusTypeDef | HAL_RNG_DeInit (RNG_HandleTypeDef *hrng) |
DeInitializes the RNG peripheral. | |
__weak void | HAL_RNG_MspInit (RNG_HandleTypeDef *hrng) |
Initializes the RNG MSP. | |
__weak void | HAL_RNG_MspDeInit (RNG_HandleTypeDef *hrng) |
DeInitializes the RNG MSP. | |
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. | |
HAL_StatusTypeDef | HAL_RNG_UnRegisterCallback (RNG_HandleTypeDef *hrng, HAL_RNG_CallbackIDTypeDef CallbackID) |
Unregister an RNG Callback RNG callabck is redirected to the weak predefined callback. | |
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. | |
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. |
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
HAL_StatusTypeDef HAL_RNG_DeInit | ( | RNG_HandleTypeDef * | hrng | ) |
DeInitializes the RNG peripheral.
hrng | pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG. |
HAL | status |
Definition at line 291 of file stm32h7xx_hal_rng.c.
References __RNG_HandleTypeDef::ErrorCode, HAL_GetTick(), HAL_RNG_ERROR_NONE, HAL_RNG_ERROR_TIMEOUT, HAL_RNG_MspDeInit(), HAL_RNG_STATE_READY, HAL_RNG_STATE_RESET, __RNG_HandleTypeDef::Instance, __RNG_HandleTypeDef::MspDeInitCallback, RNG_CED_ENABLE, RNG_TIMEOUT_VALUE, and __RNG_HandleTypeDef::State.
HAL_StatusTypeDef HAL_RNG_Init | ( | RNG_HandleTypeDef * | hrng | ) |
Initializes the RNG peripheral and creates the associated handle.
hrng | pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG. |
HAL | status |
< magic number must be written immediately before to RNG_HTCRG
Definition at line 167 of file stm32h7xx_hal_rng.c.
References __HAL_RNG_DISABLE, __HAL_RNG_ENABLE, __HAL_RNG_GET_FLAG, __HAL_RNG_GET_IT, assert_param, RNG_InitTypeDef::ClockErrorDetection, __RNG_HandleTypeDef::ErrorCallback, __RNG_HandleTypeDef::ErrorCode, HAL_GetTick(), HAL_RNG_ERROR_NONE, HAL_RNG_ERROR_TIMEOUT, HAL_RNG_ErrorCallback(), HAL_RNG_MspInit(), HAL_RNG_ReadyDataCallback(), HAL_RNG_STATE_BUSY, HAL_RNG_STATE_ERROR, HAL_RNG_STATE_READY, HAL_RNG_STATE_RESET, __RNG_HandleTypeDef::Init, __RNG_HandleTypeDef::Instance, IS_RNG_CED, __RNG_HandleTypeDef::Lock, __RNG_HandleTypeDef::MspInitCallback, __RNG_HandleTypeDef::ReadyDataCallback, RNG_FLAG_SECS, RNG_HTCFG, RNG_HTCFG_1, RNG_IT_SEI, RNG_TIMEOUT_VALUE, and __RNG_HandleTypeDef::State.
void HAL_RNG_MspDeInit | ( | RNG_HandleTypeDef * | hrng | ) |
DeInitializes the RNG MSP.
hrng | pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG. |
None |
Definition at line 387 of file stm32h7xx_hal_rng.c.
Referenced by HAL_RNG_DeInit(), and HAL_RNG_UnRegisterCallback().
void HAL_RNG_MspInit | ( | RNG_HandleTypeDef * | hrng | ) |
Initializes the RNG MSP.
hrng | pointer to a RNG_HandleTypeDef structure that contains the configuration information for RNG. |
None |
Definition at line 372 of file stm32h7xx_hal_rng.c.
Referenced by HAL_RNG_Init(), and HAL_RNG_UnRegisterCallback().
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.
hrng | RNG handle |
CallbackID | ID of the callback to be registered This parameter can be one of the following values:
|
pCallback | pointer to the Callback function |
HAL | status |
Definition at line 409 of file stm32h7xx_hal_rng.c.
References __RNG_HandleTypeDef::ErrorCallback, __RNG_HandleTypeDef::ErrorCode, HAL_RNG_ERROR_CB_ID, HAL_RNG_ERROR_INVALID_CALLBACK, HAL_RNG_MSPDEINIT_CB_ID, HAL_RNG_MSPINIT_CB_ID, HAL_RNG_STATE_READY, HAL_RNG_STATE_RESET, __RNG_HandleTypeDef::MspDeInitCallback, __RNG_HandleTypeDef::MspInitCallback, and __RNG_HandleTypeDef::State.
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.
hrng | RNG handle |
pCallback | pointer to the Data Ready Callback function |
HAL | status |
Definition at line 562 of file stm32h7xx_hal_rng.c.
References __RNG_HandleTypeDef::ErrorCode, HAL_RNG_ERROR_INVALID_CALLBACK, HAL_RNG_STATE_READY, __RNG_HandleTypeDef::ReadyDataCallback, and __RNG_HandleTypeDef::State.
HAL_StatusTypeDef HAL_RNG_UnRegisterCallback | ( | RNG_HandleTypeDef * | hrng, |
HAL_RNG_CallbackIDTypeDef | CallbackID | ||
) |
Unregister an RNG Callback RNG callabck is redirected to the weak predefined callback.
hrng | RNG handle |
CallbackID | ID of the callback to be unregistered This parameter can be one of the following values:
|
HAL | status |
Definition at line 491 of file stm32h7xx_hal_rng.c.
References __RNG_HandleTypeDef::ErrorCallback, __RNG_HandleTypeDef::ErrorCode, HAL_RNG_ERROR_CB_ID, HAL_RNG_ERROR_INVALID_CALLBACK, HAL_RNG_ErrorCallback(), HAL_RNG_MspDeInit(), HAL_RNG_MSPDEINIT_CB_ID, HAL_RNG_MspInit(), HAL_RNG_MSPINIT_CB_ID, HAL_RNG_STATE_READY, HAL_RNG_STATE_RESET, __RNG_HandleTypeDef::MspDeInitCallback, __RNG_HandleTypeDef::MspInitCallback, and __RNG_HandleTypeDef::State.
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.
hrng | RNG handle |
HAL | status |
Definition at line 598 of file stm32h7xx_hal_rng.c.
References __RNG_HandleTypeDef::ErrorCode, HAL_RNG_ERROR_INVALID_CALLBACK, HAL_RNG_ReadyDataCallback(), HAL_RNG_STATE_READY, __RNG_HandleTypeDef::ReadyDataCallback, and __RNG_HandleTypeDef::State.