13 wait event instruction, Wait event instruction – Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual
Page 93
![background image](/manuals/353648/93/background.png)
Teledyne LeCroy
Voyager USB 3.0 Exerciser Generation Script Language Reference Manual
84
9.13 Wait Event Instruction
This instruction tells the Voyager USB 3.0 Exerciser to wait for a specified external/internal event
or a specified Link State.
Format
WaitEvent
[
( event_type, event_state, event_sub_state )
]
The parameters are:
o event_type: Type of the event [ET_TRIGGER_IN or ET_LINK_STATE] on which to wait
(defined in gen_constants.ginc)
o event_state: State of the event on which to wait (USB3 Link State for the Link State event
type, applicable only to Link State event (all specific constants are defined in
gen_constants.ginc)
o event_sub_state: Link SubState value, applicable only to Link State event.
(specific constants are defined in gen_constants.ginc)
A “don’t care” value of USB3_ANY (defined in gen_constants.ginc) can be used for the event_sub_state
parameter.
Example
Main
{
# Wait for a trigger in.
WaitEvent( ET_TRIGGER_IN )
# Wait for the Configuration substate of the Recovery link state.
WaitEvent( ET_LINK_STATE, RECOVERY, RECOVERY_CONFIGURATION )
}