#[repr(u8)]pub enum OverSamplingSetting {
HighSpeed = 0,
LowPower = 1,
Standard = 2,
HighAccuracy = 3,
UltraHighAccuracy = 4,
}Expand description
The oversampling setting.
It chooses the accuracy of the measurement, with an impact on the duration of the measurement. The greater the accuracy, the longer the duration of the measurement, and the higher the current consumption.
Variants§
HighSpeed = 0
The shorter measurement, with the lowest accuracy. This is typically used for weather monitoring.
LowPower = 1
A measurement with a litle more accuracy, but still a low current consumption. This might be used for drop detection.
Standard = 2
The standard setting, providing a compromise between the accuracy of the measurement and its duration. This might be used for elevator detection.
HighAccuracy = 3
A high accuracy measurement, with a quite long duration. This might be used for stair detection.
UltraHighAccuracy = 4
The best accuracy measurement, with the longer duration and higher current consumption. This is typically used for indoor navigation.
Trait Implementations§
Source§impl Clone for OverSamplingSetting
impl Clone for OverSamplingSetting
Source§fn clone(&self) -> OverSamplingSetting
fn clone(&self) -> OverSamplingSetting
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more