Struct rp2040_pac2::rosc::regs::Phase[][src]

#[repr(transparent)]pub struct Phase(pub u32);

Controls the phase shifted output

Implementations

impl Phase[src]

pub const fn passwd(&self) -> u8[src]

set to 0xaa0 any other value enables the output with shift=0

pub fn set_passwd(&mut self, val: u8)[src]

set to 0xaa0 any other value enables the output with shift=0

pub const fn enable(&self) -> bool[src]

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

pub fn set_enable(&mut self, val: bool)[src]

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

pub const fn flip(&self) -> bool[src]

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

pub fn set_flip(&mut self, val: bool)[src]

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

pub const fn shift(&self) -> u8[src]

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

pub fn set_shift(&mut self, val: u8)[src]

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

Trait Implementations

impl Clone for Phase[src]

impl Copy for Phase[src]

impl Default for Phase[src]

Auto Trait Implementations

impl Send for Phase

impl Sync for Phase

impl Unpin for Phase

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.