Struct arduino_hal::port::Pins

source ·
pub struct Pins {
Show 20 fields pub a0: Pin<Input<Floating>, A0>, pub a1: Pin<Input<Floating>, A1>, pub a2: Pin<Input<Floating>, A2>, pub a3: Pin<Input<Floating>, A3>, pub a4: Pin<Input<Floating>, A4>, pub a5: Pin<Input<Floating>, A5>, pub d0: Pin<Input<Floating>, D0>, pub d1: Pin<Input<Floating>, D1>, pub d2: Pin<Input<Floating>, D2>, pub d3: Pin<Input<Floating>, D3>, pub d4: Pin<Input<Floating>, D4>, pub d5: Pin<Input<Floating>, D5>, pub d6: Pin<Input<Floating>, D6>, pub d7: Pin<Input<Floating>, D7>, pub d8: Pin<Input<Floating>, D8>, pub d9: Pin<Input<Floating>, D9>, pub d10: Pin<Input<Floating>, D10>, pub d11: Pin<Input<Floating>, D11>, pub d12: Pin<Input<Floating>, D12>, pub d13: Pin<Input<Floating>, D13>,
}
Expand description

Pins of the Arduino Uno, Arduino Nano, SparkFun ProMini 3.3V (8Mhz), and SparkFun ProMini 5V (16MHz).

This struct is best initialized via the arduino_hal::pins!() macro.

Fields§

§a0: Pin<Input<Floating>, A0>§a1: Pin<Input<Floating>, A1>§a2: Pin<Input<Floating>, A2>§a3: Pin<Input<Floating>, A3>§a4: Pin<Input<Floating>, A4>§a5: Pin<Input<Floating>, A5>§d0: Pin<Input<Floating>, D0>§d1: Pin<Input<Floating>, D1>§d2: Pin<Input<Floating>, D2>§d3: Pin<Input<Floating>, D3>§d4: Pin<Input<Floating>, D4>§d5: Pin<Input<Floating>, D5>§d6: Pin<Input<Floating>, D6>§d7: Pin<Input<Floating>, D7>§d8: Pin<Input<Floating>, D8>§d9: Pin<Input<Floating>, D9>§d10: Pin<Input<Floating>, D10>§d11: Pin<Input<Floating>, D11>§d12: Pin<Input<Floating>, D12>§d13: Pin<Input<Floating>, D13>

Implementations§

source§

impl Pins

source

pub fn with_mcu_pins(pins: Pins) -> Self

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, U> TryFrom<U> for T
where 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 T
where 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.