Enum#
Defined in namespace hal
#include <libhal-util/enum.hpp>
- group Enum
Functions
-
constexpr auto value(enumeration auto p_enum_value)#
Helper function to convert an enum to its integral value.
- Parameters:
p_enum_value – - the enumeration you want to convert into an integral value
- Returns:
constexpr auto - return the integral value of the enum with the same type as the enumeration.
Variables
- template<typename T> concept irq_enum =std::is_enum_v<T> && std::is_same_v<std::underlying_type_t<T>, irq_t>
concept for enumeration types
- Template Parameters:
T – - enum type
- template<typename T> concept enumeration = std::is_enum_v<T>
concept for enumeration types
- Template Parameters:
T – - enum type
-
constexpr auto value(enumeration auto p_enum_value)#