Type Alias rp2040_pac::clocks::clk_peri_ctrl::W

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

Register CLK_PERI_CTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

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

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

source

pub fn kill(&mut self) -> KILL_W<'_, CLK_PERI_CTRL_SPEC>

Bit 10 - Asynchronously kills the clock generator

source

pub fn enable(&mut self) -> ENABLE_W<'_, CLK_PERI_CTRL_SPEC>

Bit 11 - Starts and stops the clock generator cleanly

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