[][src]Struct lsm303c::LsmConfig

pub struct LsmConfig { /* fields omitted */ }

Configuration of Lsm303c

Methods

impl LsmConfig[src]

pub fn new() -> Self[src]

pub fn accel_scale(&mut self, accel_scale: AccelScale) -> &mut Self[src]

Sets accelerometer full reading scale (AccelScale)

pub fn mag_scale(&mut self, mag_scale: MagScale) -> &mut Self[src]

Sets magnetrometer full reading scale (MagScale)

pub fn accel_data_rate(&mut self, accel_data_rate: AccelDataRate) -> &mut Self[src]

Sets accelerometer output data rate (AccelDataRate)

pub fn mag_data_rate(&mut self, mag_data_rate: MagDataRate) -> &mut Self[src]

Sets magnetrometer output data rate (MagDataRate)

pub fn accel_block_data_update(
    &mut self,
    accel_block_data_update: AccelBlockDataUpdate
) -> &mut Self
[src]

Sets accelerometer block data update (AccelBlockDataUpdate)

pub fn mag_block_data_update(
    &mut self,
    mag_block_data_update: MagBlockDataUpdate
) -> &mut Self
[src]

Sets magnetrometer block data update (MagBlockDataUpdate)

pub fn mag_mode(&mut self, mag_mode: MagMode) -> &mut Self[src]

Sets magnetrometer mode (MagMode)

pub fn mag_xy_operative_mode(
    &mut self,
    operative_mode: MagXYOperativeMode
) -> &mut Self
[src]

Sets magnetrometer x and y axes operative mode (MagXYOperativeMode)

pub fn mag_z_operative_mode(
    &mut self,
    operative_mode: MagZOperativeMode
) -> &mut Self
[src]

Sets magnetrometer z axis operative mode (MagZOperativeMode)

pub fn accel_axes_control(
    &mut self,
    axes_control: AccelAxesControl
) -> &mut Self
[src]

Sets accel axes control (AccelAxesControl)

pub fn temp_control(&mut self, temp_control: TempControl) -> &mut Self[src]

Sets temperature control (TempControl)

Trait Implementations

impl Debug for LsmConfig[src]

impl Copy for LsmConfig[src]

impl Clone for LsmConfig[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Unpin for LsmConfig

impl Sync for LsmConfig

impl Send for LsmConfig

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]