Struct esp32s3::pwm0::cap_ch2_cfg::W

source ·
pub struct W(_);
Expand description

Register CAP_CH2_CFG writer

Implementations

Bit 0 - When set, capture on channel 2 is enabled

Bits 1:2 - Edge of capture on channel 2 after prescaling. When bit0 is set to 1: enable capture on the negative edge, When bit1 is set to 1: enable capture on the positive edge.

Bits 3:10 - Value of prescaling on possitive edge of CAP2. Prescale value = PWM_CAP2_PRESCALE + 1

Bit 11 - when set, CAP2 form GPIO matrix is inverted before prescale

Bit 12 - Write 1 will trigger a software forced capture on channel 2

Writes raw bits to the register.

Methods from Deref<Target = W<CAP_CH2_CFG_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.