Type Alias esp32h2::trace::trigger::W

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

Register TRIGGER writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn on(&mut self) -> ON_W<'_, TRIGGER_SPEC>

Bit 0 - 0] set 1 start trace.

source

pub fn off(&mut self) -> OFF_W<'_, TRIGGER_SPEC>

Bit 1 - set 1 stop trace.

source

pub fn mem_loop(&mut self) -> MEM_LOOP_W<'_, TRIGGER_SPEC>

Bit 2 - if this reg is 1, trace will loop wrtie trace_mem. If is 0, when mem_current_addr at mem_end_addr, it will stop at the mem_end_addr

source

pub fn restart_ena(&mut self) -> RESTART_ENA_W<'_, TRIGGER_SPEC>

Bit 3 - enable encoder auto-restart, when lost package, the encoder will end, if enable auto-restart, when fifo empty, encoder will restart and send a sync package.

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