Struct serpente::gpio::v2::pin::Pins

source ·
pub struct Pins {
Show 26 fields pub pa00: Pin<PA00, Disabled<Floating>>, pub pa01: Pin<PA01, Disabled<Floating>>, pub pa02: Pin<PA02, Disabled<Floating>>, pub pa03: Pin<PA03, Disabled<Floating>>, pub pa04: Pin<PA04, Disabled<Floating>>, pub pa05: Pin<PA05, Disabled<Floating>>, pub pa06: Pin<PA06, Disabled<Floating>>, pub pa07: Pin<PA07, Disabled<Floating>>, pub pa08: Pin<PA08, Disabled<Floating>>, pub pa09: Pin<PA09, Disabled<Floating>>, pub pa10: Pin<PA10, Disabled<Floating>>, pub pa11: Pin<PA11, Disabled<Floating>>, pub pa14: Pin<PA14, Disabled<Floating>>, pub pa15: Pin<PA15, Disabled<Floating>>, pub pa16: Pin<PA16, Disabled<Floating>>, pub pa17: Pin<PA17, Disabled<Floating>>, pub pa18: Pin<PA18, Disabled<Floating>>, pub pa19: Pin<PA19, Disabled<Floating>>, pub pa22: Pin<PA22, Disabled<Floating>>, pub pa23: Pin<PA23, Disabled<Floating>>, pub pa24: Pin<PA24, Disabled<Floating>>, pub pa25: Pin<PA25, Disabled<Floating>>, pub pa27: Pin<PA27, Disabled<Floating>>, pub pa28: Pin<PA28, Disabled<Floating>>, pub pa30: Pin<PA30, Disabled<Floating>>, pub pa31: Pin<PA31, Disabled<Floating>>, /* private fields */
}
Expand description

Collection of all the individual Pins

Fields§

§pa00: Pin<PA00, Disabled<Floating>>

Pin PA00

§pa01: Pin<PA01, Disabled<Floating>>

Pin PA01

§pa02: Pin<PA02, Disabled<Floating>>

Pin PA02

§pa03: Pin<PA03, Disabled<Floating>>

Pin PA03

§pa04: Pin<PA04, Disabled<Floating>>

Pin PA04

§pa05: Pin<PA05, Disabled<Floating>>

Pin PA05

§pa06: Pin<PA06, Disabled<Floating>>

Pin PA06

§pa07: Pin<PA07, Disabled<Floating>>

Pin PA07

§pa08: Pin<PA08, Disabled<Floating>>

Pin PA08

§pa09: Pin<PA09, Disabled<Floating>>

Pin PA09

§pa10: Pin<PA10, Disabled<Floating>>

Pin PA10

§pa11: Pin<PA11, Disabled<Floating>>

Pin PA11

§pa14: Pin<PA14, Disabled<Floating>>

Pin PA14

§pa15: Pin<PA15, Disabled<Floating>>

Pin PA15

§pa16: Pin<PA16, Disabled<Floating>>

Pin PA16

§pa17: Pin<PA17, Disabled<Floating>>

Pin PA17

§pa18: Pin<PA18, Disabled<Floating>>

Pin PA18

§pa19: Pin<PA19, Disabled<Floating>>

Pin PA19

§pa22: Pin<PA22, Disabled<Floating>>

Pin PA22

§pa23: Pin<PA23, Disabled<Floating>>

Pin PA23

§pa24: Pin<PA24, Disabled<Floating>>

Pin PA24

§pa25: Pin<PA25, Disabled<Floating>>

Pin PA25

§pa27: Pin<PA27, Disabled<Floating>>

Pin PA27

§pa28: Pin<PA28, Disabled<Floating>>

Pin PA28

§pa30: Pin<PA30, Disabled<Floating>>

Pin PA30

§pa31: Pin<PA31, Disabled<Floating>>

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 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.