beautypg.com

Teledyne LeCroy USB File Based Decode Manual User Manual

Page 13

background image

9

C

OMPUTER

A

CCESS

T

ECHNOLOGY

C

ORPORATION

USB R

EQUEST

D

EFINITION

(.

REQ

) F

ILES

Reference Manual

the output changes to this:

A

FormatValue

entry can also be used somewhat like the 'else' portion of an if-

else statement to specify the formatting of default behaviors. To do this, place the

FormatValue

entry inside the definition for which it will act as the default value.

If the request value matches a value that is specified in the definition, then the
meaning for that value will display in the trace field; otherwise, the

FormatValue

default definition will be used. The following examples are taken from the sample
printer.req file. In the first example, from the

GET_DEVICE_ID

request definition,

there is no specified format for the default value of

wValue

:

wValue={

Depends(bmRequestType)={

0xA1={

FormatValue=Configuration Index is 0x%04X

}

}

}

Therefore, the default, unformatted trace output for the wValue field displays as
such:

However, when

FormatValue

is used to control its appearance, as in the

following example,

wValue={

Depends(bmRequestType)={

0xA1={

FormatValue=Configuration Index is 0x%04X

}

}
FormatValue=GET_DEVICE_ID default is %d

}

Figure 4: Resulting trace output for the altered

FormatValue

definition

Figure 5: Default trace
output with no formatting
specifications