STM32G474xx HAL 用户手册
函数
初始化和反初始化函数
RNG 导出函数

函数

ErrorStatus LL_RNG_DeInit (const RNG_TypeDef *RNGx)
 反初始化 RNG 寄存器(将寄存器恢复为默认值)。
ErrorStatus LL_RNG_Init (RNG_TypeDef *RNGx, const LL_RNG_InitTypeDef *RNG_InitStruct)
 根据 RNG_InitStruct 中指定的参数初始化 RNG 寄存器。
void LL_RNG_StructInit (LL_RNG_InitTypeDef *RNG_InitStruct)
 LL_RNG_InitTypeDef 的每个字段设置为默认值。

函数文档

ErrorStatus LL_RNG_DeInit ( const RNG_TypeDef *  RNGx)

反初始化 RNG 寄存器(将寄存器恢复为默认值)。

参数:
RNGxRNG 实例
返回值:
ErrorStatus枚举值:
  • SUCCESS:RNG 寄存器反初始化完成
  • ERROR:不适用

定义在文件 stm32g4xx_ll_rng.c 的第 71 行。

引用了 assert_paramLL_AHB2_GRP1_ForceReset()LL_AHB2_GRP1_PERIPH_RNGLL_AHB2_GRP1_ReleaseReset()

ErrorStatus LL_RNG_Init ( RNG_TypeDef *  RNGx,
const LL_RNG_InitTypeDef RNG_InitStruct 
)

根据 RNG_InitStruct 中指定的参数初始化 RNG 寄存器。

参数:
RNGxRNG 实例
RNG_InitStruct指向 LL_RNG_InitTypeDef 结构体的指针,该结构体包含指定 RNG 外设的配置信息。
返回值:
ErrorStatus枚举值:
  • SUCCESS:RNG 寄存器已根据 RNG_InitStruct 内容初始化
  • ERROR:不适用

定义在文件 stm32g4xx_ll_rng.c 的第 102 行。

引用了 assert_paramLL_RNG_InitTypeDef::ClockErrorDetectionIS_LL_RNG_CED

void LL_RNG_StructInit ( LL_RNG_InitTypeDef RNG_InitStruct)

LL_RNG_InitTypeDef 的每个字段设置为默认值。

参数:
RNG_InitStruct指向 LL_RNG_InitTypeDef 结构体的指针,该结构体的字段将被设置为默认值。
返回值:

定义在文件 stm32g4xx_ll_rng.c 的第 120 行。

引用了 LL_RNG_InitTypeDef::ClockErrorDetectionLL_RNG_CED_ENABLE