6663b6c9
adorian
projet complet av...
|
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
31
32
33
|
#ifndef REGS_RNG_H
#define REGS_RNG_H
#include "register.h"
class RNG {
public:
class CR : Register32 {
public:
REGS_BOOL_FIELD(RNGEN, 2);
};
class SR : Register32 {
public:
REGS_BOOL_FIELD(DRDY, 0);
};
class DR : public Register32 {
};
constexpr RNG() {};
REGS_REGISTER_AT(CR, 0x00);
REGS_REGISTER_AT(SR, 0x04);
REGS_REGISTER_AT(DR, 0x08);
private:
constexpr uint32_t Base() const {
return 0x50060800;
}
};
constexpr RNG RNG;
#endif
|