diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-09-25 03:41:33 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-09-25 03:41:33 +0200 |
| commit | ae58a8d1f55336855a389a6bd9c804de20bda921 (patch) | |
| tree | d3474d55601bdcc5870fd178221f09081a7b4d41 /hw_html/bit.hpp | |
| parent | 403a94c2411f6a1e96b3dcf10f1fa26ca77729ff (diff) | |
| download | a9_free-ae58a8d1f55336855a389a6bd9c804de20bda921.tar.gz | |
Work on bit/mcureg/mcubase
Diffstat (limited to 'hw_html/bit.hpp')
| -rw-r--r-- | hw_html/bit.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/hw_html/bit.hpp b/hw_html/bit.hpp new file mode 100644 index 0000000..b912540 --- /dev/null +++ b/hw_html/bit.hpp @@ -0,0 +1,20 @@ +#ifndef BIT_HPP +#define BIT_HPP + +#include <mcubase.hpp> +#include <string> + +class bit : public mcubase +{ +public: + bit(const std::string &name, const std::string &access, + const std::string &pos); + virtual ~bit() = default; + +protected: + const struct off {unsigned int upper, lower;} off; + static struct off get(const std::string &pos); + std::string comment; +}; + +#endif /* BIT_HPP */ |
