-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlamp.h
More file actions
43 lines (29 loc) · 785 Bytes
/
lamp.h
File metadata and controls
43 lines (29 loc) · 785 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef LAMP_H
#define LAMP_H
#include <memory>
#include <optional>
#include <string>
#include "controllers.h"
#include "decoders.h"
namespace lamp {
struct wb_rtmlamp_ohwr_regs;
extern const std::vector<std::string> mode_list;
class Core: public RegisterDecoder {
std::unique_ptr<struct wb_rtmlamp_ohwr_regs> regs_storage;
struct wb_rtmlamp_ohwr_regs ®s;
void decode() override;
public:
Core(struct pcie_bars &);
~Core() override;
};
class Controller: public RegisterDecoderController {
std::unique_ptr<struct wb_rtmlamp_ohwr_regs> regs_storage;
struct wb_rtmlamp_ohwr_regs ®s;
Core dec;
void unset_commands() override;
public:
Controller(struct pcie_bars &);
virtual ~Controller();
};
} /* namespace lamp */
#endif