Type Alias rp2040_pac::pio0::sm::sm_clkdiv::W

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

Register SM_CLKDIV writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn frac(&mut self) -> FRAC_W<'_, SM_CLKDIV_SPEC>

Bits 8:15 - Fractional part of clock divisor

source

pub fn int(&mut self) -> INT_W<'_, SM_CLKDIV_SPEC>

Bits 16:31 - Effective frequency is sysclk/(int + frac/256).
Value of 0 is interpreted as 65536. If INT is 0, FRAC must also be 0.

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