SysEthernetBurstReceiveReserve (FUN)

FUNCTION SysEthernetBurstReceiveReserve : UDINT

Reserves memory slots to receive ethernet frames. Must be called before SysEthernetBurstReceiveGetMemory.

InOut:

Scope

Name

Type

Comment

Return

SysEthernetBurstReceiveReserve

UDINT

Returns how many packets are actually available. The value will be between 0 and “count”, inclusive.

Input

hAdapter

SysTypes.RTS_IEC_HANDLE

Handle of the adapter. Must be retrieved using SysEthernetAdapterOpen

count

UDINT

How many slots should be reserved at max

pRes

POINTER TO SysTypes.RTS_IEC_RESULT

Result of the operation