beautypg.com

3 iuwbtrace2::getpacket, Iuwbtrace2::getpacket – Teledyne LeCroy UWBTracer Automation Manual User Manual

Page 47

background image

LeCroy

UWBTracer Automation API Reference Manual

Manual Version 3.02

43

4.2.3 IUwbTrace2::GetPacket


HRESULT GetPacket (

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

Retrieves the raw packet representation.

Parameters

packet_number

Number of packet to retrieve

packet

Raw packet representation

number_of_bits

Number of bits in raw packet representation

Return values

ANALYZERCOMERROR_WRONGCALL

When called on multi-segmented traces

ANALYZERCOMERROR_INVALIDPACKETNUMBER

Specified packet number is invalid

Remarks

The “packet” parameter has VT_ARRAY | VT_VARIANT

actual automation type. Each element of this

array has

VT_UI1

automation type. Since the last element of the array may contain extra data, you need

to use the

number_of_bits

parameter to determine actual packet data.