Struct iis2mdc::cfg_reg_a::CfgRegA[][src]

pub struct CfgRegA(_);

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]

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]

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]

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]

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.