Struct nrf52832_hal::pac::DWT [−]
pub struct DWT { /* fields omitted */ }
Expand description
Data Watchpoint and Trace unit
Implementations
impl DWT
impl DWT
pub fn enable_cycle_counter(&mut self)
pub fn enable_cycle_counter(&mut self)
Enables the cycle counter
pub fn get_cycle_count() -> u32
pub fn get_cycle_count() -> u32
Returns the current clock cycle count
pub fn unlock()
pub fn unlock()
Removes the software lock on the DWT
Some devices, like the STM32F7, software lock the DWT after a power cycle.