
30
COMPUTER ACCESS TECHNOLOGY CORPORATION USB DESCRIPTOR DEFINITION (.DSC) FILES
Reference Manual
FormatValue, WordValue, and Bitmap
The structure of FormatValue, WordValue, and Bitmap entries is the same
as in a .req file. However, the output for all three is displayed in the Description
column of the descriptor information box. For example:
; Example1 description
Offset(2)={
FormatValue=This is the description for Example1
}
; Example2 description
Offset(4)={
WordValue={
0x00=This is the description for Example2
}
}
Additional Descriptor Keywords
In addition to the keywords used in the basic structure of a .dsc file, there are a few
more keywords specific to these files. They are described in this section.
BCD
Use BCD to set up decoding of a Binary-Coded Decimal. The only value for BCD
is TRUE:
BCD=TRUE
Now, with BCD set to TRUE, two conversion specifications can be used in a
FormatValue entry, so that both the first byte and the second byte of the Binary-
Coded Decimal can be displayed:
Figure 17: FormatValue, WordValue and Bitmap entries are displayed in
the Description column of the descriptor information box
Komentarze do niniejszej Instrukcji