rp2040_pac::pwm::ch::ctr

Type Alias W

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

Register CTR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn ctr(&mut self) -> CTR_W<'_, CTR_SPEC>

Bits 0:15

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