Struct stm32_metapac::flash::regs::Opsr
#[repr(transparent)]pub struct Opsr(pub u32);
Expand description
operation status register
Tuple Fields§
§0: u32
Implementations§
§impl Opsr
impl Opsr
pub const fn addr_op(&self) -> u32
pub const fn addr_op(&self) -> u32
Interrupted operation address This field indicates which address in the memory was accessed when reset occurred. The address is given relative to the base address, from offset 0x0�0000 to 0xF�FFF0. Note that bit 19 is reserved on STM32WBAxEx devices.
pub fn set_addr_op(&mut self, val: u32)
pub fn set_addr_op(&mut self, val: u32)
Interrupted operation address This field indicates which address in the memory was accessed when reset occurred. The address is given relative to the base address, from offset 0x0�0000 to 0xF�FFF0. Note that bit 19 is reserved on STM32WBAxEx devices.
pub const fn sysf_op(&self) -> bool
pub const fn sysf_op(&self) -> bool
Operation in system memory interrupted This bit indicates that the reset occurred during an operation in the system memory.
pub fn set_sysf_op(&mut self, val: bool)
pub fn set_sysf_op(&mut self, val: bool)
Operation in system memory interrupted This bit indicates that the reset occurred during an operation in the system memory.
pub const fn code_op(&self) -> CodeOp
pub const fn code_op(&self) -> CodeOp
memory operation code This field indicates which memory operation has been interrupted by a system reset:
pub fn set_code_op(&mut self, val: CodeOp)
pub fn set_code_op(&mut self, val: CodeOp)
memory operation code This field indicates which memory operation has been interrupted by a system reset:
Trait Implementations§
impl Copy for Opsr
impl Eq for Opsr
impl StructuralPartialEq for Opsr
Auto Trait Implementations§
impl Freeze for Opsr
impl RefUnwindSafe for Opsr
impl Send for Opsr
impl Sync for Opsr
impl Unpin for Opsr
impl UnwindSafe for Opsr
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
)