pub struct Input<'d> { /* private fields */ }Expand description
GPIO input driver.
Implementations§
Source§impl<'d> Input<'d>
impl<'d> Input<'d>
Sourcepub fn from_flex(pin: Flex<'d>) -> Self
pub fn from_flex(pin: Flex<'d>) -> Self
Create a GPIO input driver from an existing Flex pin.
This is useful when a pin was previously used in bidirectional mode and
needs to be converted to a typed input driver without re-acquiring the
peripheral token. The pin should already be configured as an input via
Flex::set_as_input().
Trait Implementations§
Auto Trait Implementations§
impl<'d> Freeze for Input<'d>
impl<'d> RefUnwindSafe for Input<'d>
impl<'d> Send for Input<'d>
impl<'d> Sync for Input<'d>
impl<'d> Unpin for Input<'d>
impl<'d> !UnwindSafe for Input<'d>
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