Struct Input
pub struct Input { /* private fields */ }
Expand description
A GPIO input.
If support for external interrupts is needed, use InputBuilder::build_with_interrupt()
to
obtain an IntEnabledInput
.
Implementations§
§impl Input
impl Input
pub fn new(pin: impl Peripheral
+ 'static, pull: Pull) -> Input
where
<impl Peripheral + 'static as Peripheral>::P: InputPin,
pub fn new(pin: impl Peripheral
+ 'static, pull: Pull) -> Input
where
<impl Peripheral + 'static as Peripheral>::P: InputPin,
Returns a configured Input
.
pub fn builder<P>(pin: P, pull: Pull) -> InputBuilder<P>where
P: Peripheral,
<P as Peripheral>::P: InputPin,
pub fn builder<P>(pin: P, pull: Pull) -> InputBuilder<P>where
P: Peripheral,
<P as Peripheral>::P: InputPin,
Returns an InputBuilder
, allowing to configure the GPIO input further.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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