Struct esp32c2_hal::pac::ledc::ch_conf1::W

pub struct W(_);
Expand description

Register CH%s_CONF1 writer

Implementations

Bits 0:9 - This register is used to configure the changing step scale of duty on channel %s.

Bits 10:19 - The duty will change every LEDC_DUTY_CYCLE_CH%s on channel %s.

Bits 20:29 - This register is used to control the number of times the duty cycle will be changed.

Bit 30 - This register is used to increase or decrease the duty of output signal on channel %s. 1: Increase; 0: Decrease.

Bit 31 - Other configured fields in LEDC_CH%s_CONF1_REG will start to take effect when this bit is set to 1.

Writes raw bits to the register.

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