[−][src]Struct avr_mcu::Peripheral
An on-board peripheral, such as an IO port.
Fields
name: String
The name of the peripheral, for example, PORT
.
instances: Vec<Instance>
A list of instances where the peripheral is used.
As an example, if the peripheral is an IO port, then the
instance list would list all PORT instances, such as PORTA
and PORTB
.
Implementations
impl Peripheral
[src]
pub fn instance(&self, name: &str) -> Option<&Instance>
[src]
Gets an instance by name.
pub fn signals<'a>(&'a self) -> impl Iterator<Item = &'a Signal>
[src]
Gets an iterator over all signals that the peripheral uses.
pub fn instance_signal_with_pad(
&self,
pad: &str
) -> Option<(&Instance, &Signal)>
[src]
&self,
pad: &str
) -> Option<(&Instance, &Signal)>
Trait Implementations
impl Clone for Peripheral
[src]
fn clone(&self) -> Peripheral
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Peripheral
[src]
impl Eq for Peripheral
[src]
impl Hash for Peripheral
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Peripheral> for Peripheral
[src]
fn eq(&self, other: &Peripheral) -> bool
[src]
fn ne(&self, other: &Peripheral) -> bool
[src]
impl PartialOrd<Peripheral> for Peripheral
[src]
fn partial_cmp(&self, other: &Peripheral) -> Option<Ordering>
[src]
fn lt(&self, other: &Peripheral) -> bool
[src]
fn le(&self, other: &Peripheral) -> bool
[src]
fn gt(&self, other: &Peripheral) -> bool
[src]
fn ge(&self, other: &Peripheral) -> bool
[src]
impl StructuralEq for Peripheral
[src]
impl StructuralPartialEq for Peripheral
[src]
Auto Trait Implementations
impl RefUnwindSafe for Peripheral
[src]
impl Send for Peripheral
[src]
impl Sync for Peripheral
[src]
impl Unpin for Peripheral
[src]
impl UnwindSafe for Peripheral
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,