Struct atsamd_hal::gpio::pin::Pins

source ·
pub struct Pins {
Show 38 fields pub pa00: Pin<PA00, Reset>, pub pa01: Pin<PA01, Reset>, pub pa02: Pin<PA02, Reset>, pub pa03: Pin<PA03, Reset>, pub pa04: Pin<PA04, Reset>, pub pa05: Pin<PA05, Reset>, pub pa06: Pin<PA06, Reset>, pub pa07: Pin<PA07, Reset>, pub pa08: Pin<PA08, Reset>, pub pa09: Pin<PA09, Reset>, pub pa10: Pin<PA10, Reset>, pub pa11: Pin<PA11, Reset>, pub pa12: Pin<PA12, Reset>, pub pa13: Pin<PA13, Reset>, pub pa14: Pin<PA14, Reset>, pub pa15: Pin<PA15, Reset>, pub pa16: Pin<PA16, Reset>, pub pa17: Pin<PA17, Reset>, pub pa18: Pin<PA18, Reset>, pub pa19: Pin<PA19, Reset>, pub pa20: Pin<PA20, Reset>, pub pa21: Pin<PA21, Reset>, pub pa22: Pin<PA22, Reset>, pub pa23: Pin<PA23, Reset>, pub pa24: Pin<PA24, Reset>, pub pa25: Pin<PA25, Reset>, pub pa27: Pin<PA27, Reset>, pub pa28: Pin<PA28, Reset>, pub pa30: Pin<PA30, Reset>, pub pa31: Pin<PA31, Reset>, pub pb02: Pin<PB02, Reset>, pub pb03: Pin<PB03, Reset>, pub pb08: Pin<PB08, Reset>, pub pb09: Pin<PB09, Reset>, pub pb10: Pin<PB10, Reset>, pub pb11: Pin<PB11, Reset>, pub pb22: Pin<PB22, Reset>, pub pb23: Pin<PB23, Reset>, /* private fields */
}
Expand description

Collection of all the individual Pins

Fields§

§pa00: Pin<PA00, Reset>

Pin PA00

§pa01: Pin<PA01, Reset>

Pin PA01

§pa02: Pin<PA02, Reset>

Pin PA02

§pa03: Pin<PA03, Reset>

Pin PA03

§pa04: Pin<PA04, Reset>

Pin PA04

§pa05: Pin<PA05, Reset>

Pin PA05

§pa06: Pin<PA06, Reset>

Pin PA06

§pa07: Pin<PA07, Reset>

Pin PA07

§pa08: Pin<PA08, Reset>

Pin PA08

§pa09: Pin<PA09, Reset>

Pin PA09

§pa10: Pin<PA10, Reset>

Pin PA10

§pa11: Pin<PA11, Reset>

Pin PA11

§pa12: Pin<PA12, Reset>

Pin PA12

§pa13: Pin<PA13, Reset>

Pin PA13

§pa14: Pin<PA14, Reset>

Pin PA14

§pa15: Pin<PA15, Reset>

Pin PA15

§pa16: Pin<PA16, Reset>

Pin PA16

§pa17: Pin<PA17, Reset>

Pin PA17

§pa18: Pin<PA18, Reset>

Pin PA18

§pa19: Pin<PA19, Reset>

Pin PA19

§pa20: Pin<PA20, Reset>

Pin PA20

§pa21: Pin<PA21, Reset>

Pin PA21

§pa22: Pin<PA22, Reset>

Pin PA22

§pa23: Pin<PA23, Reset>

Pin PA23

§pa24: Pin<PA24, Reset>

Pin PA24

§pa25: Pin<PA25, Reset>

Pin PA25

§pa27: Pin<PA27, Reset>

Pin PA27

§pa28: Pin<PA28, Reset>

Pin PA28

§pa30: Pin<PA30, Reset>

Pin PA30

§pa31: Pin<PA31, Reset>

Pin PA31

§pb02: Pin<PB02, Reset>

Pin PB02

§pb03: Pin<PB03, Reset>

Pin PB03

§pb08: Pin<PB08, Reset>

Pin PB08

§pb09: Pin<PB09, Reset>

Pin PB09

§pb10: Pin<PB10, Reset>

Pin PB10

§pb11: Pin<PB11, Reset>

Pin PB11

§pb22: Pin<PB22, Reset>

Pin PB22

§pb23: Pin<PB23, Reset>

Pin PB23

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 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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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<T> for T

§

type Output = T

Should always be Self
source§

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

§

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 Twhere U: TryFrom<T>,

§

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.