Command Processor

Purpose

This command line interface lets users specify the functionality of pins on the fly by typing commands.

Currently Supported

DigitalIn: Read DigitalOut: read, write PwmOut: read, write I2C: read, write Serial: putc, getc, baud

Functinality

Typed command strings are decoded and executed with the following syntax

DigitalOut

create: DOUT C Pxx read: DOUT R Pxx write: DOUT W Pxx [0 or 1]

DigitalIn

create: DIN C Pxx read: DIN R Pxx

PwmOut

create: PWMO C Pxx read: PWMO R Pxx write: PWM O Pxx [float]

I2C

create: I2C C Pxx (Pxx can be either one of the supported pins in the supported pair, but you must now use the same pin) read: I2C R Pxx [address] [number of chars to read] write: I2C W Pxx [address] [number of chars to write] [char 1] [char 2] .... etc

Serial

create: Serial C Pxx (Pxx can be either one of the supported pins in the supported pair, but you must now use the same pin) getc: Serial G Pxx putc: Serial P Pxx [char to write] baud: Serial B Pxx [baud rate]


Please log in to post comments.