Struct rp2040_pac2::rosc::regs::Phase [−][src]
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]
fn clone(&self) -> Phase
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Phase
[src]
impl Default for Phase
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,