Skip to content

Class hal::bit_value

template <std::unsigned_integral T>

ClassList > hal > bit_value

Inherited by the following classes: hal::bit_modify

Public Static Attributes

Type Name
constexpr std::uint32_t width = = sizeof(T) * 8

Public Functions

Type Name
constexpr bit_value (T p_initial_value=0)
constexpr auto & clear ()
constexpr auto & clear (bit_mask p_field)
constexpr T get ()
constexpr auto & insert (std::unsigned_integral auto p_value)
constexpr auto & insert (bit_mask p_field, std::unsigned_integral auto p_value)
constexpr auto & set ()
constexpr auto & set (bit_mask p_field)
constexpr auto to ()
constexpr auto & toggle ()
constexpr auto & toggle (bit_mask p_field)

Protected Attributes

Type Name
T m_value

Public Static Attributes Documentation

variable width

constexpr std::uint32_t hal::bit_value< T >::width;

Public Functions Documentation

function bit_value

inline constexpr hal::bit_value::bit_value (
    T p_initial_value=0
) 

function clear [1/2]

template<bit_mask field>
inline constexpr auto & hal::bit_value::clear () 

function clear [2/2]

inline constexpr auto & hal::bit_value::clear (
    bit_mask p_field
) 

function get

inline constexpr T hal::bit_value::get () 

function insert [1/2]

template<bit_mask field>
inline constexpr auto & hal::bit_value::insert (
    std::unsigned_integral auto p_value
) 

function insert [2/2]

inline constexpr auto & hal::bit_value::insert (
    bit_mask p_field,
    std::unsigned_integral auto p_value
) 

function set [1/2]

template<bit_mask field>
inline constexpr auto & hal::bit_value::set () 

function set [2/2]

inline constexpr auto & hal::bit_value::set (
    bit_mask p_field
) 

function to

template<std::integral U>
inline constexpr auto hal::bit_value::to () 

function toggle [1/2]

template<bit_mask field>
inline constexpr auto & hal::bit_value::toggle () 

function toggle [2/2]

inline constexpr auto & hal::bit_value::toggle (
    bit_mask p_field
) 

Protected Attributes Documentation

variable m_value

T hal::bit_value< T >::m_value;

The documentation for this class was generated from the following file libraries/include/libhal-util/bit.hpp