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§
source§impl 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§
source§impl Clone for InterruptConfig
impl Clone for InterruptConfig
source§fn clone(&self) -> InterruptConfig
fn clone(&self) -> InterruptConfig
Returns a copy 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 InterruptConfig
impl Debug for InterruptConfig
source§impl Default for InterruptConfig
impl Default for InterruptConfig
source§fn default() -> InterruptConfig
fn default() -> InterruptConfig
Returns the “default value” for a type. Read more