pub struct Io { /* private fields */ }Expand description
General Purpose Input/Output driver
Implementations§
Trait Implementations§
Source§impl InterruptConfigurable for Io
impl InterruptConfigurable for Io
Source§fn set_interrupt_handler(&mut self, handler: InterruptHandler)
fn set_interrupt_handler(&mut self, handler: InterruptHandler)
Install the given interrupt handler replacing any previously set handler.
⚠️ Be careful when using this together with the async API:
- The async driver will disable any interrupts whose status is not cleared by the user handler.
- Clearing the interrupt status in the user handler will prevent the async driver from detecting the interrupt, silently disabling the corresponding pin’s async API.
- You will not be notified if you make a mistake.
Auto Trait Implementations§
impl Freeze for Io
impl RefUnwindSafe for Io
impl Send for Io
impl Sync for Io
impl Unpin for Io
impl UnwindSafe for Io
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