#[repr(C)]pub struct PamojaDs18b20Reading {
pub raw_temperature: i16,
pub micro_celsius: i32,
pub alarm_high: i8,
pub alarm_low: i8,
pub resolution_bits: u8,
}Expand description
A decoded DS18B20 scratchpad.
Fields§
§raw_temperature: i16The raw temperature register, 1/16 degree Celsius per count.
micro_celsius: i32The temperature in micro-degrees Celsius, exact in integer arithmetic.
alarm_high: i8The high alarm threshold in whole degrees Celsius.
alarm_low: i8The low alarm threshold in whole degrees Celsius.
resolution_bits: u8The configured resolution, as a number of bits: 9, 10, 11, or 12.
Trait Implementations§
Source§impl Clone for PamojaDs18b20Reading
impl Clone for PamojaDs18b20Reading
Source§fn clone(&self) -> PamojaDs18b20Reading
fn clone(&self) -> PamojaDs18b20Reading
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 PamojaDs18b20Reading
Source§impl Debug for PamojaDs18b20Reading
impl Debug for PamojaDs18b20Reading
impl Eq for PamojaDs18b20Reading
Source§impl PartialEq for PamojaDs18b20Reading
impl PartialEq for PamojaDs18b20Reading
Source§fn eq(&self, other: &PamojaDs18b20Reading) -> bool
fn eq(&self, other: &PamojaDs18b20Reading) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaDs18b20Reading
Auto Trait Implementations§
impl Freeze for PamojaDs18b20Reading
impl RefUnwindSafe for PamojaDs18b20Reading
impl Send for PamojaDs18b20Reading
impl Sync for PamojaDs18b20Reading
impl Unpin for PamojaDs18b20Reading
impl UnsafeUnpin for PamojaDs18b20Reading
impl UnwindSafe for PamojaDs18b20Reading
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