Type Alias W

Source
pub type W = W<TRIGGER_SPEC>;
Expand description

Register TRIGGER writer

Aliased Type§

pub 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.