Formatvalue – Teledyne LeCroy USB Chief - File Based Decode Manual User Manual
Page 12

8
C
OMPUTER
A
CCESS
T
ECHNOLOGY
C
ORPORATION
USB R
EQUEST
D
EFINITION
(.
REQ
) F
ILES
Reference Manual
0x0003=PORT_OVER_CURRENT (Should not clear this
feature!)
0x0004=PORT_RESET (Should not clear this feature!)
0x0008=PORT_POWER
0x0009=PORT_LOW_SPEED (Should not clear this
feature!)
0x0010=C_PORT_CONNECTION
0x0011=C_PORT_ENABLE
0x0012=C_PORT_SUSPEND
0x0013=C_PORT_OVER_CURRENT
0x0014=C_PORT_RESET
}
FormatValue
Use
FormatValue
to specify the output formatting of numeric values. A string
can be included in the decoding definition, too. This entry can also be used to
specify default behaviors. Formatting is controlled using standard C language
printf
format conversion characters. The structure of
FormatValue
is
FormatValue=<string>
The conversion specification is contained within the string. The following example
is taken from the
wIndex
definition for
SET_FEATURE
in the hub.req file:
0x23={
FormatValue=Port # %I
}
Here is an example of possible output:
By changing the
FormatValue
definition as follows,
FormatValue=Cheese (0x%03x)
Figure 2: Resulting trace output when
wValue
for hub.req's
SET_FEATURE
is 0x0008
Figure 3: Resulting trace output for a
FormatValue
definition