Struct Lsr
#[repr(transparent)]pub struct Lsr(pub u32);
Expand description
This indicates the status of the lock control mechanism. This lock prevents accidental writes by code under debug. Accesses to the extended stimulus port registers are not affected by the lock mechanism. This register must always be present although there might not be any lock access control mechanism. The lock mechanism, where present and locked, must block write accesses to any control register, except the Lock Access Register. For most components this covers all registers except for the Lock Access Register.
Tuple Fields§
§0: u32
Implementations§
§impl Lsr
impl Lsr
pub fn set_present(&mut self, val: bool)
pub fn set_present(&mut self, val: bool)
Indicates that a lock control mechanism exists for this device.
pub fn set_locked(&mut self, val: bool)
pub fn set_locked(&mut self, val: bool)
Returns the current status of the Lock.
Trait Implementations§
impl Copy for Lsr
impl Eq for Lsr
impl StructuralPartialEq for Lsr
Auto Trait Implementations§
impl Freeze for Lsr
impl RefUnwindSafe for Lsr
impl Send for Lsr
impl Sync for Lsr
impl Unpin for Lsr
impl UnwindSafe for Lsr
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
)