#[repr(transparent)]pub struct Tempsense0Set(pub u32);Expand description
Tempsensor Control Register 0
Tuple Fields§
§0: u32Implementations§
Source§impl Tempsense0Set
impl Tempsense0Set
Sourcepub const fn power_down(&self) -> Tempsense0SetPowerDown
pub const fn power_down(&self) -> Tempsense0SetPowerDown
This bit powers down the temperature sensor.
Sourcepub const fn set_power_down(&mut self, val: Tempsense0SetPowerDown)
pub const fn set_power_down(&mut self, val: Tempsense0SetPowerDown)
This bit powers down the temperature sensor.
Sourcepub const fn measure_temp(&self) -> Tempsense0SetMeasureTemp
pub const fn measure_temp(&self) -> Tempsense0SetMeasureTemp
Starts the measurement process
Sourcepub const fn set_measure_temp(&mut self, val: Tempsense0SetMeasureTemp)
pub const fn set_measure_temp(&mut self, val: Tempsense0SetMeasureTemp)
Starts the measurement process
Sourcepub const fn set_finished(&mut self, val: bool)
pub const fn set_finished(&mut self, val: bool)
Indicates that the latest temp is valid
Sourcepub const fn temp_cnt(&self) -> u16
pub const fn temp_cnt(&self) -> u16
This bit field contains the last measured temperature count.
Sourcepub const fn set_temp_cnt(&mut self, val: u16)
pub const fn set_temp_cnt(&mut self, val: u16)
This bit field contains the last measured temperature count.
Sourcepub const fn alarm_value(&self) -> u16
pub const fn alarm_value(&self) -> u16
This bit field contains the temperature count (raw sensor output) that will generate a high alarm when TEMP_CNT is smaller than this field
Sourcepub const fn set_alarm_value(&mut self, val: u16)
pub const fn set_alarm_value(&mut self, val: u16)
This bit field contains the temperature count (raw sensor output) that will generate a high alarm when TEMP_CNT is smaller than this field
Trait Implementations§
Source§impl Clone for Tempsense0Set
impl Clone for Tempsense0Set
Source§fn clone(&self) -> Tempsense0Set
fn clone(&self) -> Tempsense0Set
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Tempsense0Set
impl Debug for Tempsense0Set
Source§impl Default for Tempsense0Set
impl Default for Tempsense0Set
Source§fn default() -> Tempsense0Set
fn default() -> Tempsense0Set
Returns the “default value” for a type. Read more
Source§impl PartialEq for Tempsense0Set
impl PartialEq for Tempsense0Set
impl Copy for Tempsense0Set
impl Eq for Tempsense0Set
impl StructuralPartialEq for Tempsense0Set
Auto Trait Implementations§
impl Freeze for Tempsense0Set
impl RefUnwindSafe for Tempsense0Set
impl Send for Tempsense0Set
impl Sync for Tempsense0Set
impl Unpin for Tempsense0Set
impl UnwindSafe for Tempsense0Set
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