Numworks Epsilon  1.4.1
Graphing Calculator Operating System
pwr.h
Go to the documentation of this file.
1 #ifndef REGS_PWR_H
2 #define REGS_PWR_H
3 
4 #include "register.h"
5 
6 class PWR {
7 public:
8  class CR : Register32 {
9  public:
10  REGS_BOOL_FIELD(LPDS, 0);
11  REGS_BOOL_FIELD(PPDS, 1);
12  REGS_BOOL_FIELD(FPDS, 9);
13  };
14 
15  constexpr PWR() {};
16  REGS_REGISTER_AT(CR, 0x00);
17 private:
18  constexpr uint32_t Base() const {
19  return 0x40007000;
20  };
21 };
22 
23 constexpr PWR PWR;
24 
25 #endif
Definition: pwr.h:6
REGS_REGISTER_AT(CR, 0x00)
constexpr PWR()
Definition: pwr.h:15
unsigned int uint32_t
Definition: stdint.h:6
REGS_BOOL_FIELD(LPDS, 0)
constexpr PWR PWR
Definition: pwr.h:23
Definition: pwr.h:8