14 sendusb2tokenpackets(), Oken, Ackets – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual
Page 51
Teledyne LeCroy
Verification Script Engine Reference Manual
Page 51 of 115
8.14 SendUsb2TokenPackets()
This function specifies more precise tuning for USB2 Token packets.
Format:
SendUsb2TokenPackets (pid, address, endpoint)
Parameters:
pid
Specifies that only Token packets with the specified PID value are sent.
The value _ANY means any PID is accepted.
The possible PID 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;
address
Specifies that only Token packets with the specified Address value are sent.
The value _ANY means any Address is accepted.
endpoint
Specifies that only Token packets with the specified Endpoint value are sent.
The value _ANY means any Endpoint is accepted.
Example:
# Send any Token packet.
SendUsb2TokenPackets();
# Send all SETUP packets.
SendUsb2TokenPackets (PID_SETUP);
# Send all IN tokens for address 5 endpoint 1.
SendUsb2TokenPackets (PID_IN, 3);
# Send all OUT tokens for address 3.
SendUsb2TokenPackets (PID_OUT, 5, 1);
# Send all token packets for endpoint zero.
SendUsb2TokenPackets (_ANY, _ANY, 0);