Type Alias esp32c6::pcr::pwm_conf::W

source ·
pub type W = W<PWM_CONF_SPEC>;
Expand description

Register PWM_CONF writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn pwm_clk_en(&mut self) -> PWM_CLK_EN_W<'_, PWM_CONF_SPEC>

Bit 0 - Set 1 to enable pwm clock

source

pub fn pwm_rst_en(&mut self) -> PWM_RST_EN_W<'_, PWM_CONF_SPEC>

Bit 1 - Set 0 to reset pwm module

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Safety

Passing incorrect value can cause undefined behaviour. See reference manual