From eceaf16a6309fe0b579235e221fd14838889c237 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 5 Feb 2025 10:29:25 -0500 Subject: [PATCH] disable RegisterMaskValue for now --- funreg.hpp | 58 +++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/funreg.hpp b/funreg.hpp index 00cd3a9..9dc5449 100644 --- a/funreg.hpp +++ b/funreg.hpp @@ -366,35 +366,35 @@ struct RegisterMask constexpr static auto mask = Mask; }; -/** - * @struct RegisterMaskValue - * @brief Used to name the possible values of a multi-bit bit-mask. - * @tparam Mask The RegisterMask this value is associated with. - * @tparam value The value to be used for the given Mask. - */ -template -struct RegisterMaskValue -{ - /** - * Call this directly to write the value into the register. - * Can also be used in modify() chains. - * @see RegisterMask::write() - * @see Register::modify() - */ - using set = typename Mask::write; - - /** - * Call this to clear the value from the register. - */ - using clear = typename Mask::clear; - - /** - * Tests if this value is currently set in the register. - */ - static bool test() { - return (Mask::read() & Mask::mask) == (value << BitOffset); - } -}; +///** +// * @struct RegisterMaskValue +// * @brief Used to name the possible values of a multi-bit bit-mask. +// * @tparam Mask The RegisterMask this value is associated with. +// * @tparam value The value to be used for the given Mask. +// */ +//template +//struct RegisterMaskValue +//{ +// /** +// * Call this directly to write the value into the register. +// * Can also be used in modify() chains. +// * @see RegisterMask::write() +// * @see Register::modify() +// */ +// using set = typename Mask::write; +// +// /** +// * Call this to clear the value from the register. +// */ +// using clear = typename Mask::clear; +// +// /** +// * Tests if this value is currently set in the register. +// */ +// static bool test() { +// return (Mask::read() & Mask::mask) == (value << BitOffset); +// } +//}; /** * @class RegisterGroup