34 typename mutability_policy_t,
41 static_assert(width > 0,
"invalid field of zero width");
42 static_assert(width + offset <= std::numeric_limits<unsigned>::digits,
43 "register width overflow");
52 mutability_policy_t::read(
53 reinterpret_cast<volatile unsigned *>(address),
63 static void write(
unsigned value)
65 mutability_policy_t::write(
66 reinterpret_cast<volatile unsigned *>(address),
78 mutability_policy_t::set(
79 reinterpret_cast<volatile unsigned *>(address),
89 mutability_policy_t::clear(
90 reinterpret_cast<volatile unsigned *>(address),
static unsigned read()
Definition: reg_t.hpp:49
Definition: generate_mask_t.hpp:15
static void set()
Definition: reg_t.hpp:76
static void write(unsigned value)
Definition: reg_t.hpp:63
static void clear()
Definition: reg_t.hpp:87