beautypg.com

Teledyne LeCroy PETrainer Scripting Language Reference Manual User Manual

Page 19

background image

Teledyne LeCroy

PETrainer Scripting Language

14

Example 1:

This example shows how to send a PME_Turn_Off Power Management Message while emulating the
Root Complex.

Packet = TLP {

TLPType = Msg

MessageCode = PME_Turn_Off

MessageRoute = FromRootComplex

}


Example 2:

This example shows how to send a Vendor_Defined_Type0 Vendor Defined Message to the function 1
of device 1 on bus 0.

Packet = TLP {

TLPType = Msg

MessageCode = Vendor_Defined_Type0

MessageRoute = ByID

DeviceID = (0:1:1)

}