pub struct Int<'a, REG, I2C> { /* private fields */ }
Expand description
Interrupt setting and status
Implementations§
source§impl<'a, REG, I2C, E> Int<'a, REG, I2C>
impl<'a, REG, I2C, E> Int<'a, REG, I2C>
sourcepub fn set_mode(&mut self, mode: Aoi6d) -> Result<(), Error<E>>
pub fn set_mode(&mut self, mode: Aoi6d) -> Result<(), Error<E>>
AOI-6D Interrupt mode,
INTx_CFG
: AOI
, 6D
sourcepub fn enable_high(
&mut self,
(x, y, z): (bool, bool, bool)
) -> Result<(), Error<E>>
pub fn enable_high( &mut self, (x, y, z): (bool, bool, bool) ) -> Result<(), Error<E>>
X,Y,Z high event enable,
INTx_CFG
: XHIE
, YHIE
, ZHIE
sourcepub fn enable_low(
&mut self,
(x, y, z): (bool, bool, bool)
) -> Result<(), Error<E>>
pub fn enable_low( &mut self, (x, y, z): (bool, bool, bool) ) -> Result<(), Error<E>>
X,Y,Z low event enable,
INTx_CFG
: XLIE
, YLIE
, ZLIE
Auto Trait Implementations§
impl<'a, REG, I2C> RefUnwindSafe for Int<'a, REG, I2C>where
I2C: RefUnwindSafe,
REG: RefUnwindSafe,
impl<'a, REG, I2C> Send for Int<'a, REG, I2C>
impl<'a, REG, I2C> Sync for Int<'a, REG, I2C>
impl<'a, REG, I2C> Unpin for Int<'a, REG, I2C>where
REG: Unpin,
impl<'a, REG, I2C> !UnwindSafe for Int<'a, REG, I2C>
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