rp2040_pac::rosc::div

Type Alias 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