Struct avr_mcu::Mcu
[−]
[src]
pub struct Mcu { pub device: Device, pub variants: Vec<Variant>, pub modules: Vec<Module>, pub architecture: Architecture, pub c_preprocessor_name: &'static str, }
A microcontroller with one or more variants.
Fields
device: Device
Information about the microcontroller itself.
variants: Vec<Variant>
The different variants the mcu can come in.
modules: Vec<Module>
The modules built into the mcu package.
architecture: Architecture
The family that the mcu belongs to.
c_preprocessor_name: &'static str
The C preprocessor name.
Methods
impl Mcu
[src]
fn peripheral(&self, name: &str) -> Option<&Peripheral>
[src]
Gets a peripheral module by name.
fn module(&self, name: &str) -> Option<&Module>
[src]
Gets a module by name.
fn register_groups<'a>(&'a self) -> impl Iterator<Item = &'a RegisterGroup>
[src]
Gets an iterator over all register groups.
fn registers<'a>(&'a self) -> impl Iterator<Item = &'a Register>
[src]
Gets an iterator over all registers.
fn port(&self, letter: char) -> Port
[src]
Gets a port by letter.
fn port_peripheral(&self) -> &Peripheral
[src]
Gets the port peripheral.
fn port_module(&self) -> &Module
[src]
Gets the port module.
Trait Implementations
impl Clone for Mcu
[src]
fn clone(&self) -> Mcu
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Mcu
[src]
impl PartialOrd for Mcu
[src]
fn partial_cmp(&self, __arg_0: &Mcu) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Mcu) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Mcu) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Mcu) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Mcu) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more