beautypg.com

16 sendusb2hskpackets(), Ackets – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual

Page 53

background image

Teledyne LeCroy

Verification Script Engine Reference Manual




Page 53 of 115



8.16 SendUsb2HskPackets()


This function specifies more precise tuning for Handshake packets.

Format:

SendUsb2HskPackets(pid)


Parameters:

pid

Specifies that only Data packets with the specified data PID are sent.
The value _ANY means any data packet is accepted.
The follofwing PID values apply:

const PID_ACK

= 0x4B;

const PID_NAK

= 0x5A;

const PID_STALL = 0x78;
const PID_NYET = 0x69;
const PID_ERR

= 0x3C;

Example:

# Send any handshake.

SendUsb2HskPackets();

# Send only STALL handshakes.

SendUsb2HskPackets (PID_STALL);