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

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

Static Public Member Functions

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

Static Public Attributes

static constexpr uint32_t shift = (uint32_t) 0x10 - Index * 16
 

Detailed Description

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

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

Member Function Documentation

◆ set()

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

◆ get()

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

Member Data Documentation

◆ shift

template<size_t Index>
constexpr uint32_t universal_midi_packets::Utils::U16< Index >::shift = (uint32_t) 0x10 - Index * 16
staticconstexpr

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