beautypg.com

11 appendix a – generation script example – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual

Page 117

background image

LeCroy Corporation

UWBTrainer Exerciser - Generation Script Language Reference Manual

109

11 Appendix A – Generation Script Example

#**********************************************************
# WUSBMassSCSIInquiry.uwbg #
#**********************************************************
# This file contains a generation script which generates
# WUSB Transfer that transfers Mass Storage class SCSI Inquiry
# command over Wireless USB.
#**********************************************************

# Include main definitions.
# Some WUSB templates are defined in this include file.

%include

"Generation\Include\UwbGeneration.ginc"

#=================================================#
# Constants #
#=================================================#

#=================================================#
# Data Patterns #
#=================================================#

DataPattern

SetAddrReq = {

00 05 00 00 00 00 00 00

}

DataPattern

INQUIRY_CDB = {

55 53 42 43 C8 81 4F 81 24 00 00 00 80 00 06 12

00 00 00 24 00 00 00 00 00 00 00 00 00 00 00

}

DataPattern

INQUIRY_RESP = {

00 80 00 01 75 00 00 00 4D 2D 53 79 73 20 20 20

44 69 73 6B 4F 6E 4B 65 79 20 20 20 20 20 20 20

32 2E 30 31

}

#=================================================#
# Frame and structure templates #
#=================================================#

struct

DeliveryID

{
Sel :

1

=

1

# Stream Index

Val :

3

}