Blame view

build6/epsilon-master/ion/src/device/regs/crc.h 380 Bytes
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
  #ifndef REGS_CRC_H
  #define REGS_CRC_H
  
  #include "register.h"
  
  class CRC {
  public:
    class DR : public Register32 {
    };
  
    class CR : Register32 {
    public:
      REGS_BOOL_FIELD(RESET, 0);
    };
  
    constexpr CRC() {};
    REGS_REGISTER_AT(DR, 0x00);
    REGS_REGISTER_AT(CR, 0x08);
  private:
    constexpr uint32_t Base() const {
      return 0x40023000;
    };
  };
  
  constexpr CRC CRC;
  
  #endif