This instruction tells the Voyager USB 3.2 Exerciser to wait for a specified external/internal event or a specified Link State.
WaitEvent [( event_type, event_state, event_sub_state )]
|
Parameters |
|
|---|---|
|
event_type |
Type of the event [ET_TRIGGER_IN or ET_LINK_STATE] on which to wait
|
|
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). |
|
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 this 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 )
# Wait for LFPS Polling from the DUT side.
WaitEvent( ET_DUT_TRAFFIC, LFPS_POLLING )
}