Struct lis3dh_async::InterruptConfig
source · pub struct InterruptConfig {
pub z_axis_high: bool,
pub z_axis_low: bool,
pub y_axis_high: bool,
pub y_axis_low: bool,
pub x_axis_high: bool,
pub x_axis_low: bool,
}
Expand description
Configure which events on which axes trigger an interrupt.
Fields
z_axis_high: bool
z_axis_low: bool
y_axis_high: bool
y_axis_low: bool
x_axis_high: bool
x_axis_low: bool
Implementations
sourceimpl InterruptConfig
impl InterruptConfig
sourcepub const fn high_and_low() -> Self
pub const fn high_and_low() -> Self
Generate an interrupt for a low and a high event on any of the axes
pub fn to_bits(self, interrupt_mode: InterruptMode) -> u8
pub const fn from_bits(irq_src: u8) -> Self
Trait Implementations
sourceimpl Clone for InterruptConfig
impl Clone for InterruptConfig
sourcefn clone(&self) -> InterruptConfig
fn clone(&self) -> InterruptConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InterruptConfig
impl Debug for InterruptConfig
sourceimpl Default for InterruptConfig
impl Default for InterruptConfig
sourcefn default() -> InterruptConfig
fn default() -> InterruptConfig
Returns the “default value” for a type. Read more
impl Copy for InterruptConfig
Auto Trait Implementations
impl RefUnwindSafe for InterruptConfig
impl Send for InterruptConfig
impl Sync for InterruptConfig
impl Unpin for InterruptConfig
impl UnwindSafe for InterruptConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more