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]
Trait Implementations
impl Debug for GIO
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for GIO
[src]
fn eq(&self, __arg_0: &GIO) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GIO) -> bool
[src]
This method tests for !=
.
impl Instruction for GIO
[src]
const INSTRUCTION_NUMBER: u8
INSTRUCTION_NUMBER: u8 = 15
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