beautypg.com

Io_in( ) function – Echelon I/O Model Reference for Smart Transceivers and Neuron Chips User Manual

Page 29

background image

I/O Model Reference

19

functions because they are included by the Neuron C compiler. The compiler

enforces type checking for the parameters of these functions.

Table 7. General I/O Functions

Function

Description

io_change_init( )

Initializes the value of an input object for the
io_changes event

io_edgelog_preload( )

Sets the timer/counter preload value for an
edgelog I/O object

io_edgelog_single_preload( )

Sets the timer/counter preload value for an

edgelog single_tc I/O object

io_in( )

Reads data from an I/O object

io_in_ready( )

An event function that evaluates to TRUE when
a block of data is available to be read from a

parallel I/O object

io_in_request( )

Starts an I/O input cycle for a dualslope I/O

object

io_out( )

Writes data to an I/O object

io_out_request( )

Requests the write token for a parallel I/O object

io_preserve_input( )

Causes the first value obtained from a

timer/counter after reset or an io_select( ) to be
considered valid

io_select( )

Selects one of the multiplexed input objects (see

Multiplexing I/O Models

on page 18)

io_set_baud( )

Changes the bit rate setting for the specified

object

io_set_clock( )

Changes the clock setting for the specified object

io_set_direction( )

Changes the direction of I/O pins associated with
any bit, nibble, or byte I/O objects

See the

Neuron C Reference Guide

for more information about these functions.

The following sections describe the two most common functions and a common

variable.

io_in( ) Function

When a program needs to retrieve signals from a peripheral device, declare an

input object and use the built-in io_in( ) function.

The syntax for the io_in( ) function is: