#[repr(u8)]pub enum Opcode {
Show 19 variants
Add = 4,
Sub = 5,
Modadd = 6,
Modsub = 7,
And = 8,
Or = 9,
Xor = 10,
Shr0 = 12,
Shr1 = 13,
Shl0 = 14,
Shl1 = 15,
Mullow = 16,
Modmul = 17,
Modmuln = 18,
Modexp = 19,
Division = 20,
Div = 21,
Moddiv = 22,
Terminate = 0,
}Expand description
Defines the PKA operation:
Value on reset: 0
Variants§
Add = 4
4: Add,Inc opcode
Sub = 5
5: Sub,Dec,Neg opcode
Modadd = 6
6: ModAdd,ModInc opcode
Modsub = 7
7: ModSub,ModDec,ModNeg opcode
And = 8
8: AND,TST0,CLR0 opcode
Or = 9
9: OR,COPY,SET0 opcode
Xor = 10
10: XOR,FLIP0,INVERT,COMPARE opcode
Shr0 = 12
12: SHR0 opcode
Shr1 = 13
13: SHR1 opcode
Shl0 = 14
14: SHL0 opcode
Shl1 = 15
15: SHL1 opcode
Mullow = 16
16: MulLow opcode
Modmul = 17
17: ModMul opcode
Modmuln = 18
18: ModMulN opcode
Modexp = 19
19: ModExp opcode
Division = 20
20: Division opcode
Div = 21
21: Div opcode
Moddiv = 22
22: ModDiv opcode
Terminate = 0
0: Terminate opcode
Trait Implementations§
impl Copy for Opcode
impl Eq for Opcode
impl IsEnum 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