pub struct Cdw11FeatureTemperatureThreshold(/* private fields */);Expand description
Temperature Threshold feature (04h). See NVMe Base 2.3 Figure 407.
Implementations§
Source§impl Cdw11FeatureTemperatureThreshold
impl Cdw11FeatureTemperatureThreshold
Sourcepub const fn with_tmpth_checked(self, value: u16) -> Result<Self, ()>
pub const fn with_tmpth_checked(self, value: u16) -> Result<Self, ()>
Temperature Threshold, in Kelvin
Bits: 0..16
Sourcepub const fn with_tmpth(self, value: u16) -> Self
pub const fn with_tmpth(self, value: u16) -> Self
Temperature Threshold, in Kelvin
Bits: 0..16
Sourcepub const fn set_tmpth_checked(&mut self, value: u16) -> Result<(), ()>
pub const fn set_tmpth_checked(&mut self, value: u16) -> Result<(), ()>
Temperature Threshold, in Kelvin
Bits: 0..16
Sourcepub const fn tmpsel(&self) -> u8
pub const fn tmpsel(&self) -> u8
Threshold Temperature Select (0h = composite, 1h-8h = sensors,
Fh = all sensors on a Set)
Bits: 16..20
Sourcepub const fn with_tmpsel_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_tmpsel_checked(self, value: u8) -> Result<Self, ()>
Threshold Temperature Select (0h = composite, 1h-8h = sensors,
Fh = all sensors on a Set)
Bits: 16..20
Sourcepub const fn with_tmpsel(self, value: u8) -> Self
pub const fn with_tmpsel(self, value: u8) -> Self
Threshold Temperature Select (0h = composite, 1h-8h = sensors,
Fh = all sensors on a Set)
Bits: 16..20
Sourcepub const fn set_tmpsel(&mut self, value: u8)
pub const fn set_tmpsel(&mut self, value: u8)
Threshold Temperature Select (0h = composite, 1h-8h = sensors,
Fh = all sensors on a Set)
Bits: 16..20
Sourcepub const fn set_tmpsel_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_tmpsel_checked(&mut self, value: u8) -> Result<(), ()>
Threshold Temperature Select (0h = composite, 1h-8h = sensors,
Fh = all sensors on a Set)
Bits: 16..20
Sourcepub const fn thsel(&self) -> u8
pub const fn thsel(&self) -> u8
Threshold Type Select (00b = over-temperature, 01b = under-temperature)
Bits: 20..22
Sourcepub const fn with_thsel_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_thsel_checked(self, value: u8) -> Result<Self, ()>
Threshold Type Select (00b = over-temperature, 01b = under-temperature)
Bits: 20..22
Sourcepub const fn with_thsel(self, value: u8) -> Self
pub const fn with_thsel(self, value: u8) -> Self
Threshold Type Select (00b = over-temperature, 01b = under-temperature)
Bits: 20..22
Sourcepub const fn set_thsel(&mut self, value: u8)
pub const fn set_thsel(&mut self, value: u8)
Threshold Type Select (00b = over-temperature, 01b = under-temperature)
Bits: 20..22
Sourcepub const fn set_thsel_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_thsel_checked(&mut self, value: u8) -> Result<(), ()>
Threshold Type Select (00b = over-temperature, 01b = under-temperature)
Bits: 20..22
Sourcepub const fn with_tmpthh_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_tmpthh_checked(self, value: u8) -> Result<Self, ()>
Temperature Threshold Hysteresis
Bits: 22..25
Sourcepub const fn with_tmpthh(self, value: u8) -> Self
pub const fn with_tmpthh(self, value: u8) -> Self
Temperature Threshold Hysteresis
Bits: 22..25
Sourcepub const fn set_tmpthh(&mut self, value: u8)
pub const fn set_tmpthh(&mut self, value: u8)
Temperature Threshold Hysteresis
Bits: 22..25
Trait Implementations§
Source§impl Clone for Cdw11FeatureTemperatureThreshold
impl Clone for Cdw11FeatureTemperatureThreshold
Source§fn clone(&self) -> Cdw11FeatureTemperatureThreshold
fn clone(&self) -> Cdw11FeatureTemperatureThreshold
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more