pub struct TemperatureSensor(/* private fields */);Implementations§
Source§impl TemperatureSensor
impl TemperatureSensor
Sourcepub const fn vcu_temperature(&self) -> f32
pub const fn vcu_temperature(&self) -> f32
VCU Temperature
Reported by the SHT30.
Units: C
Bits: 0..16
Sourcepub const fn with_vcu_temperature_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_vcu_temperature_checked(self, value: f32) -> Result<Self, ()>
VCU Temperature
Reported by the SHT30.
Units: C
Bits: 0..16
Sourcepub const fn with_vcu_temperature(self, value: f32) -> Self
pub const fn with_vcu_temperature(self, value: f32) -> Self
VCU Temperature
Reported by the SHT30.
Units: C
Bits: 0..16
Sourcepub const fn set_vcu_temperature(&mut self, value: f32)
pub const fn set_vcu_temperature(&mut self, value: f32)
VCU Temperature
Reported by the SHT30.
Units: C
Bits: 0..16
Sourcepub const fn set_vcu_temperature_checked(
&mut self,
value: f32,
) -> Result<(), ()>
pub const fn set_vcu_temperature_checked( &mut self, value: f32, ) -> Result<(), ()>
VCU Temperature
Reported by the SHT30.
Units: C
Bits: 0..16
Sourcepub const fn vcu_humidity(&self) -> f32
pub const fn vcu_humidity(&self) -> f32
VCU Humidity
Reported by the SHT30.
Units: %
Bits: 16..32
Sourcepub const fn with_vcu_humidity_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_vcu_humidity_checked(self, value: f32) -> Result<Self, ()>
VCU Humidity
Reported by the SHT30.
Units: %
Bits: 16..32
Sourcepub const fn with_vcu_humidity(self, value: f32) -> Self
pub const fn with_vcu_humidity(self, value: f32) -> Self
VCU Humidity
Reported by the SHT30.
Units: %
Bits: 16..32
Sourcepub const fn set_vcu_humidity(&mut self, value: f32)
pub const fn set_vcu_humidity(&mut self, value: f32)
VCU Humidity
Reported by the SHT30.
Units: %
Bits: 16..32
Source§impl TemperatureSensor
impl TemperatureSensor
Sourcepub fn try_with_vcu_temperature(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_vcu_temperature(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_vcu_temperature but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_vcu_temperature(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_vcu_temperature(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_vcu_temperature but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_vcu_humidity(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_vcu_humidity(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_vcu_humidity but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_vcu_humidity(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_vcu_humidity(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_vcu_humidity but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for TemperatureSensor
impl Clone for TemperatureSensor
Source§fn clone(&self) -> TemperatureSensor
fn clone(&self) -> TemperatureSensor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more