pub struct Io<B, const N: u32, R, D>where
B: Bank<R>,
R: GpioRegisters,{ /* private fields */ }Expand description
Typed GPIO pin handle.
Generic parameters:
N: constant pin index within the bank.B: bank type which implementsBank<R>.R: register block implementingGpioRegisters.D: direction marker type (InputorOutput).
Implementations§
Source§impl<B, const N: u32, R> Io<B, N, R, Input>where
B: Bank<R>,
R: GpioRegisters,
impl<B, const N: u32, R> Io<B, N, R, Input>where
B: Bank<R>,
R: GpioRegisters,
Sourcepub fn set_interrupt(&mut self, interrupt: Interrupt)
pub fn set_interrupt(&mut self, interrupt: Interrupt)
Set the interrupt configuration for this input pin.
Sourcepub fn interrupt_pending(&self) -> bool
pub fn interrupt_pending(&self) -> bool
Read whether an interrupt is pending for this pin.
Auto Trait Implementations§
impl<B, const N: u32, R, D> Freeze for Io<B, N, R, D>
impl<B, const N: u32, R, D> RefUnwindSafe for Io<B, N, R, D>
impl<B, const N: u32, R, D> Send for Io<B, N, R, D>
impl<B, const N: u32, R, D> Sync for Io<B, N, R, D>
impl<B, const N: u32, R, D> Unpin for Io<B, N, R, D>
impl<B, const N: u32, R, D> UnwindSafe for Io<B, N, R, 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