Struct esp32s2::ledc::ch_conf0::R

source ·
pub struct R(_);
Expand description

Register CH%s_CONF0 reader

Implementations§

Bits 0:1 - This field is used to select one of timers for channel %s. 0: select timer 0. 1: select timer 1. 2: select timer 2. 3: select timer 3.

Bit 2 - Set this bit to enable signal output on channel %s.

Bit 3 - This bit is used to control the output value when channel %s is inactive.

Bits 5:14 - This register is used to configure the maximum times of overflow minus 1. The LEDC_OVF_CNT_CH%s_INT interrupt will be triggered when channel %s overflows for (LEDC_OVF_NUM_CH%s + 1) times.

Bit 15 - This bit is used to enable the ovf_cnt of channel %s.

Bit 17 - This is the status bit of LEDC_OVF_CNT_RESET_CH%s.

Methods from Deref<Target = R<CH_CONF0_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.