24 #ifndef __STM32F4xx_RNG_H
25 #define __STM32F4xx_RNG_H
52 #define RNG_FLAG_DRDY ((uint8_t)0x0001)
53 #define RNG_FLAG_CECS ((uint8_t)0x0002)
54 #define RNG_FLAG_SECS ((uint8_t)0x0004)
56 #define IS_RNG_GET_FLAG(RNG_FLAG) (((RNG_FLAG) == RNG_FLAG_DRDY) || \
57 ((RNG_FLAG) == RNG_FLAG_CECS) || \
58 ((RNG_FLAG) == RNG_FLAG_SECS))
59 #define IS_RNG_CLEAR_FLAG(RNG_FLAG) (((RNG_FLAG) == RNG_FLAG_CECS) || \
60 ((RNG_FLAG) == RNG_FLAG_SECS))
68 #define RNG_IT_CEI ((uint8_t)0x20)
69 #define RNG_IT_SEI ((uint8_t)0x40)
71 #define IS_RNG_IT(IT) ((((IT) & (uint8_t)0x9F) == 0x00) && ((IT) != 0x00))
72 #define IS_RNG_GET_IT(RNG_IT) (((RNG_IT) == RNG_IT_CEI) || ((RNG_IT) == RNG_IT_SEI))
85 void RNG_DeInit(
void);
88 void RNG_Cmd(FunctionalState NewState);
91 uint32_t RNG_GetRandomNumber(
void);
94 void RNG_ITConfig(FunctionalState NewState);
95 FlagStatus RNG_GetFlagStatus(uint8_t RNG_FLAG);
96 void RNG_ClearFlag(uint8_t RNG_FLAG);
97 ITStatus RNG_GetITStatus(uint8_t RNG_IT);
98 void RNG_ClearITPendingBit(uint8_t RNG_IT);
CMSIS Cortex-M4 Device Peripheral Access Layer Header File. This file contains all the peripheral reg...