Static Public Member Functions | Static Public Attributes | List of all members
universal_midi_packets::Utils::U4< Index > Struct Template Reference

Helper functions for setting/getting 4-bit ranges inside a 32-bit word. More...

Static Public Member Functions

static constexpr uint32_t set (uint32_t word, uint8_t value)
 
static constexpr uint8_t get (uint32_t word)
 

Static Public Attributes

static constexpr uint32_t shift = (uint32_t) 0x1c - Index * 4
 

Detailed Description

template<size_t Index>
struct universal_midi_packets::Utils::U4< Index >

Helper functions for setting/getting 4-bit ranges inside a 32-bit word.

Member Function Documentation

◆ set()

template<size_t Index>
static constexpr uint32_t universal_midi_packets::Utils::U4< Index >::set ( uint32_t  word,
uint8_t  value 
)
staticconstexpr

◆ get()

template<size_t Index>
static constexpr uint8_t universal_midi_packets::Utils::U4< Index >::get ( uint32_t  word)
staticconstexpr

Member Data Documentation

◆ shift

template<size_t Index>
constexpr uint32_t universal_midi_packets::Utils::U4< Index >::shift = (uint32_t) 0x1c - Index * 4
staticconstexpr

The documentation for this struct was generated from the following file: