Struct rp_pac::powman::regs::ExtTimeRef
source · #[repr(transparent)]pub struct ExtTimeRef(pub u32);
Expand description
Select a GPIO to use as a time reference, the source can be used to drive the low power clock at 32kHz, or to provide a 1ms tick to the timer, or provide a 1Hz tick to the timer. The tick selection is controlled by the POWMAN_TIMER register.
Tuple Fields§
§0: u32
Implementations§
source§impl ExtTimeRef
impl ExtTimeRef
sourcepub const fn source_sel(&self) -> u8
pub const fn source_sel(&self) -> u8
0 -> gpio12 1 -> gpio20 2 -> gpio14 3 -> gpio22
sourcepub fn set_source_sel(&mut self, val: u8)
pub fn set_source_sel(&mut self, val: u8)
0 -> gpio12 1 -> gpio20 2 -> gpio14 3 -> gpio22
sourcepub const fn drive_lpck(&self) -> bool
pub const fn drive_lpck(&self) -> bool
Use the selected GPIO to drive the 32kHz low power clock, in place of LPOSC. This field must only be written when POWMAN_TIMER_RUN=0
sourcepub fn set_drive_lpck(&mut self, val: bool)
pub fn set_drive_lpck(&mut self, val: bool)
Use the selected GPIO to drive the 32kHz low power clock, in place of LPOSC. This field must only be written when POWMAN_TIMER_RUN=0
Trait Implementations§
source§impl Clone for ExtTimeRef
impl Clone for ExtTimeRef
source§fn clone(&self) -> ExtTimeRef
fn clone(&self) -> ExtTimeRef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ExtTimeRef
impl Default for ExtTimeRef
source§fn default() -> ExtTimeRef
fn default() -> ExtTimeRef
Returns the “default value” for a type. Read more
source§impl PartialEq for ExtTimeRef
impl PartialEq for ExtTimeRef
impl Copy for ExtTimeRef
impl Eq for ExtTimeRef
impl StructuralPartialEq for ExtTimeRef
Auto Trait Implementations§
impl Freeze for ExtTimeRef
impl RefUnwindSafe for ExtTimeRef
impl Send for ExtTimeRef
impl Sync for ExtTimeRef
impl Unpin for ExtTimeRef
impl UnwindSafe for ExtTimeRef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)