Teledyne-lecroy Verification Script Engine (VSE) Manual Manual de usuario Pagina 27

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 115
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 26
Teledyne LeCroy Verification Script Engine Reference Manual
Page 27 of 115
5.2.1.3.12 Getting Values of the Fields not present in Input Context
As mentioned earlier, not all the possible fields of USB3 packets are passed as members of Input Context. The
following are examples of using GetHexPktField and GetDecodedPktField functions to get values of the fields
not present in Input Context.
If( in.TraceEvent == _USB3_LMP_PKT )
{
# Example of using decoded packet information for LMPs.
# ‘SubType’ field,
# String value
str = FormatEx("\tSubType(str) = ‘%s’", GetDecodedPktField("SubType"));
ReportText( str );
# Hex Value
val = GetHexPktField ( "SubType" );
str = FormatEx( "\tSubType(hex) = 0x%X\n", val );
ReportText( str );
# ‘Hseq’ field
# String value
str = FormatEx( "\tHseq(str) = ‘%s’", GetDecodedPktField ( "Hseq" ) );
ReportText( str );
# Hex Value
val = GetHexPktField ( "Hseq" );
str = FormatEx( "\tHseq(hex) = 0x%X\n", val );
ReportText( str );
}
if( ( in.TraceEvent == _USB3_TP_PKT ) && ( in.SubType == TP_ACK ) )
{
# Example of using decoded packet information for TPs.
# ‘SeqN’ field
# String value
str = FormatEx( "\tSeqN(str) = ‘%s’", GetDecodedPktField ( "SeqN" ) );
ReportText( str );
# Hex Value
val = GetHexPktField ( "SeqN" );
str = FormatEx( "\tSeqN(hex) = 0x%X\n", val );
ReportText( str );
# ‘NumP’ field
# String value
str = FormatEx( "\tNumP(str) = ‘%s’", GetDecodedPktField ( "NumP" ) );
ReportText( str );
Vista de pagina 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 114 115

Comentarios a estos manuales

Sin comentarios