| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

BlueNRG1_rng.c
Go to the documentation of this file.
1
22 /* Includes ------------------------------------------------------------------*/
23 #include "BlueNRG1_rng.h"
24
25
93 void RNG_Cmd(FunctionalState NewState)
94 {
95 /* Check the parameters */
96 assert_param(IS_FUNCTIONAL_STATE(NewState));
97
98 if (NewState != DISABLE) {
99 /* Disable RNG peripheral */
100 RNG->CR_b.DIS = RESET;
101 }
102 else {
103 /* Enable RNG peripheral */
104 RNG->CR_b.DIS = SET;
105 }
106 }
107
108
114 FlagStatus RNG_GetFlagStatus(void)
115 {
116 if (RNG->SR_b.RDY == SET) {
117 return SET;
118 }
119 else {
120 return RESET;
121 }
122
123 }
124
137 /******************* (C) COPYRIGHT 2016 STMicroelectronics *****END OF FILE****/
RNG_Cmd
void RNG_Cmd(FunctionalState NewState)
Enables or disables the specified RNG peripheral.
Definition: BlueNRG1_rng.c:93
RNG_GetFlagStatus
FlagStatus RNG_GetFlagStatus(void)
Checks if the RNG flag is set or not.
Definition: BlueNRG1_rng.c:114
BlueNRG1_rng.h
This file contains all the functions prototypes for the RNG firmware library.