pub struct Input<'d> { /* private fields */ }
Expand description
GPIO input driver.
Implementations§
Source§impl<'d> Input<'d>
impl<'d> Input<'d>
Sourcepub fn exti_config(&self, mode: ExtiMode)
pub fn exti_config(&self, mode: ExtiMode)
Configures the EXTI (External Interrupt) mode for the pin.
§Arguments
mode
- The EXTI mode to set. This can be rising edge, falling edge, both edges, etc.
Sourcepub fn enable_interrupt(&self)
pub fn enable_interrupt(&self)
Enables the interrupt for the pin.
This function can be reenabled after disabling it.
Sourcepub fn disable_interrupt(&self)
pub fn disable_interrupt(&self)
Disables the interrupt for the pin.
This function can be used to temporarily disable the interrupt without changing the EXTI mode.
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