MG32F10x Standard Peripherals Firmware Library

模块 | 函数
RNG
MG32F10x_StdPeriph_Driver

RNG driver modules 更多...

## 模块
| RNG_Private_Functions

## 函数
void | RNG_DeInit (void)
| Deinitializes the RNG peripheral registers to their default reset values. 更多...
void | RNG_Cmd (FunctionalState NewState)
| Enables or disables the RNG peripheral. 更多...
uint8_t | RNG_RandByte (void)
| Return a random byte. 更多...

## 详细描述

RNG driver modules

## 函数说明

## ◆ RNG_Cmd()

void RNG_Cmd | ( | FunctionalState | NewState | ) |

Enables or disables the RNG peripheral.

参数

  NewState | new state of the RNG peripheral. This parameter can be: ENABLE or DISABLE.

返回
  None

## ◆ RNG_DeInit()

void RNG_DeInit | ( | void |  | ) |

Deinitializes the RNG peripheral registers to their default reset values.

返回
  None

## ◆ RNG_RandByte()

uint8_t RNG_RandByte | ( | void |  | ) |

Return a random byte.

返回
  Random byte.