Enum tmcl::modules::generic::instructions::CALC
[−]
[src]
pub enum CALC { Add(i32), Sub(i32), Mul(i32), Div(i32), Mod(i32), And(i32), Or(i32), Xor(i32), Not, Load(i32), }
CALC - Calculate
Variants
Add(i32)
Add the operand to the accumulator
Sub(i32)
Subtract the operand from the accumulator
Mul(i32)
Multiply the accumulator by a the operand
Div(i32)
Divide the accumulator by the operand
Mod(i32)
Modulo divide the accumualtor by the operand
And(i32)
Logical and accumulator with operand
Or(i32)
Logical or accumulator with operand
Xor(i32)
Logical xor accumulator with operand
Not
Logical invert accumulator
Load(i32)
Load operand to accumulator
Trait Implementations
impl Debug for CALC
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for CALC
[src]
fn eq(&self, __arg_0: &CALC) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CALC) -> bool
[src]
This method tests for !=
.
impl Instruction for CALC
[src]
const INSTRUCTION_NUMBER: u8
INSTRUCTION_NUMBER: u8 = 19
The command number (sometimes referred to as the instruction number).
fn operand(&self) -> [u8; 4]
[src]
Return the operand serialized. Read more
fn type_number(&self) -> u8
[src]
fn motor_bank_number(&self) -> u8
[src]
The motor/bank number