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

Data Watchpoint and Trace unit

Implementations

Number of comparators implemented

A value of zero indicates no comparator support.

Returns true if the the implementation supports sampling and exception tracing

Returns true if the implementation includes external match signals

Returns true if the implementation supports a cycle counter

Returns true if the implementation the profiling counters

Enables the cycle counter

The global trace enable (DCB::enable_trace) should be set before enabling the cycle counter, the processor may ignore writes to the cycle counter enable if the global trace is disabled (implementation defined behaviour).

Disables the cycle counter

Returns true if the cycle counter is enabled

👎 Deprecated since 0.7.4:

Use cycle_count which follows the C-GETTER convention

Returns the current clock cycle count

Returns the current clock cycle count

Set the cycle count

Removes the software lock on the DWT

Some devices, like the STM32F7, software lock the DWT after a power cycle.

Get the CPI count

Counts additional cycles required to execute multi-cycle instructions, except those recorded by lsu_count, and counts any instruction fetch stalls.

Set the CPI count

Get the total cycles spent in exception processing

Set the exception count

Get the total number of cycles that the processor is sleeping

ARM recommends that this counter counts all cycles when the processor is sleeping, regardless of whether a WFI or WFE instruction, or the sleep-on-exit functionality, caused the entry to sleep mode. However, all sleep features are implementation defined and therefore when this counter counts is implementation defined.

Set the sleep count

Get the additional cycles required to execute all load or store instructions

Set the lsu count

Get the folded instruction count

Increments on each instruction that takes 0 cycles.

Set the folded instruction count

Pointer to the register block

👎 Deprecated since 0.7.5:

Use the associated constant PTR instead

Returns a pointer to the register block

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

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.

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.