pub struct OnboardThermTemperatures(/* private fields */);Implementations§
Source§impl OnboardThermTemperatures
impl OnboardThermTemperatures
Sourcepub const fn with_chip_id_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_chip_id_checked(self, value: u8) -> Result<Self, ()>
Bits: 0..8
Sourcepub const fn with_chip_id(self, value: u8) -> Self
pub const fn with_chip_id(self, value: u8) -> Self
Bits: 0..8
Sourcepub const fn set_chip_id(&mut self, value: u8)
pub const fn set_chip_id(&mut self, value: u8)
Bits: 0..8
Sourcepub const fn therm_temp_1(&self) -> f32
pub const fn therm_temp_1(&self) -> f32
Temp of onboard therm 1
Units: C
Bits: 8..24
Sourcepub const fn with_therm_temp_1_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_therm_temp_1_checked(self, value: f32) -> Result<Self, ()>
Temp of onboard therm 1
Units: C
Bits: 8..24
Sourcepub const fn with_therm_temp_1(self, value: f32) -> Self
pub const fn with_therm_temp_1(self, value: f32) -> Self
Temp of onboard therm 1
Units: C
Bits: 8..24
Sourcepub const fn set_therm_temp_1(&mut self, value: f32)
pub const fn set_therm_temp_1(&mut self, value: f32)
Temp of onboard therm 1
Units: C
Bits: 8..24
Sourcepub const fn set_therm_temp_1_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_therm_temp_1_checked(&mut self, value: f32) -> Result<(), ()>
Temp of onboard therm 1
Units: C
Bits: 8..24
Sourcepub const fn therm_temp_2(&self) -> f32
pub const fn therm_temp_2(&self) -> f32
Temp of onboard therm 2
Units: C
Bits: 24..40
Sourcepub const fn with_therm_temp_2_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_therm_temp_2_checked(self, value: f32) -> Result<Self, ()>
Temp of onboard therm 2
Units: C
Bits: 24..40
Sourcepub const fn with_therm_temp_2(self, value: f32) -> Self
pub const fn with_therm_temp_2(self, value: f32) -> Self
Temp of onboard therm 2
Units: C
Bits: 24..40
Sourcepub const fn set_therm_temp_2(&mut self, value: f32)
pub const fn set_therm_temp_2(&mut self, value: f32)
Temp of onboard therm 2
Units: C
Bits: 24..40
Sourcepub const fn set_therm_temp_2_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_therm_temp_2_checked(&mut self, value: f32) -> Result<(), ()>
Temp of onboard therm 2
Units: C
Bits: 24..40
Sourcepub const fn therm_temp_3(&self) -> f32
pub const fn therm_temp_3(&self) -> f32
Temp of onboard therm 3
Units: C
Bits: 40..56
Sourcepub const fn with_therm_temp_3_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_therm_temp_3_checked(self, value: f32) -> Result<Self, ()>
Temp of onboard therm 3
Units: C
Bits: 40..56
Sourcepub const fn with_therm_temp_3(self, value: f32) -> Self
pub const fn with_therm_temp_3(self, value: f32) -> Self
Temp of onboard therm 3
Units: C
Bits: 40..56
Sourcepub const fn set_therm_temp_3(&mut self, value: f32)
pub const fn set_therm_temp_3(&mut self, value: f32)
Temp of onboard therm 3
Units: C
Bits: 40..56
Source§impl OnboardThermTemperatures
impl OnboardThermTemperatures
Sourcepub fn try_with_therm_temp_1(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_therm_temp_1(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_therm_temp_1 but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_therm_temp_1(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_therm_temp_1(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_therm_temp_1 but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_therm_temp_2(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_therm_temp_2(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_therm_temp_2 but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_therm_temp_2(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_therm_temp_2(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_therm_temp_2 but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_therm_temp_3(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_therm_temp_3(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_therm_temp_3 but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_therm_temp_3(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_therm_temp_3(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_therm_temp_3 but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for OnboardThermTemperatures
impl Clone for OnboardThermTemperatures
Source§fn clone(&self) -> OnboardThermTemperatures
fn clone(&self) -> OnboardThermTemperatures
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more