pub enum ConversionMode {
Shutdown,
OneShot,
Continuous,
}
Expand description
Conversion mode.
Variants§
Shutdown
Shutdown all device circuitry other than the serial interface. Current consumption is typically less than 0.5uA while in this mode.
OneShot
One-shot conversion. Started from Shutdown
mode, causes the device to
initiate a single temperature conversion. Once completed, device goes
back to shutdown state.
Continuous
Continuous conversion. Periodic conversions at the rate indicated by
ConversionRate
bits (CR1 and CR0 in the Configuration register).
Trait Implementations§
Source§impl Bitsized for ConversionMode
impl Bitsized for ConversionMode
Source§impl Debug for ConversionMode
impl Debug for ConversionMode
Source§impl From<ConversionMode> for u2
impl From<ConversionMode> for u2
Source§fn from(enum_value: ConversionMode) -> Self
fn from(enum_value: ConversionMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConversionMode
impl PartialEq for ConversionMode
Source§impl PartialOrd for ConversionMode
impl PartialOrd for ConversionMode
impl StructuralPartialEq for ConversionMode
Auto Trait Implementations§
impl Freeze for ConversionMode
impl RefUnwindSafe for ConversionMode
impl Send for ConversionMode
impl Sync for ConversionMode
impl Unpin for ConversionMode
impl UnwindSafe for ConversionMode
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