Struct lpc55_pac::DWT [−][src]
pub struct DWT { /* fields omitted */ }
Data Watchpoint and Trace unit
Implementations
impl DWT
[src]
impl DWT
[src]pub fn enable_cycle_counter(&mut self)
[src]
Enables the cycle counter
pub fn get_cycle_count() -> u32
[src]
Returns the current clock cycle count
pub fn unlock()
[src]
Removes the software lock on the DWT
Some devices, like the STM32F7, software lock the DWT after a power cycle.
impl DWT
[src]
impl DWT
[src]pub const PTR: *const RegisterBlock
[src]
Pointer to the register block
pub const fn ptr() -> *const RegisterBlock
[src]
Returns a pointer to the register block (to be deprecated in 0.7)