beautypg.com

Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual

Page 123

background image

LeCroy Corporation

UWBTrainer Exerciser - Generation Script Language Reference Manual

115

# Wait for Data IN frame from Device to Host: SCSI Inquiry Response.

WaitRxFrame

()

{
WUSB_DATA_TX
{
MoreFrms =

1

DestAddr = host_addr
SrcAddr = dest_address
EndP = endpoint
Data = INQUIRY_RESP
}
}

$blank_dt_cta = WDTCTA

# Create a blank WDTCTA structure confirming that

# you received the segment #0.

{
DevID =

128

Direction = IN
EndP =

4


DINAck =

2

# 2 (bit 1 is set) means that you received the segment

# 0 and are ready for the segment #1, if any.

}

$cta_ie = WUSB_IE
{
IE_ID = WCTA_IE
Length = (

fld_size

( Length ) +

fld_size

( IE_ID ) +

pkt_size

( $blank_dt_cta ) +

pkt_size

( $eol_cta ) ) / 8


Data = $blank_dt_cta + $eol_cta
}

# Send Handshake MMC frame from Host to Device confirming that you
# received all the data.

Send

WUSB_MMC

{
DestAddr =

0x00FE

SrcAddr = host_addr

# Use a generation procedure parameter as a

# local variable.


NextMMCTime =

3

WUSBTimeStmp =

25


Data = $cta_ie + $ca_ie + $host_info_ie

# Combined payload containing

# several IEs

}

}