Struct avr_mcu::Peripheral
[−]
[src]
pub struct Peripheral { pub name: String, pub instances: Vec<Instance>, }
Fields
name: String
The name of the peripheral, for example, PORT
.
instances: Vec<Instance>
A list of instances where the peripheral is used.
Methods
impl Peripheral
[src]
fn instance(&self, name: &str) -> Option<&Instance>
Gets an instance by name.
fn signals<'a>(&'a self) -> impl Iterator<Item = &'a Signal>
Gets an iterator over all signals that the peripheral uses.
fn instance_signal_with_pad(&self, pad: &str) -> Option<(&Instance, &Signal)>
Trait Implementations
impl Clone for Peripheral
[src]
fn clone(&self) -> Peripheral
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Peripheral
[src]
impl PartialOrd for Peripheral
[src]
fn partial_cmp(&self, __arg_0: &Peripheral) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Peripheral) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Peripheral) -> bool
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: &Peripheral) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Peripheral) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq for Peripheral
[src]
fn eq(&self, __arg_0: &Peripheral) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Peripheral) -> bool
This method tests for !=
.