Struct rp_pac::ticks::regs::RiscvCycles
source · #[repr(transparent)]pub struct RiscvCycles(pub u32);
Tuple Fields§
§0: u32
Implementations§
source§impl RiscvCycles
impl RiscvCycles
sourcepub const fn riscv_cycles(&self) -> u16
pub const fn riscv_cycles(&self) -> u16
Total number of clk_tick cycles before the next tick.
sourcepub fn set_riscv_cycles(&mut self, val: u16)
pub fn set_riscv_cycles(&mut self, val: u16)
Total number of clk_tick cycles before the next tick.
Trait Implementations§
source§impl Clone for RiscvCycles
impl Clone for RiscvCycles
source§fn clone(&self) -> RiscvCycles
fn clone(&self) -> RiscvCycles
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 RiscvCycles
impl Default for RiscvCycles
source§fn default() -> RiscvCycles
fn default() -> RiscvCycles
Returns the “default value” for a type. Read more
source§impl PartialEq for RiscvCycles
impl PartialEq for RiscvCycles
impl Copy for RiscvCycles
impl Eq for RiscvCycles
impl StructuralPartialEq for RiscvCycles
Auto Trait Implementations§
impl Freeze for RiscvCycles
impl RefUnwindSafe for RiscvCycles
impl Send for RiscvCycles
impl Sync for RiscvCycles
impl Unpin for RiscvCycles
impl UnwindSafe for RiscvCycles
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
)