pub struct PIOAGeneric<MODE> { /* private fields */ }

Implementations§

source§

impl<MODE> PIOAGeneric<MODE>

source

pub fn downgrade(self) -> PioX<MODE>

Trait Implementations§

source§

impl<MODE> InputPin for PIOAGeneric<Input<MODE>>

§

type Error = Infallible

Error type
source§

fn is_high(&self) -> Result<bool, Self::Error>

Is the input pin high?
source§

fn is_low(&self) -> Result<bool, Self::Error>

Is the input pin low?
source§

impl IoPin<PIOAGeneric<Input<Floating>>, PIOAGeneric<Output<PushPull>>> for PIOAGeneric<Input<Floating>>

§

type Error = Infallible

Error type.
source§

fn into_input_pin(self) -> Result<Self, Self::Error>

Tries to convert this pin to input mode. Read more
source§

fn into_output_pin( self, state: PinState ) -> Result<PIOAGeneric<Output<PushPull>>, Self::Error>

Tries to convert this pin to output mode with the given initial state. Read more
source§

impl IoPin<PIOAGeneric<Input<Floating>>, PIOAGeneric<Output<PushPull>>> for PIOAGeneric<Output<PushPull>>

§

type Error = Infallible

Error type.
source§

fn into_input_pin(self) -> Result<PIOAGeneric<Input<Floating>>, Self::Error>

Tries to convert this pin to input mode. Read more
source§

fn into_output_pin(self, state: PinState) -> Result<Self, Self::Error>

Tries to convert this pin to output mode with the given initial state. Read more
source§

impl IoPin<PIOAGeneric<Input<PullDown>>, PIOAGeneric<Output<PushPull>>> for PIOAGeneric<Input<PullDown>>

§

type Error = Infallible

Error type.
source§

fn into_input_pin(self) -> Result<Self, Self::Error>

Tries to convert this pin to input mode. Read more
source§

fn into_output_pin( self, state: PinState ) -> Result<PIOAGeneric<Output<PushPull>>, Self::Error>

Tries to convert this pin to output mode with the given initial state. Read more
source§

impl IoPin<PIOAGeneric<Input<PullDown>>, PIOAGeneric<Output<PushPull>>> for PIOAGeneric<Output<PushPull>>

§

type Error = Infallible

Error type.
source§

fn into_input_pin(self) -> Result<PIOAGeneric<Input<PullDown>>, Self::Error>

Tries to convert this pin to input mode. Read more
source§

fn into_output_pin(self, state: PinState) -> Result<Self, Self::Error>

Tries to convert this pin to output mode with the given initial state. Read more
source§

impl IoPin<PIOAGeneric<Input<PullUp>>, PIOAGeneric<Output<PushPull>>> for PIOAGeneric<Input<PullUp>>

§

type Error = Infallible

Error type.
source§

fn into_input_pin(self) -> Result<Self, Self::Error>

Tries to convert this pin to input mode. Read more
source§

fn into_output_pin( self, state: PinState ) -> Result<PIOAGeneric<Output<PushPull>>, Self::Error>

Tries to convert this pin to output mode with the given initial state. Read more
source§

impl IoPin<PIOAGeneric<Input<PullUp>>, PIOAGeneric<Output<PushPull>>> for PIOAGeneric<Output<PushPull>>

§

type Error = Infallible

Error type.
source§

fn into_input_pin(self) -> Result<PIOAGeneric<Input<PullUp>>, Self::Error>

Tries to convert this pin to input mode. Read more
source§

fn into_output_pin(self, state: PinState) -> Result<Self, Self::Error>

Tries to convert this pin to output mode with the given initial state. Read more
source§

impl<MODE> OutputPin for PIOAGeneric<Output<MODE>>

§

type Error = Infallible

Error type
source§

fn set_high(&mut self) -> Result<(), Self::Error>

Drives the pin high Read more
source§

fn set_low(&mut self) -> Result<(), Self::Error>

Drives the pin low Read more
source§

fn set_state(&mut self, state: PinState) -> Result<(), Self::Error>

Drives the pin high or low depending on the provided value Read more
source§

impl<MODE> StatefulOutputPin for PIOAGeneric<Output<MODE>>

source§

fn is_set_high(&self) -> Result<bool, Self::Error>

Is the pin in drive high mode? Read more
source§

fn is_set_low(&self) -> Result<bool, Self::Error>

Is the pin in drive low mode? Read more
source§

impl<MODE> Default for PIOAGeneric<Output<MODE>>

Auto Trait Implementations§

§

impl<MODE> RefUnwindSafe for PIOAGeneric<MODE>where MODE: RefUnwindSafe,

§

impl<MODE> Send for PIOAGeneric<MODE>where MODE: Send,

§

impl<MODE> Sync for PIOAGeneric<MODE>where MODE: Sync,

§

impl<MODE> Unpin for PIOAGeneric<MODE>where MODE: Unpin,

§

impl<MODE> UnwindSafe for PIOAGeneric<MODE>where MODE: UnwindSafe,

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<P> ToggleableOutputPin for Pwhere P: Default,

source§

fn toggle(&mut self) -> Result<(), <P as ToggleableOutputPin>::Error>

Toggle pin output

§

type Error = <P as OutputPin>::Error

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