Struct rk3399_pac::Tsadc
source · pub struct Tsadc { /* private fields */ }
Expand description
Temperature Sensor Analog-to-Digital Converter (TSADC) Registers
Implementations§
source§impl Tsadc
impl Tsadc
sourcepub const PTR: *const RegisterBlock = {0xff260000 as *const tsadc::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xff260000 as *const tsadc::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 comp0_shut(&self) -> &Comp0Shut
pub fn comp0_shut(&self) -> &Comp0Shut
0x40 - TSADC high temperature level for source 0
sourcepub fn comp1_shut(&self) -> &Comp1Shut
pub fn comp1_shut(&self) -> &Comp1Shut
0x44 - TSADC high temperature level for source 1
sourcepub fn hight_int_debounce(&self) -> &HightIntDebounce
pub fn hight_int_debounce(&self) -> &HightIntDebounce
0x60 - high temperature debounce
sourcepub fn hight_tshut_debounce(&self) -> &HightTshutDebounce
pub fn hight_tshut_debounce(&self) -> &HightTshutDebounce
0x64 - high temperature debounce
sourcepub fn auto_period(&self) -> &AutoPeriod
pub fn auto_period(&self) -> &AutoPeriod
0x68 - TSADC auto access period
sourcepub fn auto_period_ht(&self) -> &AutoPeriodHt
pub fn auto_period_ht(&self) -> &AutoPeriodHt
0x6c - TSADC auto access period when temperature is high
sourcepub fn comp0_low_int(&self) -> &Comp0LowInt
pub fn comp0_low_int(&self) -> &Comp0LowInt
0x80 - TSADC low temperature level for source 0
sourcepub fn comp1_low_int(&self) -> &Comp1LowInt
pub fn comp1_low_int(&self) -> &Comp1LowInt
0x84 - TSADC low temperature level for source 1