Struct rp2040_pac2::dma::regs::Timer[][src]

#[repr(transparent)]pub struct Timer(pub u32);

Pacing (X/Y) Fractional Timer The pacing timer produces TREQ assertions at a rate set by ((X/Y) * sys_clk). This equation is evaluated every sys_clk cycles and therefore can only generate TREQs at a rate of 1 per sys_clk (i.e. permanent TREQ) or less.

Implementations

impl Timer[src]

pub const fn x(&self) -> u16[src]

Pacing Timer Dividend. Specifies the X value for the (X/Y) fractional timer.

pub fn set_x(&mut self, val: u16)[src]

Pacing Timer Dividend. Specifies the X value for the (X/Y) fractional timer.

pub const fn y(&self) -> u16[src]

Pacing Timer Divisor. Specifies the Y value for the (X/Y) fractional timer.

pub fn set_y(&mut self, val: u16)[src]

Pacing Timer Divisor. Specifies the Y value for the (X/Y) fractional timer.

Trait Implementations

impl Clone for Timer[src]

impl Copy for Timer[src]

impl Default for Timer[src]

Auto Trait Implementations

impl Send for Timer

impl Sync for Timer

impl Unpin for Timer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.