Struct stm32_hal2::pac::DWT
source · [−]pub struct DWT { /* private fields */ }
Expand description
Data Watchpoint and Trace unit
Implementations
sourceimpl DWT
impl DWT
sourcepub fn enable_cycle_counter(&mut self)
pub fn enable_cycle_counter(&mut self)
Enables the cycle counter
sourcepub fn get_cycle_count() -> u32
pub fn get_cycle_count() -> u32
Returns the current clock cycle count
sourceimpl DWT
impl DWT
sourcepub const PTR: *const RegisterBlock = {0xe0001000 as *const cortex_m::peripheral::dwt::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xe0001000 as *const cortex_m::peripheral::dwt::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Returns a pointer to the register block (to be deprecated in 0.7)
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more