Teledyne-lecroy Verification Script Engine (VSE) Manual Manual do Utilizador Página 59

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 115
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 58
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.
Vista de página 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 114 115

Comentários a estes Manuais

Sem comentários