v10.50 v10.55 Alpha v10.54 Alpha v10.53 Alpha v10.52 Alpha v10.51 Alpha
v10.50 v10.55 Alpha v10.54 Alpha v10.53 Alpha v10.52 Alpha v10.51 Alpha

Wait Event Instruction

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
(defined in gen_constants.ginc).

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 )
}