1 ipepacket::getpacketdata, Retrieves a raw packet representation, Parameters – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual
Page 108: Return values, Remarks, Ipepacket::getpacketdata

Teledyne LeCroy
Automation API for PETracer/PETrainer
103
7.2.1 IPEPacket::GetPacketData
HRESULT GetPacketData (
[in] EPacketFormat format,
[out] VARIANT* packet,
[out, retval] long* number_of_bytes )
Retrieves a raw packet representation.
Parameters
format
Data representation format; the EPacketFormat
enumerator has the
following values:
PACKETFORMAT_BYTES
( 0 )
bytes
PACKETFORMAT_SCRAMBLED_BYTES
( 1 )
scrambled bytes
PACKETFORMAT_TEN_BIT
( 2 )
10bit codes
packet
Raw packet data
number_of_bytes
Number of bytes in the packet
Return values
ANALYZERCOMERROR_WRONGCALL
Unknown packet format specified
Remarks
packet parameter has VT_ARRAY | VT_VARIANT
actual automation type. For
PACKETFORMAT_BYTES and PACKETFORMAT_SCRAMBLED_BYTES, each element of this array has the
VT_UI1
automation type. For PACKETFORMAT_TEN_BIT, each element of this array has the
VT_UI2
automation type.