#[repr(transparent)]pub struct Opcode(pub u32);
Expand description
Operation code to be executed by the PKA engine. Writing to this register triggers the PKA operation.
Tuple Fields§
§0: u32
Implementations§
Source§impl Opcode
impl Opcode
Sourcepub fn set_tag(&mut self, val: u8)
pub fn set_tag(&mut self, val: u8)
Holds the operation tag or the operand C virtual register index.
Sourcepub fn set_discard_r(&mut self, val: DiscardR)
pub fn set_discard_r(&mut self, val: DiscardR)
This field controls the interpretation of REG_R.
Sourcepub fn set_const_b(&mut self, val: ConstB)
pub fn set_const_b(&mut self, val: ConstB)
This field controls the interpretation of REG_B.
Sourcepub fn set_const_a(&mut self, val: ConstA)
pub fn set_const_a(&mut self, val: ConstA)
This field controls the interpretation of REG_A.
Sourcepub const fn len(&self) -> u8
pub const fn len(&self) -> u8
The length of the operands. This value serves as an PKA length register index. E.g.: if LEN field value is set to 0, PKA_L[0] holds the size of the operands.
Sourcepub fn set_len(&mut self, val: u8)
pub fn set_len(&mut self, val: u8)
The length of the operands. This value serves as an PKA length register index. E.g.: if LEN field value is set to 0, PKA_L[0] holds the size of the operands.
Sourcepub fn set_opcode(&mut self, val: Opcode)
pub fn set_opcode(&mut self, val: Opcode)
Operation code to be executed by the PKA engine
Trait Implementations§
impl Copy for Opcode
impl Eq for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations§
impl Freeze for Opcode
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnwindSafe for Opcode
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
)