beautypg.com

Usbvendorid, Usbproductid, Usbendpid – Teledyne LeCroy USB Script Decode Manual User Manual

Page 64: Usbignoresetupdata, Usblsbtomsb

background image

58

C

HAPTER

14

CATC Scripting Language for USB

USB Decoders

the Mass Storage Class provides for Protocol 0x50 for Bulk-Only Trans-
port, and Protocol 0 for CBI (Control/Bulk/Interrupt) Transport.

UsbVendorId

Value: If defined, it is provided for by the Vendor as registered with the
USB IF. This is used in the case where you have vendor-specific decoding.
For example, if CATC created a file to decode it’s communication for it’s
analyzer’s USB connection, we would use our USB-IF identification num-
ber of 1059.

UsbProductId

Value: If defined, it is provided for by the Vendor. Used to distinguish
decoding based on product-specific differences.

UsbEndpId

Value: You must assign a unique value between 1 and 127 to differentiate
endpoint decoders used for the same Class/Vendor group. This value has
nothing to do with the actual Endpoint value the device will use for this
particular decoder, it is merely a mechanism used by the software to avoid
confusion over the mapping of an endpoint decoder to a particular instance
of an endpoint.

UsbIgnoreSetupData

Value: 0(Default) means that the data being passed to this request decoder
should include the 8 bytes of the Setup Packet. If the value is 1, the data
passed to this decoder starts with that found in the first DATA packet. This
is used to provide compatibility with decoders such as the Bluetooth HCI
decoder, which is built to be compatible with other non-USB CATC prod-
ucts which don’t have an 8 byte ‘header’. If this variable is not declared,
the default behavior is applied by Software: the 8 byte header is included.

UsbLsbToMsb

Value: 0(Default) means the data passed to this decoder should have its
most significant bit in bit position 7 and it’s least significant bit in bit posi-
tion 0. If 1, the opposite is true: the data is expected to be LsbToMsb. If
this variable is not declared, the default (0) behavior is applied by Soft-
ware: the bytes are passed as MsbToLsb, otherwise known as “normal”.