STM32F4 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F4 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
stm32f4xx_rng.h File Reference

This file contains all the functions prototypes for the Random Number Generator(RNG) firmware library. More...

#include "stm32f4xx.h"

Go to the source code of this file.

Macros

#define RNG_FLAG_DRDY   ((uint8_t)0x0001)
 
#define RNG_FLAG_CECS   ((uint8_t)0x0002)
 
#define RNG_FLAG_SECS   ((uint8_t)0x0004)
 
#define IS_RNG_GET_FLAG(RNG_FLAG)
 
#define IS_RNG_CLEAR_FLAG(RNG_FLAG)
 
#define RNG_IT_CEI   ((uint8_t)0x20)
 
#define RNG_IT_SEI   ((uint8_t)0x40)
 
#define IS_RNG_IT(IT)   ((((IT) & (uint8_t)0x9F) == 0x00) && ((IT) != 0x00))
 
#define IS_RNG_GET_IT(RNG_IT)   (((RNG_IT) == RNG_IT_CEI) || ((RNG_IT) == RNG_IT_SEI))
 

Functions

void RNG_DeInit (void)
 Deinitializes the RNG peripheral registers to their default reset values. More...
 
void RNG_Cmd (FunctionalState NewState)
 Enables or disables the RNG peripheral. More...
 
uint32_t RNG_GetRandomNumber (void)
 Returns a 32-bit random number. More...
 
void RNG_ITConfig (FunctionalState NewState)
 Enables or disables the RNG interrupt. More...
 
FlagStatus RNG_GetFlagStatus (uint8_t RNG_FLAG)
 Checks whether the specified RNG flag is set or not. More...
 
void RNG_ClearFlag (uint8_t RNG_FLAG)
 Clears the RNG flags. More...
 
ITStatus RNG_GetITStatus (uint8_t RNG_IT)
 Checks whether the specified RNG interrupt has occurred or not. More...
 
void RNG_ClearITPendingBit (uint8_t RNG_IT)
 Clears the RNG interrupt pending bit(s). More...
 

Detailed Description

This file contains all the functions prototypes for the Random Number Generator(RNG) firmware library.

Author
MCD Application Team
Version
V1.0.2
Date
05-March-2012
Attention

© COPYRIGHT 2012 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.