pub struct AnyPin(/* private fields */);Expand description
Type-erased GPIO pin
Implementations§
Source§impl AnyPin
impl AnyPin
Sourcepub fn split(self) -> (InputSignal, OutputSignal)
pub fn split(self) -> (InputSignal, OutputSignal)
Split the pin into an input and output signal.
Peripheral signals allow connecting peripherals together without using external hardware.
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§impl RtcPin for AnyPin
impl RtcPin for AnyPin
Source§fn rtc_set_config(&mut self, input_enable: bool, mux: bool, func: RtcFunction)
fn rtc_set_config(&mut self, input_enable: bool, mux: bool, func: RtcFunction)
Configure the pin
Source§fn rtcio_pad_hold(&mut self, enable: bool)
fn rtcio_pad_hold(&mut self, enable: bool)
Enable or disable PAD_HOLD
Source§impl RtcPinWithResistors for AnyPin
impl RtcPinWithResistors for AnyPin
Source§fn rtcio_pullup(&mut self, enable: bool)
fn rtcio_pullup(&mut self, enable: bool)
Enable/disable the internal pull-up resistor
Source§fn rtcio_pulldown(&mut self, enable: bool)
fn rtcio_pulldown(&mut self, enable: bool)
Enable/disable the internal pull-down resistor
impl 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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more