Getdecodedscriptfield() - LeCroy USB Protocol Suite Reference Manual

Verification script engine
Table of Contents

Advertisement

LeCroy Corporation

9.3 GetDecodedScriptField()

Extracts information about the script decoded field and determines how it is shown in the USB Protocol Suite
trace view or the "View ... Fields" dialog.
Format :
GetDecodedScriptField ( fld_name )
Parameters:
fld_name
Return Values:
If the field name is in the current Transfer, the return value is the text value of the decoded field and how to
display it in the trace. Otherwise, the return value is the empty string.
Example:
# Extract the decoded value of wValue field
# for a Control transfer that uses a certain Class
# or Vendor specific decoding.
str
= GetDecodedScriptField ("wValue");
# If the bulk transfer payload decoded by the script decoder
# has a field named 'Code' (i.e., PTP transfers):
str = FormatEx( " Code(str) = '%s' ", GetDecodedScriptField ( "Code" ) );
Remarks:
The field name should be exactly the same as it is in the trace. The field name is case sensitive.
This function can be used only at the Transfer level.
Name of the field supposedly existing in the current Transfer
Verification Script Engine Reference Manual
Page 57 of 107

Advertisement

Table of Contents
loading

Table of Contents