Type Alias esp32h2::systimer::target2_conf::W

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

Register TARGET2_CONF writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn target2_period(&mut self) -> TARGET2_PERIOD_W<'_, TARGET2_CONF_SPEC>

Bits 0:25 - target2 period

source

pub fn target2_period_mode( &mut self ) -> TARGET2_PERIOD_MODE_W<'_, TARGET2_CONF_SPEC>

Bit 30 - Set target2 to period mode

source

pub fn target2_timer_unit_sel( &mut self ) -> TARGET2_TIMER_UNIT_SEL_W<'_, TARGET2_CONF_SPEC>

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