pub enum TemperatureResolution {
Bits14,
Bits11,
}Expand description
The TRES field: temperature measurement resolution.
Variants§
Implementations§
Source§impl TemperatureResolution
impl TemperatureResolution
Sourcepub fn conversion_time_micros(self) -> u32
pub fn conversion_time_micros(self) -> u32
Returns the conversion time for this resolution.
§Returns
The datasheet’s typical temperature conversion time in microseconds.
Trait Implementations§
Source§impl Clone for TemperatureResolution
impl Clone for TemperatureResolution
Source§fn clone(&self) -> TemperatureResolution
fn clone(&self) -> TemperatureResolution
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 TemperatureResolution
Source§impl Debug for TemperatureResolution
impl Debug for TemperatureResolution
impl Eq for TemperatureResolution
Source§impl PartialEq for TemperatureResolution
impl PartialEq for TemperatureResolution
Source§fn eq(&self, other: &TemperatureResolution) -> bool
fn eq(&self, other: &TemperatureResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TemperatureResolution
Auto Trait Implementations§
impl Freeze for TemperatureResolution
impl RefUnwindSafe for TemperatureResolution
impl Send for TemperatureResolution
impl Sync for TemperatureResolution
impl Unpin for TemperatureResolution
impl UnsafeUnpin for TemperatureResolution
impl UnwindSafe for TemperatureResolution
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