beautypg.com

2 transaction-specific set of members, Transaction-specific set of members – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual

Page 29

background image

Teledyne LeCroy

Verification Script Engine Reference Manual




Page 29 of 115



5.2.2 Transaction-specific Set of Members

in.TraToken

: Token PID for the transaction. Possible values are:

const PID_OUT = 0x87;
const PID_IN = 0x96;
const PID_SETUP = 0xB4;
const PID_SPLIT = 0x1E;
const PID_PING = 0x2D;
const PID_EXT = 0x0F;

in.Addr

: Device Address value for this Usb transaction.

in.Endp

: Device Endpoint Number value for this Usb transaction.

in.TraCompletionFlag

: Handshake PID for the transaction (if any). Possible values are:

const PID_ACK = 0x4B;
const PID_NAK = 0x5A;
const PID_STALL = 0x78;
const PID_NYET = 0x69;
const PID_ERR = 0x3C;
0xFFFFFFFF

– in case no handshake was sent for the transaction.

in.Complete

: Flag, signaling if the transaction was complete.


in.XferType

: Type of the USB Transfer this transaction belongs to. See Transfer Types for possible values.

in.CtrlDirection

: For a Setup transaction represents the direction of the corresponding Control Transfer.

0 = Host-to-device
1 = Device-to-host

in.FirstInXfer

: This flag is set when the transaction is first in the transfer it belongs to.

in.LastInXfer

: This flag is set when the transaction is last in the transfer it belongs to.

in.Errors

: Error code for the transaction, if any error happened.


If the transaction is a Setup transaction, the following input context members provide values of the
corresponding fields of the USB Device Request:

in.ReqType
in.ReqRecipient
in.bRequest
in.wIndex
in.wValue
in.wLength