pub struct InterruptPin<PIN, const LINE: u8>where
PIN: InterruptSource<LINE>,{ /* private fields */ }Implementations§
Source§impl<PIN, const LINE: u8> InterruptPin<PIN, LINE>where
PIN: InterruptSource<LINE>,
impl<PIN, const LINE: u8> InterruptPin<PIN, LINE>where
PIN: InterruptSource<LINE>,
pub fn new(pin: PIN, mode: InterruptMode) -> Self
pub fn release(self) -> PIN
pub const fn line_config(&self) -> LineConfig
pub const fn line(&self) -> InterruptLine
pub fn enable(&self)
pub fn disable(&self)
pub fn is_pending(&self) -> bool
pub fn is_high(&self) -> bool
pub fn is_low(&self) -> bool
pub fn clear_interrupt(&self)
Auto Trait Implementations§
impl<PIN, const LINE: u8> Freeze for InterruptPin<PIN, LINE>where
PIN: Freeze,
impl<PIN, const LINE: u8> RefUnwindSafe for InterruptPin<PIN, LINE>where
PIN: RefUnwindSafe,
impl<PIN, const LINE: u8> Send for InterruptPin<PIN, LINE>where
PIN: Send,
impl<PIN, const LINE: u8> Sync for InterruptPin<PIN, LINE>where
PIN: Sync,
impl<PIN, const LINE: u8> Unpin for InterruptPin<PIN, LINE>where
PIN: Unpin,
impl<PIN, const LINE: u8> UnsafeUnpin for InterruptPin<PIN, LINE>where
PIN: UnsafeUnpin,
impl<PIN, const LINE: u8> UnwindSafe for InterruptPin<PIN, LINE>where
PIN: UnwindSafe,
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