SysEthernetBurstReceiveGetMemory (FUN)ΒΆ

FUNCTION SysEthernetBurstReceiveGetMemory : RTS_IEC_RESULT

Writes the address with data into ppData and the length of the data into pLen. Must be called after SysEthernetBurstReceiveReserve and before SysEthernetBurstReceiveRelease.

InOut:

Scope

Name

Type

Comment

Return

SysEthernetBurstReceiveGetMemory

RTS_IEC_RESULT

Returns the result of the operation

Input

hAdapter

SysTypes.RTS_IEC_HANDLE

Handle of the adapter. Must be retrieved using SysEthernetAdapterOpen

index

UDINT

Index of the frame. Must be between 0 and the result of SysEthernetBurstReceiveReserve

ppData

POINTER TO POINTER TO BYTE

Pointer to a variable where the address of the data will be stored. If the program wants to continue using the data, it must be copied to a local buffer

pLen

POINTER TO UDINT

Pointer to a variable where the length of the data will be stored