Additional request keywords, Bmrequesttype, Bytes(x, y) – Teledyne LeCroy USB File Based Decode Manual User Manual
Page 17: Color(r,g,b), Databytes(x, y)
![background image](/manuals/353629/17/background.png)
13
C
OMPUTER
A
CCESS
T
ECHNOLOGY
C
ORPORATION
USB R
EQUEST
D
EFINITION
(.
REQ
) F
ILES
Reference Manual
Additional Request Keywords
The keywords
Define
,
GroupName
,
GroupType
,
Standard
,
Class
,
Vendor
,
ClassCode
,
VendorID
,
ProductID
,
AllRequests
,
Request(...)
,
wValue
,
wIndex
,
Data
,
WordValue
,
FormatValue
,
and
Bitmap
have already been covered.
However, there are a number of additional keywords available to further define
requests. This section details the usage of those remaining keywords.
bmRequestType
Use
bmRequestType
to refer to the actual bmRequestType bitmap value. See
” on page 15 for examples of its use.
Bytes(x, y)
Bytes(x, y)
is used to identify a field within the Data stream. This field can be
subsequently decoded using one of the decoding keywords. The
x
and
y
values
represent the bytes to decode:
Data=
{
Bytes(0,1)=
{
FormatValue=The first two bytes are 0x%4X
}
}
A question mark (
?
) may be used to represent the
y
value. This will cause data
decoding to start at the byte specified by the
x
value, and continue all the way to the
last byte in the data. This example starts decoding at byte 5 and also decodes all data
that follows byte 5.
Bytes(5,?)
Color(R,G,B)
Use
Color(R,G,B)
to specify a color for the header portion of a Data field. The
color is represented inside the parentheses by its red, green and blue values. For
example,
Color(255, 0, 0)
will make a red header field.
Databytes(x, y)
Use
Databytes(x, y)
to identify a field in the Data stream on which a
Depends(...)
definition for another Data field should be based.