Struct stm32_metapac::dbgmcu::regs::Sr
#[repr(transparent)]pub struct Sr(pub u32);
Expand description
DBGMCU status register.
Tuple Fields§
§0: u32
Implementations§
§impl Sr
impl Sr
pub const fn ap1_present(&self) -> bool
pub const fn ap1_present(&self) -> bool
Identifies whether access port AP1 is present in device.
pub fn set_ap1_present(&mut self, val: bool)
pub fn set_ap1_present(&mut self, val: bool)
Identifies whether access port AP1 is present in device.
pub const fn ap0_present(&self) -> bool
pub const fn ap0_present(&self) -> bool
Identifies whether access port AP0 is present in device.
pub fn set_ap0_present(&mut self, val: bool)
pub fn set_ap0_present(&mut self, val: bool)
Identifies whether access port AP0 is present in device.
pub const fn ap1_enabled(&self) -> bool
pub const fn ap1_enabled(&self) -> bool
Identifies whether access port AP0 is open (can be accessed via the debug port) or locked (debug access to the AP is blocked).
pub fn set_ap1_enabled(&mut self, val: bool)
pub fn set_ap1_enabled(&mut self, val: bool)
Identifies whether access port AP0 is open (can be accessed via the debug port) or locked (debug access to the AP is blocked).
pub const fn ap0_enabled(&self) -> bool
pub const fn ap0_enabled(&self) -> bool
Identifies whether access port AP0 is open (can be accessed via the debug port) or locked (debug access to the AP is blocked).
pub fn set_ap0_enabled(&mut self, val: bool)
pub fn set_ap0_enabled(&mut self, val: bool)
Identifies whether access port AP0 is open (can be accessed via the debug port) or locked (debug access to the AP is blocked).
Trait Implementations§
impl Copy for Sr
impl Eq for Sr
impl StructuralPartialEq for Sr
Auto Trait Implementations§
impl Freeze for Sr
impl RefUnwindSafe for Sr
impl Send for Sr
impl Sync for Sr
impl Unpin for Sr
impl UnwindSafe for Sr
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
)