Type Alias rp2040_pac::rosc::div::W

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

Register DIV writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn div(&mut self) -> DIV_W<'_, DIV_SPEC>

Bits 0:11 - set to 0xaa0 + div where
div = 0 divides by 32
div = 1-31 divides by div
any other value sets div=31
this register resets to div=16

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