Struct capsules_extra::fxos8700cq::Fxos8700cq
source · pub struct Fxos8700cq<'a> { /* private fields */ }
Implementations§
source§impl<'a> Fxos8700cq<'a>
impl<'a> Fxos8700cq<'a>
pub fn new( i2c: &'a dyn I2CDevice, interrupt_pin1: &'a dyn InterruptPin<'a>, buffer: &'static mut [u8], ) -> Fxos8700cq<'a>
Trait Implementations§
source§impl Client for Fxos8700cq<'_>
impl Client for Fxos8700cq<'_>
source§impl I2CClient for Fxos8700cq<'_>
impl I2CClient for Fxos8700cq<'_>
source§impl<'a> NineDof<'a> for Fxos8700cq<'a>
impl<'a> NineDof<'a> for Fxos8700cq<'a>
source§fn set_client(&self, client: &'a dyn NineDofClient)
fn set_client(&self, client: &'a dyn NineDofClient)
Set the client to be notified when the capsule has data ready or
has finished some command. This is likely called in a board’s main.rs
and is set to the virtual_ninedof.rs driver.
source§fn read_accelerometer(&self) -> Result<(), ErrorCode>
fn read_accelerometer(&self) -> Result<(), ErrorCode>
Get a single instantaneous reading of the acceleration in the
X,Y,Z directions.
Auto Trait Implementations§
impl<'a> !Freeze for Fxos8700cq<'a>
impl<'a> !RefUnwindSafe for Fxos8700cq<'a>
impl<'a> !Send for Fxos8700cq<'a>
impl<'a> !Sync for Fxos8700cq<'a>
impl<'a> Unpin for Fxos8700cq<'a>
impl<'a> !UnwindSafe for Fxos8700cq<'a>
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