pub struct Dwt { /* private fields */ }
Expand description

DWT (Data Watchpoint and Trace) unit

Implementations

Release the dwt and dcb control

Safety

All instances of Delay and StopWatch become invalid after this

Create a delay instance

Create a stopwatch instance

Arguments
  • times - Array which will be holding the timings in ticks (max laps == times.len()-1)

Measure cycles it takes to execute closure f.

Since DWT Cycle Counter is a 32-bit counter that wraps around to 0 on overflow, users should be aware that Dwt::measure cannot correctly measure running time of closures which take longer than u32::MAX cycles

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.