[][src]Struct avr_mcu::Module

pub struct Module {
    pub name: String,
    pub register_groups: Vec<RegisterGroup>,
    pub value_groups: Vec<ValueGroup>,
}

A module built into the silicon.

Fields

name: String

The name of the module, for example, PORT.

register_groups: Vec<RegisterGroup>

Registers associated with the module.

value_groups: Vec<ValueGroup>

Value groups associated with the module.

Implementations

impl Module[src]

pub fn register_group(&self, name: &str) -> Option<&RegisterGroup>[src]

Gets a register group by name.

pub fn registers<'a>(&'a self) -> impl Iterator<Item = &'a Register>[src]

Gets an iterator over all registers in the module.

Trait Implementations

impl Clone for Module[src]

impl Debug for Module[src]

impl Eq for Module[src]

impl Hash for Module[src]

impl PartialEq<Module> for Module[src]

impl PartialOrd<Module> for Module[src]

impl StructuralEq for Module[src]

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