Manual

90 Functions
value
A value between 1 and 65535 defining the maximum
value for each period measurement.
Example
IO_4 input edgelog elog;
when (reset)
{
io_edgelog_preload(0x4000); // One fourth timeout
// value: 16384
}
io_edgelog_single_preload( ) Built-in Function
The io_edgelog_single_preload( ) built-in function is optionally used with the
edgelog I/O model when declared with the single_tc option keyword. The
value
parameter defines the maximum value, in units of the clock period, for each
period measurement, and can be any value from 1 to 65535. If the period exceeds
the maximum value, the io_in( ) call is terminated.
The default maximum value is 65535, which provides the maximum timeout
condition. By setting a smaller maximum value with this function, a Neuron C
program can
shorten
the length of the timeout condition. This function need only
be called once, but can be called multiple times to change the maximum value.
The function can be called from a when(reset) task to automatically reduce the
maximum count after every start-up.
If a preload value is specified, it must be added to the value returned by io_in( ).
The resulting addition could cause an overflow, but this is normal.
Syntax
void io_edgelog_single_preload (unsigned long
value
);
value
A value between 1 and 65535 defining the maximum
value for each period measurement.
Example
IO_4 input edgelog single_tc elog;
when (reset)
{
io_edgelog_single_preload(0x4000);
// One fourth timeout value: 16384
}
io_idis( ) Function
For Series 3100 devices, the io_idis( ) function disables 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.