Introduction – Echelon Neuron C User Manual

Page 60

Advertising
background image

40

Functions

Introduction

This chapter lists Neuron C functions, providing syntax information,

descriptions, and examples of each function. Some functions are

built-in

functions. This means they are used as if they were function calls, but they are

permanently part of the Neuron C language and are implemented by the

compiler without necessarily mapping into an actual function call. Some built-in
functions have special behaviors depending on their context and usage. The rest

of the functions are library calls. Some library calls have function prototypes in

one of the standard include files, as noted. The standard include files are:

<a2d.h>

<access.h>

(this file includes <addrdefs.h>)

<addrdefs.h>

<byte.h>

<control.h>
<float.h>

<io_types.h>

<limits.h>
<mem.h>

<modnvlen.h> (automatically

included)

<msg_addr.h>
<netdbg.h>

<netmgmt.h>

<nm_ckm.h>
<nm_err.h>

<nm_fm.h>
<nm_inst.h>

<nm_mod.h>

<nm_model.h>
<nm_nmo.h>

<nm_rqr.h>

<nm_sel.h>
<nm_ste.h>

<nm_sub.h>

<nm_wch.h>
<psg.h>

<psgreg.h>
<s32.h>

<status.h>

<stddef.h>
<stdlib.h>

<string.h>

Functions not defined in any of the above include files derive their prototypes
from <echelon.h>, an include file that is automatically incorporated in each

compilation. Except for <echelon.h>, you must incorporate the necessary include

file (or files) to use a function. Although some of the following function
descriptions list both an include file and a prototype, you should only specify the

#include directive. The prototype is contained in the include file, and is shown

here only for reference.

The functions listed in this chapter include floating-point and extended (32-bit)

precision arithmetic support. A general discussion of the use of floating-point

Advertising