Type Alias W

Source
pub type W = W<CONF_SPEC>;
Expand description

Register CONF writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn duty_res(&mut self) -> DUTY_RES_W<'_, CONF_SPEC>

Bits 0:4 - This register is used to control the range of the counter in timer %s.

Source

pub fn clk_div(&mut self) -> CLK_DIV_W<'_, CONF_SPEC>

Bits 5:22 - This register is used to configure the divisor for the divider in timer %s. The least significant eight bits represent the fractional part.

Source

pub fn pause(&mut self) -> PAUSE_W<'_, CONF_SPEC>

Bit 23 - This bit is used to suspend the counter in timer %s.

Source

pub fn rst(&mut self) -> RST_W<'_, CONF_SPEC>

Bit 24 - This bit is used to reset timer %s. The counter will show 0 after reset.

Source

pub fn tick_sel(&mut self) -> TICK_SEL_W<'_, CONF_SPEC>

Bit 25 - This bit is used to select clock for timer %s. When this bit is set to 1 LEDC_APB_CLK_SEL[1:0] should be 1, otherwise the timer clock may be not accurate. 1’h0: SLOW_CLK 1’h1: REF_TICK

Source

pub fn para_up(&mut self) -> PARA_UP_W<'_, CONF_SPEC>

Bit 26 - Set this bit to update LEDC_CLK_DIV_TIMER%s and LEDC_TIMER%s_DUTY_RES.