Struct stm32_metapac::pka::regs::Sr
#[repr(transparent)]pub struct Sr(pub u32);
Expand description
PKA status register.
Tuple Fields§
§0: u32
Implementations§
§impl Sr
impl Sr
pub const fn busy(&self) -> bool
pub const fn busy(&self) -> bool
PKA operation is in progress This bit is set to 1 whenever START bit in the PKA_CR is set. It is automatically cleared when the computation is complete, meaning that PKA RAM can be safely accessed and a new operation can be started. If PKA is started with a wrong opcode, it is busy for a couple of cycles, then it aborts automatically the operation and go back to ready (BUSY bit is set to 0).
pub fn set_busy(&mut self, val: bool)
pub fn set_busy(&mut self, val: bool)
PKA operation is in progress This bit is set to 1 whenever START bit in the PKA_CR is set. It is automatically cleared when the computation is complete, meaning that PKA RAM can be safely accessed and a new operation can be started. If PKA is started with a wrong opcode, it is busy for a couple of cycles, then it aborts automatically the operation and go back to ready (BUSY bit is set to 0).
pub fn set_procendf(&mut self, val: bool)
pub fn set_procendf(&mut self, val: bool)
PKA End of Operation flag.
pub const fn ramerrf(&self) -> bool
pub const fn ramerrf(&self) -> bool
PKA RAM error flag This bit is cleared using RAMERRFC bit in PKA_CLRFR.
pub fn set_ramerrf(&mut self, val: bool)
pub fn set_ramerrf(&mut self, val: bool)
PKA RAM error flag This bit is cleared using RAMERRFC bit in PKA_CLRFR.
pub const fn addrerrf(&self) -> bool
pub const fn addrerrf(&self) -> bool
Address error flag This bit is cleared using ADDRERRFC bit in PKA_CLRFR.
pub fn set_addrerrf(&mut self, val: bool)
pub fn set_addrerrf(&mut self, val: bool)
Address error flag This bit is cleared using ADDRERRFC bit in PKA_CLRFR.
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
)