General, Bitshift, Infrared_pattern – Echelon Neuron C User Manual
Page 118
98
Functions
output-io-object-name
Specifies the I/O object name, which corresponds to
io-object-name
in the I/O declaration.
output-value
Specifies the value to be written to the I/O object.
args
Arguments, which depend on the object type, as described
below. Some of these arguments can also appear in the
object declaration. If specified in both places, the value of
the function argument overrides the declared value for
that call only. If the value is not specified in either the
function argument or the declaration, the default value is
used.
General
For all output objects except those listed below, the syntax is:
io_out (
output-obj
,
output-value
);
The type of the
output-value
of the io_out( ) call is listed in the table above.
bitshift
For bitshift output objects, the syntax is:
io_out (
bitshift-output-obj
,
output-value
[,
numbits
]);
numbits
The number of bits to be shifted out, from 1 to 127. After
16 bits, zeros are shifted out.
i2c
For i2c I/O objects, the syntax is:
io_out (
i2c-io-obj
,
buf
,
addr
,
count
);
io_out (
i2c-io-obj
,
buf
,
addr
,
count
,
stop
);
buf
A
(void *) pointer to a buffer.
addr
An unsigned int I2C device address.
count
The number of bits to be written (from 1 to 255).
stop
A Boolean value to specify whether the stop condition is
asserted after the transfer.
infrared_pattern
For infrared_pattern output objects, the syntax is:
io_out (
infrared-pattern-obj, freqOut, timing-table, count
);
freqOut
An unsigned long value that selects the output-frequency.
timing-table
An array of unsigned long timing values.
count
An unsigned short value specifying the number of entries
in the timing table. The number of values in the table,
and therefore the
count
value, must be an odd number.
See the detailed description of the infrared_pattern I/O