Syntax, Example, Io_iena( ) function – Echelon Neuron C User Manual
Page 111: Io_in( ) built-in function
Neuron C Reference Guide
91
For Series 5000 devices, the io_idis( ) function disables all application interrupts.
This function does not affect the I/O interrupt used in the hardware support for
the sci and spi I/O models.
Syntax
void io_idis (void);
Example
when (...)
{
io_idis();
}
io_iena( )
Function
For Series 3100 devices, the io_iena( ) function enables the I/O interrupt used in
the hardware support for the sci and spi I/O models. You can turn off interrupts
when going offline or to assure that other time-critical application functions are
not disturbed by SCI or SPI interrupts.
For Series 5000 devices, the io_iena( ) function enables all application interrupts.
This function does not affect the I/O interrupt used in the hardware support for
the sci and spi I/O models.
Syntax
void io_iena (void);
Example
when (...)
{
io_iena();
}
io_in( )
Built-in Function
The io_in( ) built-in function reads data from an input object.
The
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 the
return-value
is listed below for each object type.
Object Type
Returned Data Type
bit input
unsigned short
bitshift input
unsigned long
byte input
unsigned short