beautypg.com

Nested request definitions – Teledyne LeCroy USB File Based Decode Manual User Manual

Page 27

background image

23

C

OMPUTER

A

CCESS

T

ECHNOLOGY

C

ORPORATION

USB R

EQUEST

D

EFINITION

(.

REQ

) F

ILES

Reference Manual

}

}

}

Nested

Request

Definitions

Request

entries may be nested when two or more requests with different

bRequest

values require the same decoding for

wIndex

,

wValue

, and

Data

.

This eliminates the need to format the definitions separately for each request;
instead, they may be combined into one

Request

entry.

Nested

Request

definitions follow this format:

Request(<bRequest_first>)=
{
Request(<bRequest_second>)=
{
...
Request(<bRequest_last>)=
{

<definitions>

}
}
...
}

Here is an example of a nested

Request

entry:

Request (0)=
{
Request (1)=
{

wValue=
{

WordValue=
{

10=First value
20=Second value

}
FormatValue=Value is %d

}

}
}

For a more detailed, complex example, please refer to Audio.req.