Type Alias rp2040_pac::rosc::phase::R

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

Register PHASE reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn shift(&self) -> SHIFT_R

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(&self) -> FLIP_R

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

source

pub fn enable(&self) -> ENABLE_R

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

source

pub fn passwd(&self) -> PASSWD_R

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