Struct esp32c3_hal::esp_riscv_rt::riscv::delay::McycleDelay
pub struct McycleDelay { /* private fields */ }
Expand description
Machine mode cycle counter (mcycle
) as a delay provider
Implementations§
§impl McycleDelay
impl McycleDelay
pub fn new(ticks_second: u32) -> McycleDelay
pub fn new(ticks_second: u32) -> McycleDelay
Constructs the delay provider.
ticks_second
should be the clock speed of the core, in Hertz
Trait Implementations§
§impl Clone for McycleDelay
impl Clone for McycleDelay
§fn clone(&self) -> McycleDelay
fn clone(&self) -> McycleDelay
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 more§impl DelayMs<i32> for McycleDelay
impl DelayMs<i32> for McycleDelay
§impl DelayMs<u16> for McycleDelay
impl DelayMs<u16> for McycleDelay
§impl DelayMs<u32> for McycleDelay
impl DelayMs<u32> for McycleDelay
§impl DelayMs<u8> for McycleDelay
impl DelayMs<u8> for McycleDelay
§impl DelayUs<i32> for McycleDelay
impl DelayUs<i32> for McycleDelay
§impl DelayUs<u16> for McycleDelay
impl DelayUs<u16> for McycleDelay
§impl DelayUs<u32> for McycleDelay
impl DelayUs<u32> for McycleDelay
§impl DelayUs<u64> for McycleDelay
impl DelayUs<u64> for McycleDelay
§impl DelayUs<u8> for McycleDelay
impl DelayUs<u8> for McycleDelay
impl Copy for McycleDelay
Auto Trait Implementations§
impl RefUnwindSafe for McycleDelay
impl Send for McycleDelay
impl Sync for McycleDelay
impl Unpin for McycleDelay
impl UnwindSafe for McycleDelay
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