beautypg.com

8 itrace::getpacket, Parameters, Return values – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual

Page 45: Remarks, Itrace::getpacket

background image

Teledyne LeCroy

Automation API for PETracer/PETrainer

40

4.1.8 ITrace::GetPacket


HRESULT GetPacket (

[in] long packet_number,
[in, out] VARIANT* packet,
[out, retval] long* number_of_bytes )

Retrieves a raw packet representation in the PACKETFORMAT_BYTES format (see IPacket interface for
details, Page 85).

Parameters

packet_number

Zero based number of packet to retrieve

packet

Raw packet representation

number_of_bytes

Number of bytes in the raw packet representation

Return values

ANALYZERCOMERROR_INVALIDPACKETNUMBER

Specified packet number is invalid

Remarks

packet parameter has VT_ARRAY | VT_VARIANT

actual automation type. Each element of this array

has the VT_UI1 automation type.