Type Alias esp32s3::mcpwm0::timer1_sync::W

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

Register TIMER1_SYNC writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn timer1_synci_en(&mut self) -> TIMER1_SYNCI_EN_W<'_, TIMER1_SYNC_SPEC>

Bit 0 - When set, timer reloading with phase on sync input event is enabled.

source

pub fn sw(&mut self) -> SW_W<'_, TIMER1_SYNC_SPEC>

Bit 1 - Toggling this bit will trigger a software sync.

source

pub fn timer1_synco_sel(&mut self) -> TIMER1_SYNCO_SEL_W<'_, TIMER1_SYNC_SPEC>

Bits 2:3 - PWM timer1 sync_out selection, 0: synci, 1: TEZ, 2: TEP, otherwise:sync out is software sync

source

pub fn timer1_phase(&mut self) -> TIMER1_PHASE_W<'_, TIMER1_SYNC_SPEC>

Bits 4:19 - phase for timer reload on sync event

source

pub fn timer1_phase_direction( &mut self ) -> TIMER1_PHASE_DIRECTION_W<'_, TIMER1_SYNC_SPEC>

Bit 20 - Configure the PWM timer1’s direction when timer1 mode is up-down mode. 0: increase; 1: decrease.

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