pub enum AccelFsr {
Opt2G,
Opt4G,
Opt8G,
Opt16G,
}Variants§
Implementations§
Source§impl AccelFsr
The full-scale range of the accelerometer.
2G gives the highest sensitivity, but saturates at +-2G.
16G gives the lowest sensitivity, but has the largest range.
impl AccelFsr
The full-scale range of the accelerometer. 2G gives the highest sensitivity, but saturates at +-2G. 16G gives the lowest sensitivity, but has the largest range.
Sourcepub fn get_sensitivity_g(&self) -> f32
pub fn get_sensitivity_g(&self) -> f32
Sensitivity is the measurement of the LSB.
pub fn get_sensitivity_mss(&self) -> f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AccelFsr
impl RefUnwindSafe for AccelFsr
impl Send for AccelFsr
impl Sync for AccelFsr
impl Unpin for AccelFsr
impl UnwindSafe for AccelFsr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more