beautypg.com

8 itrace::getpacket – Teledyne LeCroy SAS_SATA Tracer_Trainer Automation API Manual User Manual

Page 37

background image

LeCroy Corporation

Automation API for SAS/SATATracer/Trainer

Manual Version 1.11

37

4.1.8 ITrace::GetPacket


HRESULT GetPacket (

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

Retrieves a raw packet representation in the PACKETFORMAT_BYTES format
(see

IPacket Interface

for details).

Parameters

packet_number

Zero based number of packet to retrieve


packet

Raw packet representation


number_of_bits

Number of bits in the 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 the

VT_UI1

automation type.

Example


VBScript:

ID = Analyzer
CLASSID = "clsid: 297CD804-08F5-4A4F-B3BA-779B2654B27C" >