Teledyne LeCroy Conquest User Manual - Users Manual User Manual

Page 248

Advertising
background image

Appendix A

238

Descriptor (0x21)

{

bLength = AddField(CURPOS,8,"bLength","Numeric expression that is the

total size of the HID descriptor","bLength");

bDescriptorType = AddField(CURPOS, 8,"bDescriptorType", "Constant

name specifying type of HID descriptor",

"bDescriptorType");

bcdHID = AddField(CURPOS, 16,"bcdHID", "Numeric expression

identifying the HID Class Specification release",

"bcdHID");

bCountryCode = AddField(CURPOS, 8,"bCountryCode", "Numeric expression

identifying country code of the localized

hardware","bCountryCode");

bNumDescriptors = AddField(CURPOS, 8,"bNumDescriptors", "Numeric

expression specifying the number of class

descriptors (always at least one i.e. Report

descriptor.)","bNumDescriptors");

Repeat Count = ValueOf(bNumDescriptors)

{

bDescriptorType = AddField(CURPOS, 8,"bDescriptorType",

"Constant name specifying type of HID descriptor",

"bDescriptorType");

wDescriptorLength = AddField(CURPOS, 16,"wDescriptorLength",

"Numeric expression that is the total size of the

Report descriptor", "wDescriptorLength");

}

If(Not EOD) Then

{

Unexpected = AddField(CURPOS, LengthOf(INPUTDATA)-

CURPOS,"Unexpected", "Unexpected", "Unexpected");

}

}

Descriptor (0x23)

{

bNumber = AddField(CURPOS, 8, "bNumber","Numeric expression

specifying the number of Physical Descriptor sets. Do not

include Physical Descriptor 0 itself in this

number","bNumber");

bLength = AddField(CURPOS, 16, "bLength","Numeric expression

identifying the length of each Physical

descriptor","bLength");

bPhysicalInfo = AddField(CURPOS,8 ,"bPhysicalInfo","bPhysicalInfo",

"bPhysicalInfo");

SubFieldOf(bPhysicalInfo)

{

Preference = AddField(0, 5, "Preference","The Preference field

indicates whether the descriptor set contains preferred or

alternative designator information. A vendor defines the

Preference value of 0 for the most preferred or most typical set

of physical information. Higher Preference values indicate less

preferred descriptor sets", "Preference");

Bias = AddField(5, 3, "Bias","The Bias field indicates which

hand the descriptor set is characterizing. This may not

apply to some devices", "Bias");

}

Repeat Count = ValueOf(bNumber)

{

Advertising