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
register.h
RNG
Definition:
rng.h:6
RNG::RNG
constexpr RNG()
Definition:
rng.h:21
RNG::REGS_REGISTER_AT
REGS_REGISTER_AT(CR, 0x00)
Register
Definition:
register.h:8
uint32_t
unsigned int uint32_t
Definition:
stdint.h:6
RNG
constexpr RNG RNG
Definition:
rng.h:31
RNG::SR::REGS_BOOL_FIELD
REGS_BOOL_FIELD(DRDY, 0)
RNG::CR::REGS_BOOL_FIELD
REGS_BOOL_FIELD(RNGEN, 2)
RNG::CR
Definition:
rng.h:8
RNG::DR
Definition:
rng.h:18
RNG::SR
Definition:
rng.h:13
epsilon
ion
src
device
regs
rng.h
Generated by
1.8.14