pub struct InterruptPinConfig {
pub active_low: bool,
pub open_drain: bool,
pub latch_enabled: bool,
pub clear_on_any_read: bool,
}Expand description
Interrupt pin electrical configuration
Fields§
§active_low: boolActive low (true) or active high (false)
open_drain: boolOpen-drain (true) or push-pull (false)
latch_enabled: boolLatch interrupt until cleared
clear_on_any_read: boolClear interrupt status on any register read (true) or only on status read (false)
Implementations§
Source§impl InterruptPinConfig
impl InterruptPinConfig
Sourcepub const fn i2c_default() -> Self
pub const fn i2c_default() -> Self
Create configuration for active-low, open-drain interrupt (common for I2C)
Sourcepub const fn spi_default() -> Self
pub const fn spi_default() -> Self
Create configuration for active-high, push-pull interrupt (common for SPI)
Trait Implementations§
Source§impl Clone for InterruptPinConfig
impl Clone for InterruptPinConfig
Source§fn clone(&self) -> InterruptPinConfig
fn clone(&self) -> InterruptPinConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InterruptPinConfig
impl Debug for InterruptPinConfig
Source§impl Default for InterruptPinConfig
impl Default for InterruptPinConfig
Source§fn default() -> InterruptPinConfig
fn default() -> InterruptPinConfig
Returns the “default value” for a type. Read more
Source§impl Format for InterruptPinConfig
impl Format for InterruptPinConfig
Source§impl PartialEq for InterruptPinConfig
impl PartialEq for InterruptPinConfig
impl Copy for InterruptPinConfig
impl Eq for InterruptPinConfig
impl StructuralPartialEq for InterruptPinConfig
Auto Trait Implementations§
impl Freeze for InterruptPinConfig
impl RefUnwindSafe for InterruptPinConfig
impl Send for InterruptPinConfig
impl Sync for InterruptPinConfig
impl Unpin for InterruptPinConfig
impl UnwindSafe for InterruptPinConfig
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