STM32F4 Standard Peripheral bibliotheek
1.0
ST Microelectronics bibliotheek documentatie voor de STM32F4 Standard Peripheral Library
|
This file provides firmware functions to manage the following functionalities of the Random Number Generator (RNG) peripheral: More...
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... | |
This file provides firmware functions to manage the following functionalities of the Random Number Generator (RNG) peripheral:
* * =================================================================== * How to use this driver * =================================================================== * 1. Enable The RNG controller clock using * RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_RNG, ENABLE) function. * * 2. Activate the RNG peripheral using RNG_Cmd() function. * * 3. Wait until the 32 bit Random number Generator contains a valid * random data (using polling/interrupt mode). For more details, * refer to "Interrupts and flags management functions" module * description. * * 4. Get the 32 bit Random number using RNG_GetRandomNumber() function * * 5. To get another 32 bit Random number, go to step 3. * * * *
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.