pub struct AnyPin(/* private fields */);
Expand description
Type-erased GPIO pin
Implementations§
Source§impl AnyPin
impl AnyPin
Sourcepub fn split(self) -> (InputSignal, OutputSignal)
Available on crate feature unstable
only.
pub fn split(self) -> (InputSignal, OutputSignal)
unstable
only.Split the pin into an input and output signal.
Peripheral signals allow connecting peripherals together without using external hardware.
let pin1 = peripherals.GPIO1.degrade();
let (input, output) = pin1.split();
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Trait Implementations§
Source§impl Peripheral for AnyPin
impl Peripheral for AnyPin
Source§unsafe fn clone_unchecked(&self) -> Self
unsafe fn clone_unchecked(&self) -> Self
Unsafely clone (duplicate) a peripheral singleton. Read more
Source§fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where
Self: 'a,
fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where
Self: 'a,
Convert a value into a
PeripheralRef
. Read moreimpl InputPin for AnyPin
impl OutputPin for AnyPin
Auto Trait Implementations§
impl Freeze for AnyPin
impl RefUnwindSafe for AnyPin
impl Send for AnyPin
impl Sync for AnyPin
impl Unpin for AnyPin
impl UnwindSafe for AnyPin
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more