rp2040_pac::pwm::intf

Type Alias W

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

Register INTF writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

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

Bit 0

Source

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

Bit 1

Source

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

Bit 2

Source

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

Bit 3

Source

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

Bit 4

Source

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

Bit 5

Source

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

Bit 6

Source

pub fn ch7(&mut self) -> CH7_W<'_, INTF_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