Struct esp32c2_hal::pac::ledc::ch_conf0::R
pub struct R(_);
Expand description
Register CH%s_CONF0
reader
Implementations§
§impl R
impl R
pub fn timer_sel(&self) -> FieldReaderRaw<u8, u8>
pub fn timer_sel(&self) -> FieldReaderRaw<u8, u8>
Bits 0:1 - This field is used to select one of timers for channel %s. 0: select timer0; 1: select timer1; 2: select timer2; 3: select timer3
pub fn sig_out_en(&self) -> BitReaderRaw<bool>
pub fn sig_out_en(&self) -> BitReaderRaw<bool>
Bit 2 - Set this bit to enable signal output on channel %s.
pub fn idle_lv(&self) -> BitReaderRaw<bool>
pub fn idle_lv(&self) -> BitReaderRaw<bool>
Bit 3 - This bit is used to control the output value when channel %s is inactive (when LEDC_SIG_OUT_EN_CH%s is 0).
pub fn ovf_num(&self) -> FieldReaderRaw<u16, u16>
pub fn ovf_num(&self) -> FieldReaderRaw<u16, u16>
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.
pub fn ovf_cnt_en(&self) -> BitReaderRaw<bool>
pub fn ovf_cnt_en(&self) -> BitReaderRaw<bool>
Bit 15 - This bit is used to enable the ovf_cnt of channel %s.
Methods from Deref<Target = R<CH_CONF0_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations§
§impl From<R<CH_CONF0_SPEC>> for R
impl From<R<CH_CONF0_SPEC>> for R
§fn from(reader: R<CH_CONF0_SPEC>) -> R
fn from(reader: R<CH_CONF0_SPEC>) -> R
Converts to this type from the input type.