Struct esp32s3::pwm0::chopper2_cfg::R

source ·
pub struct R(_);
Expand description

Register CHOPPER2_CFG reader

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

Methods from Deref<Target = R<CHOPPER2_CFG_SPEC>>§

Reads raw bits from register.

Trait Implementations§

The resulting type after dereferencing.
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.