beautypg.com

Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual

Page 87

background image

Teledyne LeCroy

Voyager USB 3.0 Exerciser Generation Script Language Reference Manual

78

Example

Main

{

# Send some packet.

Send

TX_PACKET


# Instructs LTSSM to jump to the Recovery state

.

SetLinkState( RECOVERY )

# Instructs LTSSM to jump to the U0 state

.

SetLinkState( U0 )

# Send the next packet.

Send

TX_PACKET

# Send the next packet.

Send

TX_PACKET

}

Note on Removing/Applying Vbus:

For Host Emulation in order to remove or apply Vbus to the link, use functions Host_RemoveVbus() and
Host_ApplyVbus() defined in the HostVbus.ginc supplied in the Generation include folder.

Example

Main

{


# Remove Vbus

Call

Host_RemoveVbus()


# Keep Vbus off for 800 milliseconds

TxSleep( 800000000 )

# Apply Vbus

Call

Host_ApplyVbus()



}