Syntax, Example, Access_domain( ) function – Echelon Neuron C User Manual

Page 91: Access_nv( ) function

Advertising
background image

Neuron C Reference Guide

71

Syntax

#include <access.h>

const alias_struct *access_alias (int

index

);

Example

#include <access.h>
alias_struct alias_copy;
void f(void)
{

alias_copy = *(access_alias(2));

}

access_domain( )

Function

The access_domain( ) function returns a const pointer to the domain 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 <access.h>

const domain_struct *access_domain (int

index

);

Example

#include <access.h>
domain_struct domain_copy;

void f(void)
{

domain_copy = *(access_domain(0));

}

access_nv( )

Function

The access_nv( ) function returns a const pointer to the network variable

configuration 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

Neuron 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 <access.h>

const nv_struct *access_nv (int

index

);

Advertising