Echelon Neuron C Manual do Utilizador Página 90

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 267
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 89
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 <access.h>
const address_struct *access_address (int
index
);
Example
#include <access.h>
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.
Vista de página 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 266 267

Comentários a estes Manuais

Sem comentários