Numworks Epsilon  1.4.1
Graphing Calculator Operating System
rng.h
Go to the documentation of this file.
1 #ifndef REGS_RNG_H
2 #define REGS_RNG_H
3 
4 #include "register.h"
5 
6 class RNG {
7 public:
8  class CR : Register32 {
9  public:
10  REGS_BOOL_FIELD(RNGEN, 2);
11  };
12 
13  class SR : Register32 {
14  public:
15  REGS_BOOL_FIELD(DRDY, 0);
16  };
17 
18  class DR : public Register32 {
19  };
20 
21  constexpr RNG() {};
22  REGS_REGISTER_AT(CR, 0x00);
23  REGS_REGISTER_AT(SR, 0x04);
24  REGS_REGISTER_AT(DR, 0x08);
25 private:
26  constexpr uint32_t Base() const {
27  return 0x50060800;
28  }
29 };
30 
31 constexpr RNG RNG;
32 
33 #endif
Definition: rng.h:6
constexpr RNG()
Definition: rng.h:21
REGS_REGISTER_AT(CR, 0x00)
unsigned int uint32_t
Definition: stdint.h:6
constexpr RNG RNG
Definition: rng.h:31
REGS_BOOL_FIELD(DRDY, 0)
REGS_BOOL_FIELD(RNGEN, 2)
Definition: rng.h:8
Definition: rng.h:18
Definition: rng.h:13