
17
COMPUTER ACCESS TECHNOLOGY CORPORATION USB REQUEST DEFINITION (.REQ) FILES
Reference Manual
FormatValue=Other (%0x02X)
}
}
This takes the current value of wValue, bitwise ANDs it with the 0xFF00 binary
value, and compares the result with the entries within the brackets in order to find
the branch it needs to follow.
HIBYTE and LOBYTE
HIBYTE and LOBYTE can be used with Depends(...) to mask wIndex and
wValue values. The Mask Value example could, alternatively, be written this way:
wValue=
{
Depends(HIBYTE(wValue))=
{
0x01=
{
WordValue=
{
0x01=One
}
}
0x02=
{
FormatValue=Two %d
}
FormatValue=Other (%0x02X)
}
}
Descriptors
Use Descriptors in a Data construct when the data in the data stage of this
request is a USB-defined descriptor or set of descriptors.
Data=
{
Length=?
Descriptors=TRUE
}
When the value of Descriptors is TRUE, the Data field will be labelled “De-
scriptors” and the descriptor information can be viewed by positioning the mouse
cursor over the Data field name. This action causes the Data field's tool tip window
to be displayed. The information can also be viewed in the decoding dialog window.
Comentarios a estos manuales