rp2040_pac::dma::timer2

Type Alias W

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

Register TIMER2 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn y(&mut self) -> Y_W<'_, TIMER2_SPEC>

Bits 0:15 - Pacing Timer Divisor. Specifies the Y value for the (X/Y) fractional timer.

Source

pub fn x(&mut self) -> X_W<'_, TIMER2_SPEC>

Bits 16:31 - Pacing Timer Dividend. Specifies the X value for the (X/Y) fractional timer.

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