μHAL
lamp.h
1#ifndef LAMP_H
2#define LAMP_H
3
4#include <memory>
5#include <optional>
6#include <string>
7
8#include "controllers.h"
9#include "decoders.h"
10
11namespace lamp {
12
13struct wb_rtmlamp_ohwr_regs;
14
15extern const std::vector<std::string> mode_list;
16
17class Core: public RegisterDecoder {
18 std::unique_ptr<struct wb_rtmlamp_ohwr_regs> regs_storage;
19 struct wb_rtmlamp_ohwr_regs &regs;
20
21 void decode() override;
22
23 public:
24 Core(struct pcie_bars &);
25 ~Core();
26};
27
29 std::unique_ptr<struct wb_rtmlamp_ohwr_regs> regs_storage;
30 struct wb_rtmlamp_ohwr_regs &regs;
31
32 Core dec;
33
34 void unset_commands() override;
35
36 public:
37 Controller(struct pcie_bars &);
38 virtual ~Controller();
39};
40
41} /* namespace lamp */
42
43#endif
Definition: controllers.h:35
Definition: decoders.h:97
Definition: lamp.h:28
void unset_commands() override
Definition: lamp.cc:155
Definition: lamp.h:17
void decode() override
Definition: lamp.cc:89
Definition: pcie-defs.h:19