Struct Cr
#[repr(transparent)]pub struct Cr(pub u32);Expand description
status and configuration register
Tuple Fields§
§0: u32Implementations§
§impl Cr
impl Cr
pub const fn dbg_stop(&self) -> bool
pub const fn dbg_stop(&self) -> bool
Allows debug in Stop mode Write access can be protected by PWR_SECCFGR.LPMSEC. The CPU debug and clocks remain active and the HSI oscillators is used as system clock during Stop debug mode, allowing CPU debug capability. On exit from Stop mode, the clock settings are set to the Stop mode exit state.
pub const fn set_dbg_stop(&mut self, val: bool)
pub const fn set_dbg_stop(&mut self, val: bool)
Allows debug in Stop mode Write access can be protected by PWR_SECCFGR.LPMSEC. The CPU debug and clocks remain active and the HSI oscillators is used as system clock during Stop debug mode, allowing CPU debug capability. On exit from Stop mode, the clock settings are set to the Stop mode exit state.
pub const fn dbg_standby(&self) -> bool
pub const fn dbg_standby(&self) -> bool
Allows debug in Standby mode Write access can be protected by PWR_SECCFGR.LPMSEC. The CPU debug and clocks remain active and the HSI oscillator is used as system clock, the supply and SRAM memory content is maintained during Standby debug mode, allowing CPU debug capability. On exit from Standby mode, a standby reset is performed.
pub const fn set_dbg_standby(&mut self, val: bool)
pub const fn set_dbg_standby(&mut self, val: bool)
Allows debug in Standby mode Write access can be protected by PWR_SECCFGR.LPMSEC. The CPU debug and clocks remain active and the HSI oscillator is used as system clock, the supply and SRAM memory content is maintained during Standby debug mode, allowing CPU debug capability. On exit from Standby mode, a standby reset is performed.
pub const fn trace_ioen(&self) -> bool
pub const fn trace_ioen(&self) -> bool
Trace port pins enable (only on STM32WBA6). 0: trace port pins not assigned. 1: trace port pins assigned according to TRACE_MODE.
pub const fn set_trace_ioen(&mut self, val: bool)
pub const fn set_trace_ioen(&mut self, val: bool)
Trace port pins enable (only on STM32WBA6). 0: trace port pins not assigned. 1: trace port pins assigned according to TRACE_MODE.
pub const fn trace_en(&self) -> bool
pub const fn trace_en(&self) -> bool
Trace port enable, enables the trace port clock TRACECK (only on STM32WBA6)
pub const fn set_trace_en(&mut self, val: bool)
pub const fn set_trace_en(&mut self, val: bool)
Trace port enable, enables the trace port clock TRACECK (only on STM32WBA6)
pub const fn trace_mode(&self) -> TraceMode
pub const fn trace_mode(&self) -> TraceMode
Trace pin assignment (only on STM32WBA6)
pub const fn set_trace_mode(&mut self, val: TraceMode)
pub const fn set_trace_mode(&mut self, val: TraceMode)
Trace pin assignment (only on STM32WBA6)