Struct esp32c2_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