Struct iis2mdc::Iis2mdc [−][src]
Fields
cfg_reg_a: CfgRegA
cfg_reg_b: CfgRegB
cfg_reg_c: CfgRegC
Implementations
impl Iis2mdc
[src]
pub fn new<I2C, E>(i2c: &mut I2C) -> Result<Iis2mdc, E> where
I2C: WriteRead<Error = E> + Write<Error = E>,
[src]
I2C: WriteRead<Error = E> + Write<Error = E>,
pub fn get_temperature<I2C>(&mut self, i2c: &mut I2C) -> Result<f32, I2C::Error> where
I2C: WriteRead,
[src]
I2C: WriteRead,
pub fn get_measurements<I2C>(
&mut self,
i2c: &mut I2C
) -> Result<[f64; 3], I2C::Error> where
I2C: WriteRead,
[src]
&mut self,
i2c: &mut I2C
) -> Result<[f64; 3], I2C::Error> where
I2C: WriteRead,
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,