Struct embassy_stm32::gpio::Input
source · pub struct Input<'d, T: Pin> { /* private fields */ }
Expand description
GPIO input driver.
Implementations§
source§impl<'d, T: Pin> Input<'d, T>
impl<'d, T: Pin> Input<'d, T>
sourcepub fn new(pin: impl Peripheral<P = T> + 'd, pull: Pull) -> Self
pub fn new(pin: impl Peripheral<P = T> + 'd, pull: Pull) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'d, T> RefUnwindSafe for Input<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for Input<'d, T>where
T: Send,
impl<'d, T> Sync for Input<'d, T>where
T: Sync,
impl<'d, T> Unpin for Input<'d, T>where
T: Unpin,
impl<'d, T> !UnwindSafe for Input<'d, T>
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