Example, Reverse( ) built-in function, Syntax – Echelon Neuron C User Manual

Page 147

Advertising
background image

Neuron C Reference Guide

127

status_version_number

The version number, which reflects the Neuron firmware
version.

status_error_log

The most recent error logged by the Neuron firmware or

application. A value of 0 indicates no error. An error in
the range of 1 to 127 is an application error and is unique

to the application. An error in the range of 128 to 255 is a
system error (system errors are documented in the

Neuron Tools Errors Guide

). The system errors are also

available in the <nm_err.h> include file.

status_model_number

The model number of the Neuron Chip or Smart

Transceiver. The value for this byte is one of the
following:

0x00

for all Neuron 3150 Chips, and

for an FT 3150 Smart Transceiver

0x01

for a PL 3150 Smart Transceiver

0x08

for Neuron 3120 Chip

0x09

for Neuron 3120E1 Chip

0x0A

for Neuron 3120E2 Chip

0x0B

for Neuron 3120E3 Chip

0x0C

for Neuron 3120A20 Chip

0x0D

for Neuron 3120E5 Chip

0x0E

for Neuron 3120E4 Chip

or an FT 3120 Smart Transceiver

0x0F

for a PL 3120 Smart Transceiver

0x11

for a PL 3170 Smart Transceiver

0x20

for an FT 5000 Smart Transceiver

0x21

for a Neuron 5000 Processor

Example

For an example of the use of this function, see Chapter 7,

Additional Features,

of

the

Neuron C Programmer's Guide

.

reverse( )

Built-in Function

The reverse( ) built-in function reverses the bits in

a

.

Syntax

unsigned int reverse (unsigned int

a

);

Example

void f(void)
{
int

value;

...

value = 0xE3;

...

Advertising