Type Alias W

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

Register period writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn interrupt_cycles(&mut self) -> INTERRUPT_CYCLES_W<'_, PERIOD_SPEC>

Bits 0:15 - If internal counter reaches this cycle count, it interrupts

Source

pub fn repeat_cycles(&mut self) -> REPEAT_CYCLES_W<'_, PERIOD_SPEC>

Bits 16:31 - How many clock cycles a Pulse-Width Modulation cycle includes

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