Type Alias rp2040_pac::pwm::ch::ctr::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