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