Struct svd_parser::svd::bitrange::BitRange[][src]

pub struct BitRange {
    pub offset: u32,
    pub width: u32,
    pub range_type: BitRangeType,
}

Fields

offset: u32

Value defining the position of the least significant bit of the field within the register

width: u32

Value defining the bit-width of the bitfield within the register

range_type: BitRangeType

Implementations

impl BitRange[src]

pub fn lsb(&self) -> u32[src]

pub fn msb(&self) -> u32[src]

impl BitRange[src]

pub fn encode(&self) -> Result<Vec<Element>>[src]

Trait Implementations

impl Clone for BitRange[src]

impl Copy for BitRange[src]

impl Debug for BitRange[src]

impl Parse for BitRange[src]

type Object = Self

Object returned by parse method

type Error = Error

Parsing error

impl PartialEq<BitRange> for BitRange[src]

impl StructuralPartialEq for BitRange[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.