Type Alias rp2040_pac::adc::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 frac(&mut self) -> FRAC_W<'_, DIV_SPEC>

Bits 0:7 - Fractional part of clock divisor. First-order delta-sigma.

source

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

Bits 8:23 - Integer part of clock divisor.

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