Manual

viii
nv_update_succeeds Event ................................................................... 13
Syntax .............................................................................................. 14
Example 1 – Event for a Single Network Variable....................... 14
Example 2 – Event for a Network Variable Array........................ 14
Example 3 – Event for a Range of Network Variables ................. 14
offline Event........................................................................................... 15
Syntax .............................................................................................. 15
Example ........................................................................................... 15
online Event ........................................................................................... 16
Syntax .............................................................................................. 16
Example ........................................................................................... 16
reset Event ............................................................................................. 16
Syntax .............................................................................................. 17
Example ........................................................................................... 17
resp_arrives Event................................................................................. 17
Syntax .............................................................................................. 17
Example ........................................................................................... 17
timer_expires Event .............................................................................. 17
Syntax .............................................................................................. 17
Example ........................................................................................... 18
wink Event ............................................................................................. 18
Syntax .............................................................................................. 18
Example ........................................................................................... 18
Chapter 2. Compiler Directives ....................................................................... 19
Compiler Directives ..................................................................................... 20
Pragma Directives ................................................................................. 20
Other Directives..................................................................................... 37
Chapter 3. Functions ....................................................................................... 39
Introduction.................................................................................................. 40
Overview of Neuron C Functions .........................................................41
Execution Control ...........................................................................41
Network Configuration ................................................................... 42
Integer Math ................................................................................... 43
Floating-Point Math ....................................................................... 46
Strings.............................................................................................. 48
Utilities ............................................................................................ 48
Input/Output ...................................................................................50
Signed 32-Bit Integer Support Functions ............................................ 52
Binary Arithmetic Operators ......................................................... 53
Unary Arithmetic Operators .......................................................... 54
Comparison Operators....................................................................55
Miscellaneous Signed 32-bit Functions ......................................... 56
Integer Conversions ........................................................................ 56
Conversion of Signed 32-bit to ASCII String ................................ 57
Conversion of ASCII String to Signed 32-bit ................................ 57
Signed 32-Bit Performance............................................................. 57
Floating-Point Support Functions........................................................ 58
Binary Arithmetic Operators ......................................................... 61
Unary Arithmetic Operators .......................................................... 62
Comparison Operators....................................................................63
Miscellaneous Floating-Point Functions ....................................... 64
Floating-Point to/from Integer Conversions.................................. 64