Syntax, Example, Access_address( ) function – Echelon Neuron C User Manual
Page 90: Access_alias( ) function
70
Functions
Syntax
type
abs (
a
);
Example
int i;
long l;
void f(void)
{
i = abs(-3);
l = abs(-300);
}
access_address( )
Function
The access_address( ) function returns a const pointer to the address structure
that corresponds to the index parameter. This pointer can be stored, used to
perform a structure copy, or used in other ways common to C pointers, except
that the pointer cannot be used for writes.
See the ISO/IEC 14908 (ANSI/EIA/CEA-709.1)
Control Network Specification
for
a description of the data structure.
Syntax
#include
const address_struct *access_address (int
index
);
Example
#include
address_struct addr_copy;
void f(void)
{
addr_copy = *(access_address(2));
}
access_alias( )
Function
The access_alias( ) function returns a const pointer to the alias structure that
corresponds to the index parameter. This pointer can be stored, used to perform
a structure copy, or used in other ways common to C pointers, except that the
pointer cannot be used for writes.
The Neuron 3120 Chip with version 4 firmware does not support aliasing.
See the ISO/IEC 14908 (ANSI/EIA/CEA-709.1)
Control Network Specification
for
a description of the data structure.