[][src]Struct avr_mcu::Bitfield

pub struct Bitfield {
    pub name: String,
    pub caption: String,
    pub mask: u32,
    pub size: u32,
    pub values: Option<String>,
}

A bitfield within a register.

Fields

name: String

The name of the bitfield, such as U2X0 for the USART register UCSR0A.

caption: String

A description of the bitfield.

mask: u32

The mask that makes up the bitfield.

This will always match up to the parent register. A 16-bit register has 16-but masks.

size: u32

The number of bytes that make up the bitfield.

values: Option<String>

reference into value_groups on the container

Trait Implementations

impl Clone for Bitfield[src]

impl Debug for Bitfield[src]

impl Eq for Bitfield[src]

impl Hash for Bitfield[src]

impl PartialEq<Bitfield> for Bitfield[src]

impl PartialOrd<Bitfield> for Bitfield[src]

impl StructuralEq for Bitfield[src]

impl StructuralPartialEq for Bitfield[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> 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.