Enum lis3dh_async::DataRate
source · #[repr(u8)]pub enum DataRate {
Hz_400 = 7,
Hz_200 = 6,
Hz_100 = 5,
Hz_50 = 4,
Hz_25 = 3,
Hz_10 = 2,
Hz_1 = 1,
PowerDown = 0,
}
Expand description
Output data rate.
Variants§
Hz_400 = 7
400Hz (Default)
Hz_200 = 6
200Hz
Hz_100 = 5
100Hz
Hz_50 = 4
50Hz
Hz_25 = 3
25Hz
Hz_10 = 2
10Hz
Hz_1 = 1
1Hz
PowerDown = 0
Power down
Implementations§
Trait Implementations§
source§impl PartialEq for DataRate
impl PartialEq for DataRate
source§impl TryFrom<u8> for DataRate
impl TryFrom<u8> for DataRate
§type Error = TryFromPrimitiveError<DataRate>
type Error = TryFromPrimitiveError<DataRate>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for DataRate
impl TryFromPrimitive for DataRate
impl Copy for DataRate
impl Eq for DataRate
impl StructuralEq for DataRate
impl StructuralPartialEq for DataRate
Auto Trait Implementations§
impl RefUnwindSafe for DataRate
impl Send for DataRate
impl Sync for DataRate
impl Unpin for DataRate
impl UnwindSafe for DataRate
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