#pragma once #include #include "src/DebugToolDrivers/Protocols/RiscVDebugSpec/TriggerModule/TriggerModule.hpp" namespace DebugToolDrivers::Protocols::RiscVDebugSpec::TriggerModule::Registers { /** * TODO: Given the single, full width bit field, is this struct really necessary? Review. */ struct TriggerSelect { TriggerIndex index; constexpr explicit TriggerSelect(TriggerIndex index) : index(index) {} [[nodiscard]] constexpr RegisterValue value() const { return static_cast(this->index); } }; }