Struct atsamd21g18a::DCB [−][src]
pub struct DCB { /* fields omitted */ }
Debug Control Block
Methods
impl DCB
[src]
impl DCB
pub fn enable_trace(&mut self)
[src]
pub fn enable_trace(&mut self)
Enables TRACE. This is for example required by the
peripheral::DWT
cycle counter to work properly.
As by STM documentation, this flag is not reset on
soft-reset, only on power reset.
pub fn disable_trace(&mut self)
[src]
pub fn disable_trace(&mut self)
Disables TRACE. See DCB::enable_trace()
for more details
impl DCB
[src]
impl DCB
pub fn ptr() -> *const RegisterBlock
[src]
pub fn ptr() -> *const RegisterBlock
Returns a pointer to the register block
Trait Implementations
impl Deref for DCB
[src]
impl Deref for DCB
type Target = RegisterBlock
The resulting type after dereferencing.
fn deref(&self) -> &<DCB as Deref>::Target
[src]
fn deref(&self) -> &<DCB as Deref>::Target
Dereferences the value.
impl Send for DCB
[src]
impl Send for DCB