Type Alias esp32c6::mem_monitor::log_setting::W

source ·
pub type W = W<LOG_SETTING_SPEC>;
Expand description

Register LOG_SETTING writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn log_ena(&mut self) -> LOG_ENA_W<'_, LOG_SETTING_SPEC>

Bits 0:2 - enable bus log. BIT0: hp-cpu, BIT1: lp-cpu, BIT2: DMA.

source

pub fn log_mode(&mut self) -> LOG_MODE_W<'_, LOG_SETTING_SPEC>

Bits 3:6 - This field must be onehot. 4’b0001 : WR monitor, 4’b0010: WORD monitor, 4’b0100: HALFWORD monitor, 4’b1000: BYTE monitor.

source

pub fn log_mem_loop_enable( &mut self ) -> LOG_MEM_LOOP_ENABLE_W<'_, LOG_SETTING_SPEC>

Bit 7 - Set 1 enable mem_loop, it will loop write at the range of MEM_START and MEM_END

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Safety

Passing incorrect value can cause undefined behaviour. See reference manual