Enum spl06_007::SampleRate
source · pub enum SampleRate {
One,
Two,
Four,
Eight,
Sixteen,
ThirtyTwo,
SixtyFour,
OneTwentyEight,
}Expand description
Setting for the sampling and oversampling rates.
Use Barometer::set_pressure_config and Barometer::set_temperature_config to set the sampling and oversampling rates. The oversampling rate is the number of samples taken and averaged to produce a single reading. The sampling rate is the number of times per second that the sensor will record a new reading.
Variants§
One
Take a single measurement per second or single oversample per measurement.
Two
Two measurements per second or two oversamples per measurement. Labelled “Low Power” mode in the datasheet.
Four
Four measurements per second or four oversamples per measurement.
Eight
Eight measurements per second or eight oversamples per measurement. This is the default value.
Sixteen
Sixteen measurements per second or sixteen oversamples per measurement. Labelled “Standard” mode in the datasheet.
ThirtyTwo
Thirty-two measurements per second or thirty-two oversamples per measurement.
SixtyFour
Sixty-four measurements per second or sixty-four oversamples per measurement. Labelled “High Precision” mode in the datasheet.
OneTwentyEight
One hundred twenty-eight measurements per second or one hundred twenty-eight oversamples per measurement.
Trait Implementations§
source§impl Clone for SampleRate
impl Clone for SampleRate
source§fn clone(&self) -> SampleRate
fn clone(&self) -> SampleRate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SampleRate
impl Debug for SampleRate
source§impl Ord for SampleRate
impl Ord for SampleRate
source§fn cmp(&self, other: &SampleRate) -> Ordering
fn cmp(&self, other: &SampleRate) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<SampleRate> for SampleRate
impl PartialEq<SampleRate> for SampleRate
source§fn eq(&self, other: &SampleRate) -> bool
fn eq(&self, other: &SampleRate) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd<SampleRate> for SampleRate
impl PartialOrd<SampleRate> for SampleRate
source§fn partial_cmp(&self, other: &SampleRate) -> Option<Ordering>
fn partial_cmp(&self, other: &SampleRate) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more