Struct esp32s3::pwm0::chopper2_cfg::W

source ·
pub struct W(_);
Expand description

Register CHOPPER2_CFG writer

Implementations§

Bit 0 - When set, carrier0 function is enabled. When cleared, carrier0 is bypassed

Bits 1:4 - PWM carrier0 clock (PC_clk) prescale value. Period of PC_clk = period of PWM_clk * (PWM_CARRIER0_PRESCALE + 1)

Bits 5:7 - carrier duty selection. Duty = PWM_CARRIER0_DUTY / 8

Bits 8:11 - width of the fist pulse in number of periods of the carrier

Bit 12 - when set, invert the output of PWM2A and PWM2B for this submodule

Bit 13 - when set, invert the input of PWM2A and PWM2B for this submodule

Writes raw bits to the register.

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