atsamd_hal::gpio::pin

Struct Pins

Source
pub struct Pins {
    pub pa02: Pin<PA02, Reset>,
    pub pa04: Pin<PA04, Reset>,
    pub pa05: Pin<PA05, Reset>,
    pub pa08: Pin<PA08, Reset>,
    pub pa09: Pin<PA09, Reset>,
    pub pa14: Pin<PA14, Reset>,
    pub pa15: Pin<PA15, Reset>,
    pub pa24: Pin<PA24, Reset>,
    pub pa25: Pin<PA25, Reset>,
    pub pa28: Pin<PA28, Reset>,
    pub pa30: Pin<PA30, Reset>,
    pub pa31: Pin<PA31, Reset>,
    /* private fields */
}
Expand description

Collection of all the individual Pins

Fields§

§pa02: Pin<PA02, Reset>

Pin PA02

§pa04: Pin<PA04, Reset>

Pin PA04

§pa05: Pin<PA05, Reset>

Pin PA05

§pa08: Pin<PA08, Reset>

Pin PA08

§pa09: Pin<PA09, Reset>

Pin PA09

§pa14: Pin<PA14, Reset>

Pin PA14

§pa15: Pin<PA15, Reset>

Pin PA15

§pa24: Pin<PA24, Reset>

Pin PA24

§pa25: Pin<PA25, Reset>

Pin PA25

§pa28: Pin<PA28, Reset>

Pin PA28

§pa30: Pin<PA30, Reset>

Pin PA30

§pa31: Pin<PA31, Reset>

Pin PA31

Implementations§

Source§

impl Pins

Source

pub fn new(port: Port) -> Pins

Take ownership of the PAC Port and split it into discrete Pins

Source

pub unsafe fn port(&mut self) -> Port

Take the PAC Port

The Port can only be taken once. Subsequent calls to this function will panic.

§Safety

Direct access to the Port could allow you to invalidate the compiler’s type-level tracking, so it is unsafe.

Port

Auto Trait Implementations§

§

impl Freeze for Pins

§

impl RefUnwindSafe for Pins

§

impl Send for Pins

§

impl !Sync for Pins

§

impl Unpin for Pins

§

impl UnwindSafe for Pins

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.