Type Alias rp2040_pac::pwm::intr::W

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

Register INTR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn ch0(&mut self) -> CH0_W<'_, INTR_SPEC>

Bit 0

source

pub fn ch1(&mut self) -> CH1_W<'_, INTR_SPEC>

Bit 1

source

pub fn ch2(&mut self) -> CH2_W<'_, INTR_SPEC>

Bit 2

source

pub fn ch3(&mut self) -> CH3_W<'_, INTR_SPEC>

Bit 3

source

pub fn ch4(&mut self) -> CH4_W<'_, INTR_SPEC>

Bit 4

source

pub fn ch5(&mut self) -> CH5_W<'_, INTR_SPEC>

Bit 5

source

pub fn ch6(&mut self) -> CH6_W<'_, INTR_SPEC>

Bit 6

source

pub fn ch7(&mut self) -> CH7_W<'_, INTR_SPEC>

Bit 7

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