Type Alias rp2040_pac::dma::timer0::W

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

Register TIMER0 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn y(&mut self) -> Y_W<'_, TIMER0_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<'_, TIMER0_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