pub struct Input<'d, C: ControlKind> { /* private fields */ }Expand description
GPIO input driver
Implementations§
Source§impl<'d> Input<'d, WithPullUp>
impl<'d> Input<'d, WithPullUp>
Sourcepub fn new_with_pull_up(pin: Peri<'d, impl Pin>, pull_up: bool) -> Self
pub fn new_with_pull_up(pin: Peri<'d, impl Pin>, pull_up: bool) -> Self
Sourcepub fn set_pull_up(&mut self, pull_up: bool)
pub fn set_pull_up(&mut self, pull_up: bool)
Enable the internal pull-up resistor?
§Notes
This is ignored by the MCU unless the pin is configured for input.
Source§impl<'d, C: ControlKind> Input<'d, C>
impl<'d, C: ControlKind> Input<'d, C>
Trait Implementations§
Auto Trait Implementations§
impl<'d, C> !UnwindSafe for Input<'d, C>
impl<'d, C> Forget for Input<'d, C>
impl<'d, C> Freeze for Input<'d, C>
impl<'d, C> Move for Input<'d, C>
impl<'d, C> RefUnwindSafe for Input<'d, C>where
Flex<'d, C>: RefUnwindSafe,
impl<'d, C> Send for Input<'d, C>
impl<'d, C> Sync for Input<'d, C>
impl<'d, C> Unpin for Input<'d, C>
impl<'d, C> UnsafeUnpin for Input<'d, C>where
Flex<'d, C>: UnsafeUnpin,
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