Struct iis2mdc::cfg_reg_a::CfgRegA [−][src]
The CFG_REG_A register
The configuration register is used to configure the output data rate and the measurement configuration.
Implementations
impl CfgRegA
[src]
pub fn new(bits: u8) -> Self
[src]
pub fn data_rate(&self) -> f32
[src]
pub fn set_data_rate<I2C>(
&mut self,
i2c: &mut I2C,
value: Odr
) -> Result<(), I2C::Error> where
I2C: Write,
[src]
&mut self,
i2c: &mut I2C,
value: Odr
) -> Result<(), I2C::Error> where
I2C: Write,
pub fn mode(&self) -> Mode
[src]
pub fn set_mode<I2C>(
&mut self,
i2c: &mut I2C,
value: Mode
) -> Result<(), I2C::Error> where
I2C: Write,
[src]
&mut self,
i2c: &mut I2C,
value: Mode
) -> Result<(), I2C::Error> where
I2C: Write,
pub fn comp_temp_en(&mut self) -> bool
[src]
pub fn set_comp_temp_en<I2C>(
&mut self,
i2c: &mut I2C,
value: bool
) -> Result<(), I2C::Error> where
I2C: Write,
[src]
&mut self,
i2c: &mut I2C,
value: bool
) -> Result<(), I2C::Error> where
I2C: Write,
pub fn reboot(&mut self) -> bool
[src]
pub fn set_reboot<I2C>(
&mut self,
i2c: &mut I2C,
value: bool
) -> Result<(), I2C::Error> where
I2C: Write,
[src]
&mut self,
i2c: &mut I2C,
value: bool
) -> Result<(), I2C::Error> where
I2C: Write,
pub fn soft_rst(&mut self) -> bool
[src]
pub fn set_soft_rst<I2C>(
&mut self,
i2c: &mut I2C,
value: bool
) -> Result<(), I2C::Error> where
I2C: Write,
[src]
&mut self,
i2c: &mut I2C,
value: bool
) -> Result<(), I2C::Error> where
I2C: Write,
pub fn lp(&mut self) -> bool
[src]
pub fn set_lp<I2C>(
&mut self,
i2c: &mut I2C,
value: bool
) -> Result<(), I2C::Error> where
I2C: Write,
[src]
&mut self,
i2c: &mut I2C,
value: bool
) -> Result<(), I2C::Error> where
I2C: Write,
Trait Implementations
impl Binary for CfgRegA
[src]
impl Debug for CfgRegA
[src]
impl Display for CfgRegA
[src]
impl LowerHex for CfgRegA
[src]
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>,