9 itrace::getpacket, Itrace::getpacket – Teledyne LeCroy USB Analyzer Automation Manual User Manual
Page 54

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite
54
3.1.9 ITrace::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_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 the actual packet data.