I/o object declarations – Echelon Neuron C User Manual

Page 234

Advertising
background image

214

Syntax Summary

message-event

:

message-event-keyword

(

expression

)

message-event-keyword

message-event-keyword

:

msg_arrives

msg_completes

msg_fails

msg_succeeds
resp_arrives

net-var-event

:

nv-event-keyword

(

net-var-identifier

..

net-var-identifier

)

nv-event-keyword

(

variable-identifier

)

nv-event-keyword


net-var-identifier

:

variable-identifier

[

expression

]

variable-identifier


nv-event-keyword

:

nv_update_completes

nv_update_fails

nv_update_occurs

nv_update_succeeds

timer-event

:

timer_expires (

variable-identifier

)

timer_expires

interrupt-condition

:

clock-edge

clockedge (

clock-edge

)

frequency-value

:

A quoted string value from 2,441.406 to 625,000, in 256 steps.
The default

frequency-value

is “8kHz”. You can append an

optional multiplier: “Hz” (hertz), “kHz” (kilohertz), “MHz”

(megahertz), or “GHz” (gigahertz). See the

Neuron C

Programmer’s Guide

for more information about specifying the

frequency-value

.

I/O Object Declarations

An I/O object declaration is similar to an ANSI C variable declaration. It can
contain an initialization.

io-object-declaration

:

modified-io-object-declarator

variable-identifier

=

assign-expr

modified-io-object-declarator

variable-identifier

The I/O object declaration begins with an I/O object declarator, possibly followed

by one or more I/O object option clauses.

Advertising