Timer declarations, Type keywords – Echelon Neuron C User Manual

Page 226

Advertising
background image

206

Syntax Summary

declaration-specifier-list

:

declaration-specifier-list declaration-specifier

declaration-specifier

declaration-specifier

:

timer-type

type-specifier

storage-class-specifier

cv-type-qualifier

configuration-property-specifier

msg_tag

net-var-types

connection-information

type-specifier

:

type-identifier

type-keyword

struct-or-union-specifier

enum-specifier

Timer Declarations

Timer objects are declared with one of the following sequences of keywords.

Timer objects are specific to Neuron C.

timer-type

:

mtimer [ repeating ]

stimer

[ repeating ]

Type Keywords

The data type keywords can appear in any order. Floating-point types (double

and float) are not supported in Neuron C.

type-keyword

:

char

double

( Reserved for future implementations )

float

( Reserved for future implementations )

int

long
quad

( Reserved for future implementations )

short

signed
unsigned

void
In addition to the above type keywords, the extended arithmetic library defines
two data types as structures, and these can be used as if they were also a

type-

keyword

. The s32_type is a signed 32-bit integer, and the float_type is an

IEEE754 single precision floating-point value.
s32_type

float_type

Advertising