pub enum OutputDataRate {
Show 14 variants
Hz0_78 = 1,
Hz1_56 = 2,
Hz3_12 = 3,
Hz6_25 = 4,
Hz12_5 = 5,
Hz25 = 6,
Hz50 = 7,
Hz100 = 8,
Hz200 = 9,
Hz400 = 10,
Hz800 = 11,
Hz1600 = 12,
Hz3200 = 13,
Hz6400 = 14,
}
Expand description
Output data rate (ODR) for accelerometer and gyroscope.
Higher ODR values reduce latency but increase power consumption and data bandwidth requirements. Choose based on your application’s sampling rate needs.
Variants§
Hz0_78 = 1
Hz1_56 = 2
Hz3_12 = 3
Hz6_25 = 4
Hz12_5 = 5
Hz25 = 6
Hz50 = 7
Hz100 = 8
Hz200 = 9
Hz400 = 10
Hz800 = 11
Hz1600 = 12
Hz3200 = 13
Hz6400 = 14
Trait Implementations§
Source§impl Clone for OutputDataRate
impl Clone for OutputDataRate
Source§fn clone(&self) -> OutputDataRate
fn clone(&self) -> OutputDataRate
Returns a duplicate 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 OutputDataRate
impl Debug for OutputDataRate
Source§impl From<OutputDataRate> for u8
impl From<OutputDataRate> for u8
Source§fn from(odr: OutputDataRate) -> Self
fn from(odr: OutputDataRate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OutputDataRate
impl PartialEq for OutputDataRate
Source§impl TryFrom<u8> for OutputDataRate
impl TryFrom<u8> for OutputDataRate
impl Copy for OutputDataRate
impl StructuralPartialEq for OutputDataRate
Auto Trait Implementations§
impl Freeze for OutputDataRate
impl RefUnwindSafe for OutputDataRate
impl Send for OutputDataRate
impl Sync for OutputDataRate
impl Unpin for OutputDataRate
impl UnwindSafe for OutputDataRate
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