Teledyne LeCroy Conquest User Manual - Users Manual User Manual

Page 238

Advertising
background image

Appendix A

228

Descriptor Block

This block is similar to the Main block of the ProtocolDecode Section in that it
allows you to assign meaningful interpretations of values in each field, to
interpret the raw value by assigning a string that describes that value. The
block consists of one or more statements that have the same usages as those
in the Main block of the ProtocolDecode section. Notice that this block has a
Type input parameter. This must be a

one-byte integer that corresponds to the Descriptor Type (“wValue” field)
parameter of GetDescriptor() and SetDescriptor() requests.

Descriptor(Type)
{

Statement1;
Statement2;

StatementN;

}
End

Example

[ProductName = SBAE]

ProtocolName = "Audio Class Descriptor"

End

[USB Descriptors]

InterfaceSubClass = GetInterfaceSubClass;

Descriptor (0x25)

{

If (ValueOf (InterfaceSubClass) <> 0x02) then

{

/*Decode statements*/

}

End

Advertising