Type Alias esp32c6::systimer::target1_conf::W

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

Register TARGET1_CONF writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn target1_period(&mut self) -> TARGET1_PERIOD_W<'_, TARGET1_CONF_SPEC, 0>

Bits 0:25 - target1 period

source

pub fn target1_period_mode( &mut self ) -> TARGET1_PERIOD_MODE_W<'_, TARGET1_CONF_SPEC, 30>

Bit 30 - Set target1 to period mode

source

pub fn target1_timer_unit_sel( &mut self ) -> TARGET1_TIMER_UNIT_SEL_W<'_, TARGET1_CONF_SPEC, 31>

Bit 31 - select which unit to compare

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