Script editor – Teledyne LeCroy Conquest User Manual - Users Manual User Manual
Page 250

Appendix A
240
Script Editor
The following example illustrates the creation of a Mass Storage Class request
script.
Table 7 shows the Class request descriptor field interpretation that is used in
the script example.
Table 7. Class Request Descriptor
Note:
You must assign an option name to all fields that have multiple
interpretations based on their values.
Offset
Field
Size
Value
Description
0
bmRequesType 1
Bits 0…4 (Recipient) Interpretation
0b00000(0x00)
"Device"
0b00001(0x01)
"Interface"
0b00010(0x02)
"Endpoint"
0b00011(0x03)
"Other"
0x04-0x1F
"Reserved"
Bits 6…5 (Type)
0x0
"Standard"
0x1
"Class"
0x2
"Vendor"
0x3
"Reserved"
Bit 7 (Direction)
0x0
"Host to device"
0x1
"device to Host"
1
bRequest
1
Bits 0…8 (Request)
0x00-0xFD
"Unknown"
0xFE
"Get Max LUN"
0xFF
"Mass Storage Reset"
2
Wvalue
2
No field option needed. (Same
value appears.)
3
Windex
2
No field option needed. (Same
value appears.)
4
wLength
2
No field option needed. (Same
value appears.)