STM32H735xx HAL User Manual
|
Header file of RNG LL module. More...
#include "stm32h7xx.h"
Go to the source code of this file.
Data Structures | |
struct | LL_RNG_InitTypeDef |
LL RNG Init Structure Definition. More... | |
Defines | |
#define | LL_RNG_CED_ENABLE 0x00000000U |
#define | LL_RNG_CED_DISABLE RNG_CR_CED |
#define | LL_RNG_CLKDIV_BY_1 (0x00000000UL) |
#define | LL_RNG_CLKDIV_BY_2 (RNG_CR_CLKDIV_0) |
#define | LL_RNG_CLKDIV_BY_4 (RNG_CR_CLKDIV_1) |
#define | LL_RNG_CLKDIV_BY_8 (RNG_CR_CLKDIV_1 | RNG_CR_CLKDIV_0) |
#define | LL_RNG_CLKDIV_BY_16 (RNG_CR_CLKDIV_2) |
#define | LL_RNG_CLKDIV_BY_32 (RNG_CR_CLKDIV_2 | RNG_CR_CLKDIV_0) |
#define | LL_RNG_CLKDIV_BY_64 (RNG_CR_CLKDIV_2 | RNG_CR_CLKDIV_1) |
#define | LL_RNG_CLKDIV_BY_128 (RNG_CR_CLKDIV_2 | RNG_CR_CLKDIV_1 | RNG_CR_CLKDIV_0) |
#define | LL_RNG_CLKDIV_BY_256 (RNG_CR_CLKDIV_3) |
#define | LL_RNG_CLKDIV_BY_512 (RNG_CR_CLKDIV_3 | RNG_CR_CLKDIV_0) |
#define | LL_RNG_CLKDIV_BY_1024 (RNG_CR_CLKDIV_3 | RNG_CR_CLKDIV_1) |
#define | LL_RNG_CLKDIV_BY_2048 (RNG_CR_CLKDIV_3 | RNG_CR_CLKDIV_1 | RNG_CR_CLKDIV_0) |
#define | LL_RNG_CLKDIV_BY_4096 (RNG_CR_CLKDIV_3 | RNG_CR_CLKDIV_2) |
#define | LL_RNG_CLKDIV_BY_8192 (RNG_CR_CLKDIV_3 | RNG_CR_CLKDIV_2 | RNG_CR_CLKDIV_0) |
#define | LL_RNG_CLKDIV_BY_16384 (RNG_CR_CLKDIV_3 | RNG_CR_CLKDIV_2 | RNG_CR_CLKDIV_1) |
#define | LL_RNG_CLKDIV_BY_32768 (RNG_CR_CLKDIV_3 | RNG_CR_CLKDIV_2 | RNG_CR_CLKDIV_1 | RNG_CR_CLKDIV_0) |
#define | LL_RNG_NIST_COMPLIANT (0x00000000UL) |
#define | LL_RNG_CUSTOM_NIST (RNG_CR_NISTC) |
#define | LL_RNG_SR_DRDY RNG_SR_DRDY |
#define | LL_RNG_SR_CECS RNG_SR_CECS |
#define | LL_RNG_SR_SECS RNG_SR_SECS |
#define | LL_RNG_SR_CEIS RNG_SR_CEIS |
#define | LL_RNG_SR_SEIS RNG_SR_SEIS |
#define | LL_RNG_CR_IE RNG_CR_IE |
#define | LL_RNG_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__)) |
Write a value in RNG register. | |
#define | LL_RNG_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) |
Read a value in RNG register. | |
Functions | |
__STATIC_INLINE void | LL_RNG_Enable (RNG_TypeDef *RNGx) |
Enable Random Number Generation. | |
__STATIC_INLINE void | LL_RNG_Disable (RNG_TypeDef *RNGx) |
Disable Random Number Generation. | |
__STATIC_INLINE uint32_t | LL_RNG_IsEnabled (RNG_TypeDef *RNGx) |
Check if Random Number Generator is enabled. | |
__STATIC_INLINE void | LL_RNG_EnableClkErrorDetect (RNG_TypeDef *RNGx) |
Enable Clock Error Detection. | |
__STATIC_INLINE void | LL_RNG_DisableClkErrorDetect (RNG_TypeDef *RNGx) |
Disable RNG Clock Error Detection. | |
__STATIC_INLINE uint32_t | LL_RNG_IsEnabledClkErrorDetect (RNG_TypeDef *RNGx) |
Check if RNG Clock Error Detection is enabled. | |
__STATIC_INLINE void | LL_RNG_EnableCondReset (RNG_TypeDef *RNGx) |
Set RNG Conditioning Soft Reset bit. | |
__STATIC_INLINE void | LL_RNG_DisableCondReset (RNG_TypeDef *RNGx) |
Reset RNG Conditioning Soft Reset bit. | |
__STATIC_INLINE uint32_t | LL_RNG_IsEnabledCondReset (RNG_TypeDef *RNGx) |
Check if RNG Conditioning Soft Reset bit is set. | |
__STATIC_INLINE void | LL_RNG_ConfigLock (RNG_TypeDef *RNGx) |
Enable RNG Config Lock. | |
__STATIC_INLINE uint32_t | LL_RNG_IsConfigLocked (RNG_TypeDef *RNGx) |
Check if RNG Config Lock is enabled. | |
__STATIC_INLINE void | LL_RNG_EnableNistCompliance (RNG_TypeDef *RNGx) |
Enable NIST Compliance. | |
__STATIC_INLINE void | LL_RNG_DisableNistCompliance (RNG_TypeDef *RNGx) |
Disable NIST Compliance. | |
__STATIC_INLINE uint32_t | LL_RNG_IsEnabledNistCompliance (RNG_TypeDef *RNGx) |
Check if NIST Compliance is enabled. | |
__STATIC_INLINE void | LL_RNG_SetConfig1 (RNG_TypeDef *RNGx, uint32_t Config1) |
Set RNG Config1 Configuration field value. | |
__STATIC_INLINE uint32_t | LL_RNG_GetConfig1 (RNG_TypeDef *RNGx) |
Get RNG Config1 Configuration field value. | |
__STATIC_INLINE void | LL_RNG_SetConfig2 (RNG_TypeDef *RNGx, uint32_t Config2) |
Set RNG Config2 Configuration field value. | |
__STATIC_INLINE uint32_t | LL_RNG_GetConfig2 (RNG_TypeDef *RNGx) |
Get RNG Config2 Configuration field value. | |
__STATIC_INLINE void | LL_RNG_SetConfig3 (RNG_TypeDef *RNGx, uint32_t Config3) |
Set RNG Config3 Configuration field value. | |
__STATIC_INLINE uint32_t | LL_RNG_GetConfig3 (RNG_TypeDef *RNGx) |
Get RNG Config3 Configuration field value. | |
__STATIC_INLINE void | LL_RNG_SetClockDivider (RNG_TypeDef *RNGx, uint32_t Divider) |
Set RNG Clock divider factor. | |
__STATIC_INLINE uint32_t | LL_RNG_GetClockDivider (RNG_TypeDef *RNGx) |
Get RNG Clock divider factor. | |
__STATIC_INLINE uint32_t | LL_RNG_IsActiveFlag_DRDY (RNG_TypeDef *RNGx) |
Indicate if the RNG Data ready Flag is set or not. | |
__STATIC_INLINE uint32_t | LL_RNG_IsActiveFlag_CECS (RNG_TypeDef *RNGx) |
Indicate if the Clock Error Current Status Flag is set or not. | |
__STATIC_INLINE uint32_t | LL_RNG_IsActiveFlag_SECS (RNG_TypeDef *RNGx) |
Indicate if the Seed Error Current Status Flag is set or not. | |
__STATIC_INLINE uint32_t | LL_RNG_IsActiveFlag_CEIS (RNG_TypeDef *RNGx) |
Indicate if the Clock Error Interrupt Status Flag is set or not. | |
__STATIC_INLINE uint32_t | LL_RNG_IsActiveFlag_SEIS (RNG_TypeDef *RNGx) |
Indicate if the Seed Error Interrupt Status Flag is set or not. | |
__STATIC_INLINE void | LL_RNG_ClearFlag_CEIS (RNG_TypeDef *RNGx) |
Clear Clock Error interrupt Status (CEIS) Flag. | |
__STATIC_INLINE void | LL_RNG_ClearFlag_SEIS (RNG_TypeDef *RNGx) |
Clear Seed Error interrupt Status (SEIS) Flag. | |
__STATIC_INLINE void | LL_RNG_EnableIT (RNG_TypeDef *RNGx) |
Enable Random Number Generator Interrupt (applies for either Seed error, Clock Error or Data ready interrupts) | |
__STATIC_INLINE void | LL_RNG_DisableIT (RNG_TypeDef *RNGx) |
Disable Random Number Generator Interrupt (applies for either Seed error, Clock Error or Data ready interrupts) | |
__STATIC_INLINE uint32_t | LL_RNG_IsEnabledIT (RNG_TypeDef *RNGx) |
Check if Random Number Generator Interrupt is enabled (applies for either Seed error, Clock Error or Data ready interrupts) | |
__STATIC_INLINE uint32_t | LL_RNG_ReadRandData32 (RNG_TypeDef *RNGx) |
Return32-bit Random Number value. | |
__STATIC_INLINE void | LL_RNG_SetHealthConfig (RNG_TypeDef *RNGx, uint32_t HTCFG) |
Set RNG Health Test Control. | |
__STATIC_INLINE uint32_t | LL_RNG_GetHealthConfig (RNG_TypeDef *RNGx) |
Get RNG Health Test Control. | |
ErrorStatus | LL_RNG_Init (RNG_TypeDef *RNGx, LL_RNG_InitTypeDef *RNG_InitStruct) |
Initialize RNG registers according to the specified parameters in RNG_InitStruct. | |
void | LL_RNG_StructInit (LL_RNG_InitTypeDef *RNG_InitStruct) |
Set each LL_RNG_InitTypeDef field to default value. | |
ErrorStatus | LL_RNG_DeInit (RNG_TypeDef *RNGx) |
De-initialize RNG registers (Registers restored to their default values). |
Header file of RNG LL module.
Copyright (c) 2017 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file stm32h7xx_ll_rng.h.