aboutsummaryrefslogtreecommitdiff
path: root/hw_html/mcubase.hpp
blob: 556c55a5397ed6cf19885d4320197346f4ac6ab8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef MCUBASE_HPP
#define MCUBASE_HPP

#include <stdint.h>
#include <string>

class mcubase
{
public:
    enum access {UNDEF, C, R, S, W, RC, RS, RW, RSV, W1C, W1S};
    mcubase(const std::string &name, const std::string &access);

protected:
    mcubase() = default;
    const std::string &name;
    const access acc;
    uint32_t rst;

private:
    static access get(const std::string &access);
};

#endif /* MCUBASE_HPP */