pub struct Icm42670p<'a, A: Alarm<'a>, I: I2CDevice<'a>> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'a, A: Alarm<'a>, I: I2CDevice<'a>> NineDof<'a> for Icm42670p<'a, A, I>
impl<'a, A: Alarm<'a>, I: I2CDevice<'a>> NineDof<'a> for Icm42670p<'a, A, I>
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.
Source§fn read_gyroscope(&self) -> Result<(), ErrorCode>
fn read_gyroscope(&self) -> Result<(), ErrorCode>
Get a single instantaneous reading from the gyroscope of the rotation
around all three axes.
§fn read_magnetometer(&self) -> Result<(), ErrorCode>
fn read_magnetometer(&self) -> Result<(), ErrorCode>
Get a single instantaneous reading from the magnetometer in all
three directions.
Auto Trait Implementations§
impl<'a, A, I> !Freeze for Icm42670p<'a, A, I>
impl<'a, A, I> !RefUnwindSafe for Icm42670p<'a, A, I>
impl<'a, A, I> !Send for Icm42670p<'a, A, I>
impl<'a, A, I> !Sync for Icm42670p<'a, A, I>
impl<'a, A, I> !UnwindSafe for Icm42670p<'a, A, I>
impl<'a, A, I> Unpin for Icm42670p<'a, A, I>
impl<'a, A, I> UnsafeUnpin for Icm42670p<'a, A, I>
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