Struct stm32_metapac::dbgmcu::regs::Cr
#[repr(transparent)]pub struct Cr(pub u32);
Expand description
DBGMCU configuration register.
Tuple Fields§
§0: u32
Implementations§
§impl Cr
impl Cr
pub const fn stop(&self) -> bool
pub const fn stop(&self) -> bool
Allows debug in Stop mode All clocks are disabled automatically in Stop mode. All active clocks and oscillators continue to run during Stop mode, allowing full debug capability. On exit from Stop mode, the clock settings are set to the Stop mode exit state.
pub fn set_stop(&mut self, val: bool)
pub fn set_stop(&mut self, val: bool)
Allows debug in Stop mode All clocks are disabled automatically in Stop mode. All active clocks and oscillators continue to run during Stop mode, allowing full debug capability. On exit from Stop mode, the clock settings are set to the Stop mode exit state.
pub const fn standby(&self) -> bool
pub const fn standby(&self) -> bool
Allows debug in Standby mode All clocks are disabled and the core powered down automatically in Standby mode. All active clocks and oscillators continue to run during Standby mode, and the core supply is maintained, allowing full debug capability. On exit from Standby mode, a system reset is performed.
pub fn set_standby(&mut self, val: bool)
pub fn set_standby(&mut self, val: bool)
Allows debug in Standby mode All clocks are disabled and the core powered down automatically in Standby mode. All active clocks and oscillators continue to run during Standby mode, and the core supply is maintained, allowing full debug capability. On exit from Standby mode, a system reset is performed.
pub const fn trace_ioen(&self) -> bool
pub const fn trace_ioen(&self) -> bool
trace pin enable.
pub fn set_trace_ioen(&mut self, val: bool)
pub fn set_trace_ioen(&mut self, val: bool)
trace pin enable.
pub const fn trace_en(&self) -> bool
pub const fn trace_en(&self) -> bool
trace port and clock enable. This bit enables the trace port clock, TRACECK.
pub fn set_trace_en(&mut self, val: bool)
pub fn set_trace_en(&mut self, val: bool)
trace port and clock enable. This bit enables the trace port clock, TRACECK.
pub const fn trace_mode(&self) -> u8
pub const fn trace_mode(&self) -> u8
trace pin assignment.
pub fn set_trace_mode(&mut self, val: u8)
pub fn set_trace_mode(&mut self, val: u8)
trace pin assignment.
Trait Implementations§
impl Copy for Cr
impl Eq for Cr
impl StructuralPartialEq for Cr
Auto Trait Implementations§
impl Freeze for Cr
impl RefUnwindSafe for Cr
impl Send for Cr
impl Sync for Cr
impl Unpin for Cr
impl UnwindSafe for Cr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)