pub enum Repeatability {
Low,
Medium,
High,
}Expand description
The measurement repeatability, which sets noise, duration, and energy per sample.
Variants§
Low
0.21 %RH and 0.15 °C typical noise, 4 ms maximum measurement.
Medium
0.15 %RH and 0.08 °C typical noise, 6 ms maximum measurement.
High
0.08 %RH and 0.04 °C typical noise, 15 ms maximum measurement.
Implementations§
Source§impl Repeatability
impl Repeatability
Sourcepub fn max_measurement_micros(self) -> u32
pub fn max_measurement_micros(self) -> u32
Returns the longest a measurement takes at this repeatability, in microseconds.
These are the datasheet’s maxima for a supply of 2.4 V to 5.5 V; below 2.4 V each is 500 µs longer.
§Returns
4000, 6000, or 15000.
Sourcepub fn typical_measurement_micros(self) -> u32
pub fn typical_measurement_micros(self) -> u32
Returns the typical measurement duration at this repeatability, in microseconds.
§Returns
2500, 4500, or 12500.
Trait Implementations§
Source§impl Clone for Repeatability
impl Clone for Repeatability
Source§fn clone(&self) -> Repeatability
fn clone(&self) -> Repeatability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Repeatability
Source§impl Debug for Repeatability
impl Debug for Repeatability
impl Eq for Repeatability
Source§impl PartialEq for Repeatability
impl PartialEq for Repeatability
Source§fn eq(&self, other: &Repeatability) -> bool
fn eq(&self, other: &Repeatability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Repeatability
Auto Trait Implementations§
impl Freeze for Repeatability
impl RefUnwindSafe for Repeatability
impl Send for Repeatability
impl Sync for Repeatability
impl Unpin for Repeatability
impl UnsafeUnpin for Repeatability
impl UnwindSafe for Repeatability
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