Struct tmcl::modules::generic::instructions::GIO [] [src]

pub struct GIO { /* fields omitted */ }

GIO - Get Input / Output

This function reads a digital or analogue input port. So, digital lines will read 0 and 1, while the ADC channels deliver their 10 bit result in the range of 0...1023. In stand-alone mode the requested value is copied to the "accumulator" (accu) for further processing purposes such as conditioned jumps. In direct mode the value is only output in the “value” field of the reply, without affecting the accumulator. The actual status of a digital output line can also be read.

Methods

impl GIO
[src]

[src]

Trait Implementations

impl Debug for GIO
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for GIO
[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 GIO
[src]

INSTRUCTION_NUMBER: u8 = 15

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 GIO
[src]

Auto Trait Implementations

impl Send for GIO

impl Sync for GIO