disable RegisterMaskValue for now
This commit is contained in:
parent
4acb48d15a
commit
eceaf16a63
58
funreg.hpp
58
funreg.hpp
@ -366,35 +366,35 @@ struct RegisterMask
|
|||||||
constexpr static auto mask = Mask;
|
constexpr static auto mask = Mask;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
///**
|
||||||
* @struct RegisterMaskValue
|
// * @struct RegisterMaskValue
|
||||||
* @brief Used to name the possible values of a multi-bit bit-mask.
|
// * @brief Used to name the possible values of a multi-bit bit-mask.
|
||||||
* @tparam Mask The RegisterMask this value is associated with.
|
// * @tparam Mask The RegisterMask this value is associated with.
|
||||||
* @tparam value The value to be used for the given Mask.
|
// * @tparam value The value to be used for the given Mask.
|
||||||
*/
|
// */
|
||||||
template<typename Mask, Mask::T value>
|
//template<typename Mask, Mask::T value>
|
||||||
struct RegisterMaskValue
|
//struct RegisterMaskValue
|
||||||
{
|
//{
|
||||||
/**
|
// /**
|
||||||
* Call this directly to write the value into the register.
|
// * Call this directly to write the value into the register.
|
||||||
* Can also be used in modify() chains.
|
// * Can also be used in modify() chains.
|
||||||
* @see RegisterMask::write()
|
// * @see RegisterMask::write()
|
||||||
* @see Register::modify()
|
// * @see Register::modify()
|
||||||
*/
|
// */
|
||||||
using set = typename Mask::write<value>;
|
// using set = typename Mask::write<value>;
|
||||||
|
//
|
||||||
/**
|
// /**
|
||||||
* Call this to clear the value from the register.
|
// * Call this to clear the value from the register.
|
||||||
*/
|
// */
|
||||||
using clear = typename Mask::clear;
|
// using clear = typename Mask::clear;
|
||||||
|
//
|
||||||
/**
|
// /**
|
||||||
* Tests if this value is currently set in the register.
|
// * Tests if this value is currently set in the register.
|
||||||
*/
|
// */
|
||||||
static bool test() {
|
// static bool test() {
|
||||||
return (Mask::read() & Mask::mask) == (value << BitOffset<Mask>);
|
// return (Mask::read() & Mask::mask) == (value << BitOffset<Mask>);
|
||||||
}
|
// }
|
||||||
};
|
//};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class RegisterGroup
|
* @class RegisterGroup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user