#[repr(transparent)]pub struct Tempsense0(pub u32);Expand description
Tempsensor Control Register 0
Tuple Fields§
§0: u32Implementations§
Source§impl Tempsense0
impl Tempsense0
Sourcepub const fn power_down(&self) -> Tempsense0PowerDown
pub const fn power_down(&self) -> Tempsense0PowerDown
This bit powers down the temperature sensor.
Sourcepub const fn set_power_down(&mut self, val: Tempsense0PowerDown)
pub const fn set_power_down(&mut self, val: Tempsense0PowerDown)
This bit powers down the temperature sensor.
Sourcepub const fn measure_temp(&self) -> Tempsense0MeasureTemp
pub const fn measure_temp(&self) -> Tempsense0MeasureTemp
Starts the measurement process
Sourcepub const fn set_measure_temp(&mut self, val: Tempsense0MeasureTemp)
pub const fn set_measure_temp(&mut self, val: Tempsense0MeasureTemp)
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 Tempsense0
impl Clone for Tempsense0
Source§fn clone(&self) -> Tempsense0
fn clone(&self) -> Tempsense0
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 Tempsense0
impl Debug for Tempsense0
Source§impl Default for Tempsense0
impl Default for Tempsense0
Source§fn default() -> Tempsense0
fn default() -> Tempsense0
Returns the “default value” for a type. Read more
Source§impl PartialEq for Tempsense0
impl PartialEq for Tempsense0
impl Copy for Tempsense0
impl Eq for Tempsense0
impl StructuralPartialEq for Tempsense0
Auto Trait Implementations§
impl Freeze for Tempsense0
impl RefUnwindSafe for Tempsense0
impl Send for Tempsense0
impl Sync for Tempsense0
impl Unpin for Tempsense0
impl UnwindSafe for Tempsense0
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