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 the operand to the accumulator

Subtract the operand from the accumulator

Multiply the accumulator by a the operand

Divide the accumulator by the operand

Modulo divide the accumualtor by the operand

Logical and accumulator with operand

Logical or accumulator with operand

Logical xor accumulator with operand

Logical invert accumulator

Load operand to accumulator

Trait Implementations

impl Debug for CALC
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for CALC
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Instruction for CALC
[src]

INSTRUCTION_NUMBER: u8 = 19

The command number (sometimes referred to as the instruction number).

[src]

Return the operand serialized. Read more

[src]

[src]

The motor/bank number

impl TmcmInstruction for CALC
[src]

Auto Trait Implementations

impl Send for CALC

impl Sync for CALC