Functional block declarations – Echelon Neuron C User Manual

Page 236

Advertising
background image

216

Syntax Summary

select (

io-object-pin-name

)

short
single_tc

slave

slave_b

__slow

sync (

io-object-pin-name

)

synchronized (

io-object-pin-name

)

timing(

constant-expr

,

constant-expr

,

constant-expr

)

twostopbits
use_stop_condition
The clock-edge option is specified using either the plus or the minus character, or

both characters in the case of a dual-edge clock. The dual-edge clock (+-) is not
available on minor model 0 of the Neuron 3150 Chip.

clock-edge

:

one

of

+ | - | +-

Functional Block Declarations

The following is Neuron C syntax for functional block declarations. The

functional block is based on a functional profile definition from a resource file.

functional-block-declaration

:

fblock-main fblock-name-section fblock-property-list-declaration

fblock-main fblock-name-section

fblock-main

:

fblock

FPT-identifier

{

fblock-body

}

fblock

FPT-identifier

{ }

FPT-identifier

:

variable-identifier

The body of the functional block declaration consists of a list of network variable
members that the functional block implements. At the end of the list, the

functional block declaration can optionally declare a director function.

fblock-body

:

fblock-member-list

fblock-director-declaratio

n

fblock-member-list

fblock-director-declaration

fblock-member-list

:

fblock-member-list

fblock-member

;

fblock-member

;

fblock-member

:

net-var-identifier member-implementation

member-implementation

:

implements

variable-identifier

implementation_specific (

constant-expr

)

variable-identifier

Advertising