#[repr(transparent)]pub struct PkaStatus(pub u32);
Expand description
This register holds the status for the PKA pipeline.
Tuple Fields§
§0: u32
Implementations§
Source§impl PkaStatus
impl PkaStatus
Sourcepub const fn alu_msb_4bits(&self) -> u8
pub const fn alu_msb_4bits(&self) -> u8
The most significant 4-bits of the operand updated in shift operation.
Sourcepub fn set_alu_msb_4bits(&mut self, val: u8)
pub fn set_alu_msb_4bits(&mut self, val: u8)
The most significant 4-bits of the operand updated in shift operation.
Sourcepub const fn alu_lsb_4bits(&self) -> u8
pub const fn alu_lsb_4bits(&self) -> u8
The least significant 4-bits of the operand updated in shift operation.
Sourcepub fn set_alu_lsb_4bits(&mut self, val: u8)
pub fn set_alu_lsb_4bits(&mut self, val: u8)
The least significant 4-bits of the operand updated in shift operation.
Sourcepub const fn alu_sign_out(&self) -> bool
pub const fn alu_sign_out(&self) -> bool
Indicates the MSB sign of the last operation.
Sourcepub fn set_alu_sign_out(&mut self, val: bool)
pub fn set_alu_sign_out(&mut self, val: bool)
Indicates the MSB sign of the last operation.
Sourcepub fn set_alu_carry(&mut self, val: bool)
pub fn set_alu_carry(&mut self, val: bool)
Holds the carry of the last ALU operation.
Sourcepub const fn alu_carry_mod(&self) -> bool
pub const fn alu_carry_mod(&self) -> bool
Holds the carry of the last modular operation.
Sourcepub fn set_alu_carry_mod(&mut self, val: bool)
pub fn set_alu_carry_mod(&mut self, val: bool)
Holds the carry of the last modular operation.
Sourcepub const fn alu_sub_is_zero(&self) -> bool
pub const fn alu_sub_is_zero(&self) -> bool
Indicates the last subtraction operation sign.
Sourcepub fn set_alu_sub_is_zero(&mut self, val: bool)
pub fn set_alu_sub_is_zero(&mut self, val: bool)
Indicates the last subtraction operation sign.
Sourcepub const fn alu_out_zero(&self) -> bool
pub const fn alu_out_zero(&self) -> bool
Indicates if the result of ALU OUT is zero.
Sourcepub fn set_alu_out_zero(&mut self, val: bool)
pub fn set_alu_out_zero(&mut self, val: bool)
Indicates if the result of ALU OUT is zero.
Sourcepub const fn alu_modovrflw(&self) -> bool
pub const fn alu_modovrflw(&self) -> bool
Modular overflow flag.
Sourcepub fn set_alu_modovrflw(&mut self, val: bool)
pub fn set_alu_modovrflw(&mut self, val: bool)
Modular overflow flag.
Sourcepub const fn div_by_zero(&self) -> bool
pub const fn div_by_zero(&self) -> bool
Indication if the division is done by zero.
Sourcepub fn set_div_by_zero(&mut self, val: bool)
pub fn set_div_by_zero(&mut self, val: bool)
Indication if the division is done by zero.
Sourcepub const fn modinv_of_zero(&self) -> bool
pub const fn modinv_of_zero(&self) -> bool
Indicates the modular inverse of zero.
Sourcepub fn set_modinv_of_zero(&mut self, val: bool)
pub fn set_modinv_of_zero(&mut self, val: bool)
Indicates the modular inverse of zero.
Sourcepub fn set_opcode(&mut self, val: u8)
pub fn set_opcode(&mut self, val: u8)
Opcode of the last operation
Trait Implementations§
impl Copy for PkaStatus
impl Eq for PkaStatus
impl StructuralPartialEq for PkaStatus
Auto Trait Implementations§
impl Freeze for PkaStatus
impl RefUnwindSafe for PkaStatus
impl Send for PkaStatus
impl Sync for PkaStatus
impl Unpin for PkaStatus
impl UnwindSafe for PkaStatus
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
)