NSVD Reader  0.0.1
nodamushi::svd::bitRange Struct Reference

<field>.<bitRange> element More...

#include <bitRange.hpp>

Public Member Functions

 bitRange ()
 
 bitRange (uint32_t l, uint32_t m)
 
bool operator== (const bitRange &b) const noexcept
 
bool operator!= (const bitRange &b) const noexcept
 
template<typename STR >
bool set (const STR &src)
 

Public Attributes

uint32_t lsb
 lsb: the bit position of the least significant bit within the register. More...
 
uint32_t msb
 msb: the bit position of the most significant bit within the register. More...
 

Detailed Description

<field>.<bitRange> element

format: [<msb>:<lsb>]
See also
http://www.keil.com/pack/doc/CMSIS/SVD/html/elem_registers.html#elem_field

Definition at line 23 of file bitRange.hpp.

Constructor & Destructor Documentation

◆ bitRange() [1/2]

nodamushi::svd::bitRange::bitRange ( )
inline

Definition at line 31 of file bitRange.hpp.

◆ bitRange() [2/2]

nodamushi::svd::bitRange::bitRange ( uint32_t  l,
uint32_t  m 
)
inline

Definition at line 32 of file bitRange.hpp.

Member Function Documentation

◆ operator!=()

bool nodamushi::svd::bitRange::operator!= ( const bitRange b) const
inlinenoexcept

Definition at line 37 of file bitRange.hpp.

◆ operator==()

bool nodamushi::svd::bitRange::operator== ( const bitRange b) const
inlinenoexcept

Definition at line 34 of file bitRange.hpp.

◆ set()

template<typename STR >
bool nodamushi::svd::bitRange::set ( const STR &  src)
inline

set lsb and msb.

Parameters
srctext. format:[<msb>:<lsb>]
Returns
success

Definition at line 46 of file bitRange.hpp.

Member Data Documentation

◆ lsb

uint32_t nodamushi::svd::bitRange::lsb

lsb: the bit position of the least significant bit within the register.

Definition at line 26 of file bitRange.hpp.

◆ msb

uint32_t nodamushi::svd::bitRange::msb

msb: the bit position of the most significant bit within the register.

Definition at line 28 of file bitRange.hpp.


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