Struct esp32h2::MEM_MONITOR
source · pub struct MEM_MONITOR { /* private fields */ }
Expand description
MEM_MONITOR Peripheral
Implementations§
source§impl MEM_MONITOR
impl MEM_MONITOR
sourcepub const PTR: *const RegisterBlock = {0x60092000 as *const mem_monitor::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x60092000 as *const mem_monitor::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 log_setting(&self) -> &LOG_SETTING
pub fn log_setting(&self) -> &LOG_SETTING
0x00 - log config regsiter
sourcepub fn log_check_data(&self) -> &LOG_CHECK_DATA
pub fn log_check_data(&self) -> &LOG_CHECK_DATA
0x04 - check data regsiter
sourcepub fn log_data_mask(&self) -> &LOG_DATA_MASK
pub fn log_data_mask(&self) -> &LOG_DATA_MASK
0x08 - check data mask register
sourcepub fn log_mem_start(&self) -> &LOG_MEM_START
pub fn log_mem_start(&self) -> &LOG_MEM_START
0x14 - log message store range register
sourcepub fn log_mem_end(&self) -> &LOG_MEM_END
pub fn log_mem_end(&self) -> &LOG_MEM_END
0x18 - log message store range register
sourcepub fn log_mem_current_addr(&self) -> &LOG_MEM_CURRENT_ADDR
pub fn log_mem_current_addr(&self) -> &LOG_MEM_CURRENT_ADDR
0x1c - current writing address.
sourcepub fn log_mem_addr_update(&self) -> &LOG_MEM_ADDR_UPDATE
pub fn log_mem_addr_update(&self) -> &LOG_MEM_ADDR_UPDATE
0x20 - writing address update
sourcepub fn log_mem_full_flag(&self) -> &LOG_MEM_FULL_FLAG
pub fn log_mem_full_flag(&self) -> &LOG_MEM_FULL_FLAG
0x24 - full flag status register
sourcepub fn clock_gate(&self) -> &CLOCK_GATE
pub fn clock_gate(&self) -> &CLOCK_GATE
0x28 - clock gate force on register