Struct nrf52810_hal::pac::DWT[]

pub struct DWT { /* fields omitted */ }

Data Watchpoint and Trace unit

Implementations

impl DWT

pub fn enable_cycle_counter(&mut self)

Enables the cycle counter

pub fn get_cycle_count() -> u32

Returns the current clock cycle count

pub fn unlock()

Removes the software lock on the DWT

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

impl DWT

pub const PTR: *const RegisterBlock

Pointer to the register block

pub const fn ptr() -> *const RegisterBlock

Returns a pointer to the register block (to be deprecated in 0.7)

Trait Implementations

impl Deref for DWT

type Target = RegisterBlock

The resulting type after dereferencing.

impl Send for DWT

Auto Trait Implementations

impl !Sync for DWT

impl Unpin for DWT

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.