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 ap_present(&self) -> u16
pub const fn ap_present(&self) -> u16
Bit n identifies whether access port AP n is present in device Bit n = 0: APn absent Bit n = 1: APn present.
pub fn set_ap_present(&mut self, val: u16)
pub fn set_ap_present(&mut self, val: u16)
Bit n identifies whether access port AP n is present in device Bit n = 0: APn absent Bit n = 1: APn present.
pub const fn ap_enabled(&self) -> u16
pub const fn ap_enabled(&self) -> u16
Bit n identifies whether access port AP n is open (can be accessed via the debug port) or locked (debug access to the AP is blocked) Bit n = 0: APn locked Bit n = 1: APn enabled.
pub fn set_ap_enabled(&mut self, val: u16)
pub fn set_ap_enabled(&mut self, val: u16)
Bit n identifies whether access port AP n is open (can be accessed via the debug port) or locked (debug access to the AP is blocked) Bit n = 0: APn locked Bit n = 1: APn enabled.
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)