pub struct THS { /* private fields */ }Expand description
Thermal Sensor Controller
Implementations§
Source§impl THS
impl THS
Sourcepub const PTR: *const RegisterBlock = {0x2009400 as *const ths::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x2009400 as *const ths::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn ths_data_intc(&self) -> &THS_DATA_INTC
pub fn ths_data_intc(&self) -> &THS_DATA_INTC
0x10 - THS Data Interrupt Control Register
Sourcepub fn ths_shut_intc(&self) -> &THS_SHUT_INTC
pub fn ths_shut_intc(&self) -> &THS_SHUT_INTC
0x14 - THS Shut Interrupt Control Register
Sourcepub fn ths_alarm_intc(&self) -> &THS_ALARM_INTC
pub fn ths_alarm_intc(&self) -> &THS_ALARM_INTC
0x18 - THS Alarm Interrupt Control Register
Sourcepub fn ths_data_ints(&self) -> &THS_DATA_INTS
pub fn ths_data_ints(&self) -> &THS_DATA_INTS
0x20 - THS Data Interrupt Status Register
Sourcepub fn ths_shut_ints(&self) -> &THS_SHUT_INTS
pub fn ths_shut_ints(&self) -> &THS_SHUT_INTS
0x24 - THS Shut Interrupt Status Register
Sourcepub fn ths_alarmo_ints(&self) -> &THS_ALARMO_INTS
pub fn ths_alarmo_ints(&self) -> &THS_ALARMO_INTS
0x28 - THS_ALARM0_INTS
Sourcepub fn ths_alarm_ints(&self) -> &THS_ALARM_INTS
pub fn ths_alarm_ints(&self) -> &THS_ALARM_INTS
0x2c - THS Alarm Interrupt Status Register
Sourcepub fn ths_filter(&self) -> &THS_FILTER
pub fn ths_filter(&self) -> &THS_FILTER
0x30 - THS Median Filter Control Register
Sourcepub fn ths_alarm_ctrl(&self) -> &THS_ALARM_CTRL
pub fn ths_alarm_ctrl(&self) -> &THS_ALARM_CTRL
0x40 - THS Alarm Threshold Control Register
Sourcepub fn ths_shutdown_ctrl(&self) -> &THS_SHUTDOWN_CTRL
pub fn ths_shutdown_ctrl(&self) -> &THS_SHUTDOWN_CTRL
0x80 - THS Shutdown Threshold Control Register