Type Alias rp2040_pac::clocks::clk_sys_ctrl::W

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

Register CLK_SYS_CTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn src(&mut self) -> SRC_W<'_, CLK_SYS_CTRL_SPEC>

Bit 0 - Selects the clock source glitchlessly, can be changed on-the-fly

source

pub fn auxsrc(&mut self) -> AUXSRC_W<'_, CLK_SYS_CTRL_SPEC>

Bits 5:7 - Selects the auxiliary clock source, will glitch when switching

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