1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
33
34
35
36
39
40
41
42
43
44
45
46
47
48
51
52
53
57
58
59
60
61
62
65
66
70
71
74
75
78
79
80
83
84
87
88
95
96
97
103
104
107
108
111
112
113
114
117
120
121
127
131
132
138
142
143
149
153
154
157
158
161
162
168
172
173
179
183
184
190
194
195
201
205
206
212
216
217
223
227
228
234
238
239
242
243
246
247
254
258
259
266
270
271
278
282
283
286
287
290
291
297
301
302
305
306
307
316
317
320
321
324
325
326
327
330
331
332
333
334
335
336
/* ... */
#ifndef STM32F4xx_LL_RNG_H
#define STM32F4xx_LL_RNG_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f4xx.h"
/* ... */
#if defined (RNG)
/* ... */
/* ... */
/* ... */
#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__))
/* ... */
#define LL_RNG_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__)
8 defines
/* ... */
/* ... */
/* ... */
/* ... */
/* ... */
__STATIC_INLINE void LL_RNG_Enable(RNG_TypeDef *RNGx)
{
SET_BIT(RNGx->CR, RNG_CR_RNGEN);
}{ ... }
/* ... */
__STATIC_INLINE void LL_RNG_Disable(RNG_TypeDef *RNGx)
{
CLEAR_BIT(RNGx->CR, RNG_CR_RNGEN);
}{ ... }
/* ... */
__STATIC_INLINE uint32_t LL_RNG_IsEnabled(const RNG_TypeDef *RNGx)
{
return ((READ_BIT(RNGx->CR, RNG_CR_RNGEN) == (RNG_CR_RNGEN)) ? 1UL : 0UL);
}{ ... }
/* ... */
/* ... */
/* ... */
__STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_DRDY(const RNG_TypeDef *RNGx)
{
return ((READ_BIT(RNGx->SR, RNG_SR_DRDY) == (RNG_SR_DRDY)) ? 1UL : 0UL);
}{ ... }
/* ... */
__STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_CECS(const RNG_TypeDef *RNGx)
{
return ((READ_BIT(RNGx->SR, RNG_SR_CECS) == (RNG_SR_CECS)) ? 1UL : 0UL);
}{ ... }
/* ... */
__STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_SECS(const RNG_TypeDef *RNGx)
{
return ((READ_BIT(RNGx->SR, RNG_SR_SECS) == (RNG_SR_SECS)) ? 1UL : 0UL);
}{ ... }
/* ... */
__STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_CEIS(const RNG_TypeDef *RNGx)
{
return ((READ_BIT(RNGx->SR, RNG_SR_CEIS) == (RNG_SR_CEIS)) ? 1UL : 0UL);
}{ ... }
/* ... */
__STATIC_INLINE uint32_t LL_RNG_IsActiveFlag_SEIS(const RNG_TypeDef *RNGx)
{
return ((READ_BIT(RNGx->SR, RNG_SR_SEIS) == (RNG_SR_SEIS)) ? 1UL : 0UL);
}{ ... }
/* ... */
__STATIC_INLINE void LL_RNG_ClearFlag_CEIS(RNG_TypeDef *RNGx)
{
WRITE_REG(RNGx->SR, ~RNG_SR_CEIS);
}{ ... }
/* ... */
__STATIC_INLINE void LL_RNG_ClearFlag_SEIS(RNG_TypeDef *RNGx)
{
WRITE_REG(RNGx->SR, ~RNG_SR_SEIS);
}{ ... }
/* ... */
/* ... */
/* ... */
__STATIC_INLINE void LL_RNG_EnableIT(RNG_TypeDef *RNGx)
{
SET_BIT(RNGx->CR, RNG_CR_IE);
}{ ... }
/* ... */
__STATIC_INLINE void LL_RNG_DisableIT(RNG_TypeDef *RNGx)
{
CLEAR_BIT(RNGx->CR, RNG_CR_IE);
}{ ... }
/* ... */
__STATIC_INLINE uint32_t LL_RNG_IsEnabledIT(const RNG_TypeDef *RNGx)
{
return ((READ_BIT(RNGx->CR, RNG_CR_IE) == (RNG_CR_IE)) ? 1UL : 0UL);
}{ ... }
/* ... */
/* ... */
/* ... */
__STATIC_INLINE uint32_t LL_RNG_ReadRandData32(const RNG_TypeDef *RNGx)
{
return (uint32_t)(READ_REG(RNGx->DR));
}{ ... }
/* ... */
#if defined(USE_FULL_LL_DRIVER)
/* ... */
ErrorStatus LL_RNG_DeInit(const RNG_TypeDef *RNGx);
/* ... */
/* ... */#endif
/* ... */
/* ... */
/* ... */
#endif
/* ... */
#ifdef __cplusplus
}extern "C" { ... }
#endif
/* ... */
#endif