Muxbus, Neurowire, Parallel – Echelon Neuron C User Manual
Page 119: Serial
Neuron C Reference Guide
99
model in the
I/O Model Reference
for a detailed
explanation of this restriction.
muxbus
For muxbus I/O objects, the syntax is:
io_out (
muxbus-io-obj
, [
addr
,]
data
);
addr
An optional address to write (from 0 to 255). Omission of
the address causes the firmware to rewrite the last
address read or written (muxbus is a bi-directional I/O
device).
data
A single byte of data to write.
neurowire
For neurowire I/O objects, the syntax is:
io_out (
neurowire-io-obj
,
buf
,
count
);
buf
A
(void *) pointer to a buffer.
count
The number of bits to be written (from 1 to 255).
Calling io_out( ) for a neurowire output object is the same as calling io_in( ). In
either case, data is shifted into the buffer from pin IO_10.
parallel
For parallel I/O objects, the syntax is:
io_out (
parallel-io-obj
,
buf
);
buf
A pointer to the parallel_io_interface structure.
serial
For serial
output objects, the syntax is:
io_out (
serial-output-obj
,
buf
,
count
);
buf
A
(void *) pointer to a buffer.
count
The number of bytes to be written (from 1 to 255).
spi
For spi I/O objects, the syntax is:
io_out (
spi-io-obj, buf, len
);
buf
A pointer to a buffer of data bytes for the bidirectional
data transfer.
len
An unsigned short number of bytes to transfer.
Calling io_out() for a spi object is the same as calling io_in(). In either case, the
data in the buffer is output and simultaneously replaced by new input data.