Enum lsm303agr::AccelOutputDataRate
source · pub enum AccelOutputDataRate {
Hz1,
Hz10,
Hz25,
Hz50,
Hz100,
Hz200,
Hz400,
Khz1_344,
Khz1_620LowPower,
Khz5_376LowPower,
}
Expand description
Accelerometer output data rate
Variants§
Hz1
1 Hz (all modes)
Hz10
10 Hz all modes)
Hz25
25 Hz (all modes)
Hz50
50 Hz (all modes)
Hz100
100 Hz (all modes)
Hz200
200 Hz (all modes)
Hz400
400 Hz (all modes)
Khz1_344
1.344 kHz (only normal and high-resolution modes)
Khz1_620LowPower
1.620 kHz (only low-power mode)
Khz5_376LowPower
5.376 kHz (only low-power mode)
Implementations§
source§impl AccelOutputDataRate
impl AccelOutputDataRate
sourcepub const fn from_hertz(hz: u16) -> Option<Self>
pub const fn from_hertz(hz: u16) -> Option<Self>
Create an AccelOutputDataRate
with the given frequency in Hertz.
Trait Implementations§
source§impl Clone for AccelOutputDataRate
impl Clone for AccelOutputDataRate
source§fn clone(&self) -> AccelOutputDataRate
fn clone(&self) -> AccelOutputDataRate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AccelOutputDataRate
impl Debug for AccelOutputDataRate
source§impl PartialEq for AccelOutputDataRate
impl PartialEq for AccelOutputDataRate
source§fn eq(&self, other: &AccelOutputDataRate) -> bool
fn eq(&self, other: &AccelOutputDataRate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AccelOutputDataRate
impl StructuralPartialEq for AccelOutputDataRate
Auto Trait Implementations§
impl RefUnwindSafe for AccelOutputDataRate
impl Send for AccelOutputDataRate
impl Sync for AccelOutputDataRate
impl Unpin for AccelOutputDataRate
impl UnwindSafe for AccelOutputDataRate
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