Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual
Page 90
Teledyne LeCroy
Voyager USB 3.0 Exerciser Generation Script Language Reference Manual
81
ITP or LMP packets. Specific attributes of the packet or number of packets to wait for can be
specified by a preceding PrepareWaitPacket instruction (see next section).
Note: If the PrepareWaitPacket instruction was not issued before this instruction, then all
packets received before this instruction are lost and not processed.
Format
WaitPacket
[
( packet_count, start_at_last_send_pkt )
]
The parameters are:
o Packet_Count: Number of packets for which to wait before proceeding. If the packet_count
parameter is omitted, the instruction uses value 1 by default.
o Start_At_Last_Send_Pkt: If this parameter is not set to 0, it instructs the Exerciser to
prepare to wait for incoming packets at the time it executes the Send Packet instruction and
transmits a packet. This is equivalent to placing PrepareWaitPkt just before the previous
Send Packet instruction. This guarantees that the Exerciser does not miss an incoming
packet from its USB 3.0 Link partner while it switches from the Send Packet to the
Wait Packet instruction.
If the start_at_last_send_pkt parameter is omitted, the instruction uses value 1 by default.
If this parameter is set to 0, the Exerciser prepares to wait for incoming packets at the time it
executes the WaitPacket instruction. This is equivalent to placing PrepareWaitPkt just
before the WaitPacket instruction.
Example
Set
Mode = DEVICE
# Set ‘Device’ mode
.
Main
{
# Response To GetDescriptor(Device)
# Wait for HOST SETUP
.
WaitPacket
Send
TP_ACK
{
DevAddr =
0
Endp =
0
dir = HOST_TO_DEVICE
SeqNum =
1
NumP =
1
}
# Wait for HOST ACK.
WaitPacket