beautypg.com

Descriptorsubtype, Classcode, Descriptorsubtype classcode – Teledyne LeCroy USB File Based Decode Manual User Manual

Page 31

background image

27

C

OMPUTER

A

CCESS

T

ECHNOLOGY

C

ORPORATION

USB D

ESCRIPTOR

D

EFINITION

(.

DSC

) F

ILES

Reference Manual

WordValue={
0x01=DEVICE type
0x02=CONFIGURATION type
0x04=INTERFACE type
0x05=ENDPOINT type

...
}
...
Data={

Length=?
Descriptors=TRUE

}

When

wValue

is

0x01

, the decoder will look for a descriptor definition with a

DescriptorType

value of

0x01

. If found, the descriptor information will be

decoded and displayed in the trace output.

DescriptorSubtype

This entry is used only in conjunction with a

DescriptorType

entry. Its value

is the assigned subtype code. This keyword was introduced specifically to support
the descriptor format extension adopted by the Audio device class. Any other class
or vendor descriptor specification based on this extension may utilize the

DescriptorSubType

keyword as well.

ClassCode

This entry is used only when the referring .req file contains

GroupType=Class

.

The

ClassCode

value is the USB-assigned class code. Its value should match the

ClassCode

value in the .req file that references the descriptor definition.

Example from hub.req:

GroupName=Hub Class
GroupType=Class
ClassCode=0x09

Corresponding example from hub.dsc:

DescriptorName=HUB
DescriptorType=0x29
ClassCode=0x09