STM32G474xx HAL 用户手册
函数
外设状态函数
RNG 导出函数

外设状态函数。 更多...

函数

HAL_RNG_StateTypeDef HAL_RNG_GetState (const RNG_HandleTypeDef *hrng)
 返回 RNG 状态。
uint32_t HAL_RNG_GetError (const RNG_HandleTypeDef *hrng)
 返回 RNG 句柄错误码。

详细描述

外设状态函数。

 ===============================================================================
                      ##### Peripheral State functions #####
 ===============================================================================
    [..]
    This subsection permits to get in run-time the status of the peripheral
    and the data flow.


函数文档

uint32_t HAL_RNG_GetError ( const RNG_HandleTypeDef hrng)

返回 RNG 句柄错误码。

参数:
hrng,指向 RNG_HandleTypeDef 结构的指针。
返回值:
RNG错误码

定义位于文件 stm32g4xx_hal_rng.c 的第 808 行。

引用 __RNG_HandleTypeDef::ErrorCode

返回 RNG 状态。

参数:
hrng指向包含 RNG 配置信息的 RNG_HandleTypeDef 结构的指针。
返回值:
HAL状态

定义位于文件 stm32g4xx_hal_rng.c 的第 798 行。

引用 __RNG_HandleTypeDef::State