Type Alias d1_pac::pwm::per::PWM_EN_W

source ·
pub type PWM_EN_W<'a, const O: u8> = BitWriter<'a, u32, PER_SPEC, PWM_EN_A, O>;
Expand description

Field pwm_en[0-7] writer - When PWM is enabled, the 16-bit up-counter starts working and PWM channel is permitted to output PWM waveform.

Aliased Type§

struct PWM_EN_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, const O: u8> PWM_EN_W<'a, O>

source

pub fn disable(self) -> &'a mut W

PWM disable

source

pub fn enable(self) -> &'a mut W

PWM enable