[−][src]Struct lsm303c::LsmConfig
Configuration of Lsm303c
Methods
impl LsmConfig
[src]
pub fn new() -> Self
[src]
Creates Lsm303c configuration with default
AccelScale
, MagScale
, AccelDataRate
,
MagDataRate
, MagMode
, AccelBlockDataUpdate
,
MagBlockDataUpdate
, MagXYOperativeMode
, MagZOperativeMode
,
AccelAxesControl
, and TempControl
.
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]
&mut self,
accel_block_data_update: AccelBlockDataUpdate
) -> &mut Self
Sets accelerometer block data update (AccelBlockDataUpdate
)
pub fn mag_block_data_update(
&mut self,
mag_block_data_update: MagBlockDataUpdate
) -> &mut Self
[src]
&mut self,
mag_block_data_update: MagBlockDataUpdate
) -> &mut Self
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]
&mut self,
operative_mode: MagXYOperativeMode
) -> &mut Self
Sets magnetrometer x and y axes operative mode (MagXYOperativeMode
)
pub fn mag_z_operative_mode(
&mut self,
operative_mode: MagZOperativeMode
) -> &mut Self
[src]
&mut self,
operative_mode: MagZOperativeMode
) -> &mut Self
Sets magnetrometer z axis operative mode (MagZOperativeMode
)
pub fn accel_axes_control(
&mut self,
axes_control: AccelAxesControl
) -> &mut Self
[src]
&mut self,
axes_control: AccelAxesControl
) -> &mut Self
Sets accel axes control (AccelAxesControl
)
pub fn temp_control(&mut self, temp_control: TempControl) -> &mut Self
[src]
Sets temperature control (TempControl
)
Trait Implementations
Auto Trait Implementations
Blanket Implementations
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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,