Event directory, Flush_completes event, Syntax – Echelon Neuron C User Manual
Page 23: Example, Io_changes event
Neuron C Reference Guide
3
offline
online
reset
timer_expires (unqualified)
wink
All other predefined events can be used in multiple when
clauses. Predefined
events (except for the reset event) can also be used in any Neuron C expression.
Event Directory
The following sections list Neuron C events alphabetically, providing relevant
syntax information and a detailed description of each event.
flush_completes
Event
The flush_completes event evaluates to TRUE, following a call to the flush( )
function, when all outgoing transactions have been completed and no more
incoming messages remain to be processed. For unacknowledged messages,
“completed” means that the message has been transmitted by the media access
control (MAC) layer. For acknowledged messages, “completed” means that the
completion code has been processed. In addition, all network variable updates
have completed.
See also the discussion of sleep mode in Chapter 7,
Additional Features
, of the
Neuron C Programmer's Guide
.
Syntax
flush_completes
Example
...
flush();
when (flush_completes)
{
sleep();
}
io_changes
Event
The io_changes event evaluates to TRUE when the value read from the I/O object
specified by
io-object-name
changes state. The state change can be one of the
following three types:
• A change
to
a specified value
• A change
by
(at least) a specified amount (the absolute value)
• Any change (an unqualified change)