Type Alias rp2040_pac::xosc::startup::W

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

Register STARTUP writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn delay(&mut self) -> DELAY_W<'_, STARTUP_SPEC>

Bits 0:13 - in multiples of 256*xtal_period. The reset value of 0xc4 corresponds to approx 50 000 cycles.

source

pub fn x4(&mut self) -> X4_W<'_, STARTUP_SPEC>

Bit 20 - Multiplies the startup_delay by 4. This is of little value to the user given that the delay can be programmed directly.

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