Struct esp32s3::pwm0::timer2_sync::W

source ·
pub struct W(_);
Expand description

Register TIMER2_SYNC writer

Implementations

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

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

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

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

Writes raw bits to the register.

Methods from Deref<Target = W<TIMER2_SYNC_SPEC>>

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.