Trait tmcl::Instruction [] [src]

pub trait Instruction {
    const INSTRUCTION_NUMBER: u8;

    fn type_number(&self) -> u8;
fn motor_bank_number(&self) -> u8;
fn operand(&self) -> [u8; 4]; }

A TMCL Instruction

Associated Constants

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

Required Methods

The motor/bank number

Return the operand serialized.

Even though the whole frame (in serialized form) is represented as: [..., operand[3], operand[2], operand[1], operand[0], ...]. This function instead return the operand: [operand[0], operand[1], operand[2], operand[3]].

Implementors