3 getdecodedscriptfield(), Ecoded, Cript – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual
Page 59: Ield
Teledyne LeCroy
Verification Script Engine Reference Manual
Page 59 of 115
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
Name of the field supposedly existing in the current Transfer
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.