Struct capsules_extra::bmm150::BMM150
source · pub struct BMM150<'a, I: I2CDevice> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'a, I: I2CDevice> NineDof<'a> for BMM150<'a, I>
impl<'a, I: I2CDevice> NineDof<'a> for BMM150<'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_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, I> !Freeze for BMM150<'a, I>
impl<'a, I> !RefUnwindSafe for BMM150<'a, I>
impl<'a, I> !Send for BMM150<'a, I>
impl<'a, I> !Sync for BMM150<'a, I>
impl<'a, I> Unpin for BMM150<'a, I>
impl<'a, I> !UnwindSafe for BMM150<'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