Type Alias rp2040_pac::rosc::phase::W

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

Register PHASE writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn shift(&mut self) -> SHIFT_W<'_, PHASE_SPEC>

Bits 0:1 - phase shift the phase-shifted output by SHIFT input clocks
this can be changed on-the-fly
must be set to 0 before setting div=1

source

pub fn flip(&mut self) -> FLIP_W<'_, PHASE_SPEC>

Bit 2 - invert the phase-shifted output
this is ignored when div=1

source

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

Bit 3 - enable the phase-shifted output
this can be changed on-the-fly

source

pub fn passwd(&mut self) -> PASSWD_W<'_, PHASE_SPEC>

Bits 4:11 - set to 0xaa
any other value enables the output with shift=0

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