Manual
Neuron C Reference Guide 97
io_out( ) Built-in Function
The io_out( ) built-in function writes data to an I/O object.
The <io_types.h> include file contains optional type definitions for each of the I/O
object types. The type names are the I/O object type name followed by “_t”. For
example bit_t is the type name for a bit I/O object. The data type of
output-value
is listed below for each object type.
Object Type Output Value Type
bit output unsigned short
bitshift output unsigned long (also, see below)
byte output unsigned short
edgedivide output unsigned long
frequency output unsigned long
i2c (see below)
infrared_pattern output (see below)
muxbus output unsigned short
neurowire master (see below)
neurowire master void (also, see below)
neurowire slave (see below)
neurowire slave unsigned short (also, see below)
nibble output unsigned short
oneshot output unsigned long
parallel (see below)
pulsecount output unsigned long
pulsewidth output unsigned short
sci Not applicable
serial output (see below)
spi unsigned short
stretchedtriac unsigned short
touch (see below)
triac output unsigned long
triggeredcount output unsigned long
Syntax
return-value
io_out (
output-io-object-name
,
output-value
[,
args
]);
return-value
The value returned by the function. void for all models
except i2c (for which
return-value
is a Boolean value).