Flush( ) function, Syntax, Example – Echelon Neuron C User Manual
Page 102

82
Functions
void fl_neg (const float_type *
arg1
, float_type *
arg2
);
void fl_rand (float_type *
arg1
);
void fl_round (const float_type *
arg1
, float_type *
arg2
);
int fl_sign (const float_type *
arg1
);
void fl_sqrt (const float_type *
arg1
, float_type *
arg2
);
void fl_sub (const float_type *
arg1
, const float_type *
arg2
, float_type *
arg3
);
void fl_to_ascii (const float_type *
arg1
, char *
arg2
, int
decimals
,
unsigned
buf-size
);
void fl_to_ascii_fmt (const float_type *
arg1
, char *
arg2
, int
decimals
,
unsigned
buf-size
, format_type
format
);
void fl_to_s32 (const float_type *
arg1
, void *
arg2
);
signed long fl_to_slong (const float_type *
arg2
);
unsigned long fl_to_ulong (const float_type *
arg2
);
void fl_trunc (const float_type *
arg1
, float_type *
arg2
);
These functions are described in
Floating-Point Support Functions
on page 58.
flush( )
Function
The flush( ) function causes the Neuron firmware to monitor the status of all
outgoing and incoming messages.
The flush_completes event becomes TRUE when all outgoing transactions have
been completed and no more incoming messages are outstanding. For
unacknowledged messages, “completed” means that the message has been fully
transmitted by the MAC layer. For acknowledged messages, “completed” means
that the completion code has been processed. In addition, all network variable
updates must be propagated before the flush can be considered complete.
Syntax
#include
void flush (boolean
comm_ignore
);
comm_ignore
Specify TRUE if the Neuron firmware should ignore any
further incoming messages. Specify FALSE if the Neuron
firmware should continue to accept incoming messages.
Example
boolean nothing_to_do;
...
when (nothing_to_do)
{
// Getting ready to sleep
...
flush(TRUE);
}