pub struct InterruptPinConfig(pub u8);Expand description
Interrupt pin configuration value, use builder methods
Tuple Fields§
§0: u8Implementations§
Source§impl InterruptPinConfig
impl InterruptPinConfig
Sourcepub fn builder() -> InterruptPinConfig
pub fn builder() -> InterruptPinConfig
builder sets config value to 0x00
Sourcepub fn active_high(self) -> Self
pub fn active_high(self) -> Self
interrupt pin is high when active
Sourcepub fn active_low(self) -> Self
pub fn active_low(self) -> Self
interrupt pin is low when active
Sourcepub fn open_drain(self) -> Self
pub fn open_drain(self) -> Self
interrupt pin drive is open drain (not driven)
Sourcepub fn on_new_group_data(self) -> Self
pub fn on_new_group_data(self) -> Self
interrupt on new group data ready
Sourcepub fn not_new_group_data(self) -> Self
pub fn not_new_group_data(self) -> Self
no interrupt when new group data ready
Sourcepub fn on_new_data(self) -> Self
pub fn on_new_data(self) -> Self
interrupt on new data ready
Sourcepub fn not_new_data(self) -> Self
pub fn not_new_data(self) -> Self
no interrupt when new data ready
Sourcepub fn enable_interrupt(self) -> Self
pub fn enable_interrupt(self) -> Self
enable interrupt pin
Sourcepub fn disable_interrupt(self) -> Self
pub fn disable_interrupt(self) -> Self
disable interrupt pin
Trait Implementations§
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