beautypg.com

Usbreqstr, Usbdesctooltipstr, Usbdatadecodestr – Teledyne LeCroy USB Script Decode Manual User Manual

Page 65: Usbdechdrtype, Usbdechdrlen

background image

59

C

HAPTER

14

CATC Scripting Language for USB

USB Decoders

UsbReqStr

Value: This will contain the string you build up for the Request portion of
the Request text decoding when you have selected “UsbDecodeType =1”.
This string will be displayed in the left-hand pane of the text decode dialog.

UsbDescTooltipStr

Value: This will contain the string you build up for the Descriptor portion
of the Request text decoding when you have selected “UsbDecodeType
=1”
. This string should only contain an amount appropriate for displaying
as a ToolTip.

UsbDataDecodeStr

Value: This will contain the string you build up for the Data portion of the
Endpoint text decoding, or the Descriptor portion of a Request decoding
when you have selected “UsbDecodeType =1”. This string will be dis-
played in the text decoding dialog. If this is an endpoint decode, it will be
displayed in the only pane of the dialog. If this is a request decode, it will
display in the right-hand side pane of the dialog.

UsbDecHdrType

Value: Used to pass explicit information to the decoder to help decoding
where the normal data byte stream does not contain enough information or
context to allow it to be decoded all by itself. Currently, only the value 2 is
used in the case of Mass Storage Decoding. This tells the software that this
decoder needs the SCSI or UFI Opcode of the previous transfer to help
determine if this is supposed to be a response to a SCSI/UFI Command that
was just sent. Without this, it would be impractical to distinguish a normal
READ data stream from a SCSI/UFI control request response. This item
requires explicit support in the software, so you cannot use it arbitrarily.

UsbDecHdrLen

Value: This specifies the length (up to 8 bytes) of additional context infor-
mation that will be passed in conjunction with the use of "UsbDecH-
drLen".
This item requires explicit support in the software, so you cannot
use it arbitrarily. It is currently only used for Mass Storage decode, and in
that case has a value of 1.