Type Alias R

Source
pub type R = R<CONF0_SPEC>;
Expand description

Register CONF0 reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn timer_sel(&self) -> TIMER_SEL_R

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

Source

pub fn sig_out_en(&self) -> SIG_OUT_EN_R

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

Source

pub fn idle_lv(&self) -> IDLE_LV_R

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).

Source

pub fn ovf_num(&self) -> OVF_NUM_R

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.

Source

pub fn ovf_cnt_en(&self) -> OVF_CNT_EN_R

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