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