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