STM32LIB
Public Types | List of all members
generate_mask_t< offset, width > Struct Template Reference

#include <generate_mask_t.hpp>

Public Types

enum  { value = generate_unshifted_mask_t<width>::value << offset }
 

Detailed Description

template<unsigned offset, unsigned width>
struct generate_mask_t< offset, width >

Generates a bit mask of the given width left shifted offset bits from the least significant bit position of the word.

Template Parameters
offsetthe number of zero bits on the least significant side of the mask
widththe number of consecutive one bits in the mask

Member Enumeration Documentation

template<unsigned offset, unsigned width>
anonymous enum
Enumerator
value 

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