Outgoing application buffers, Outgoing network buffers – Echelon Neuron C User Manual

Page 206

Advertising
background image

194 Memory

Management

buffers; the second directive specifies that the compiler should define exactly 114-

byte buffers.

#pragma net_buf_in_size 66, minimum

#pragma net_buf_in_size 114, final

As the example shows, you can specify a final value that is larger than a

previously specified minimum value. However, if you specify a final value that is
smaller than a previously specified minimum value, the compiler issues an error

message (NCC#593).

#pragma net_buf_in_size 114, minimum

#pragma net_buf_in_size 66, final
// ERROR – final smaller than minimum

Outgoing Application Buffers

These compiler directives set the size and number of nonpriority and priority

buffers between the application and network processors for outgoing messages

and network variables. See Table 14 on page 196 for a list of default and
allowable non-default values.
#pragma app_buf_out_size

n

[

, modifier

]

Sets the application buffer size (in bytes) for outgoing priority and

nonpriority application messages and network variables.

#pragma app_buf_out_count

n

[

, modifier

]

Sets the number of application buffers available for outgoing nonpriority

application messages and network variables.

#pragma app_buf_out_priority_count

n

[

, modifier

]

Sets the number of application buffers available for outgoing priority

application messages and network variables.

Outgoing Network Buffers

These compiler directives set the size and number of nonpriority and priority
buffers between the network and MAC processors for outgoing application

messages and network variables. See Table 14 on page 196 for a list of default

and allowable non-default values.

#pragma net_buf_out_size

n

[

, modifier

]

Sets the network buffer size (in bytes) for outgoing priority and nonpriority
application messages and network variables. A minimum size of 42 bytes is

required to respond correctly to network management messages from

network tools.

#pragma net_buf_out_count

n

[

, modifier

]

Sets the number of network buffers available for outgoing nonpriority

messages and network variables.

#pragma net_buf_out_priority_count

n

[

, modifier

]

Advertising