Sendusb2Tokenpackets() - LeCroy USB Protocol Suite Reference Manual

Verification script engine
Table of Contents

Advertisement

LeCroy Corporation

8.14 SendUsb2TokenPackets()

This function specifies more precise tuning for USB2 Token packets.
Format:
SendUsb2TokenPackets (pid, address, endpoint)
Parameters:
pid
address
endpoint
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);
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;
Specifies that only Token packets with the specified Address value are sent.
The value _ANY means any Address is accepted.
Specifies that only Token packets with the specified Endpoint value are sent.
The value _ANY means any Endpoint is accepted.
Verification Script Engine Reference Manual
Page 49 of 107

Advertisement

Table of Contents
loading

Table of Contents