5 adddrive instruction, Adddrive instruction – Teledyne LeCroy Voyager Exerciser Generation Script Language Manual User Manual
Page 75
Teledyne LeCroy
Voyager USB 3.0 Exerciser Generation Script Language Reference Manual
66
WaitForDeviceRequest
( bRequest, wIndex, wValue, bmRequestType, device
index )
WaitForDeviceRequest has the following instruction parameters:
bRequest: Default value is 0xFFFFFFFF
(“Don’t care”).
wIndex
: Default value is 0xFFFFFFFF (“Don’t care”).
wValue
: Default value is 0xFFFFFFFF (“Don’t care”).
bmRequestType
: Default value is 0xFFFFFFFF (“Don’t care”).
device index: Specifies the zero-based index of the device to initialize. Default value is 0.
Note: Current version supports only one emulated device.
For an example of the usage for this instruction, please refer to the DeviceEmulation2.usb3g
mass storage sample file provided with the USB Protocol Suite software.
9.2.5 AddDrive Instruction
This instruction sets up Drive Emulation for the device that is being emulated.
Format
AddDrive
( protocol, last lba, cmd ep num, stat ep num, data out ep
num, data in ep num, block size, drive index, device index )
{
DriveData
{
Data = ...
}
}
AddDrive has the following instruction parameters:
protocol: Mass Storage protocol supported by the Drive Emulator. Can be either 0x50 for the
BOT protocol or 0x62 for the UASP protocol. All other values are reserved. Default value is
0x50 for the BOT protocol. Note: only BOT protocol is supported in this release.
last lba: The value of Last LBA as returned by the drive as part of READ CAPACITY SCSI
command. Combined with the block size, determines the capacity of the drive. Default value
is 0 (so, a non-zero value has to be set when calling this instruction). Maximum allowed drive
capacity in this release is 256 MB, which results in 0x80000 maximum for this parameter
assuming block size of 512 bytes.
cmd ep num:The number of the Command (and Data-Out in case of the BOT protocol)
endpoint for the drive. Default value is 0, so it must be assigned a non-zero value. Should
match the value provided in the Endpoint descriptor for the corresponding interface.
stat ep num:The number of the Status (and Data-In in case of the BOT protocol) endpoint for
the drive. Default value is 0, so it must be assigned a non-zero value. Should match the value
provided in the Endpoint descriptor for the corresponding interface.
data out ep num:The number of the Data-Out endpoint for the drive.
Doesn’t have to be
specified in case of the BOT protocol. Default value is 0, so it must be assigned a non-zero
value. Should match the value provided in the Endpoint descriptor for the corresponding
interface.
data in ep num:The number of the Data-In endpoint for the drive.
Doesn’t have to be
specified in case of the BOT protocol. Default value is 0, so it must be assigned a non-zero
value. Should match the value provided in the Endpoint descriptor for the corresponding
interface.