beautypg.com

Teledyne LeCroy ST Automated Test Suite User Manual User Manual

Page 31

background image

31

#############################################################################
# This function Check the left raw data value is bigger than the right one

#

#############################################################################
IsRawDataBigger(LeftRaw, RightRaw)
{

LeftRawSize

= sizeof(LeftRaw);

RightRawSize = sizeof(RightRaw);

if(LeftRawSize > RightRawSize)

return 1;

if(LeftRawSize < RightRawSize)

return 0;


if(LeftRawSize == RightRawSize)

{

for(index = RightRawSize - 1; index >= 0; index--)

#for(index = 0; index < RightRawSize; index--)

{

if(LeftRaw[index] > RightRaw[index])

return 1;

if(LeftRaw[index] < RightRaw[index])

return 0;

}

}


return 0;

}

########################################################################
# This function outputs the information of the current event. #
########################################################################

ReportEventInfo()
{
report = FormatEx( "TraceEvent: %6s #%04u, Channel : %s, Speed : %4s , Event : %s,
Time : %s, ",
GetLevelName(), in.Index, GetChannelName(), GetLinkSpeedName(), GetEventName(),
TimeToText( in.Time ) );

ReportText( report );
}



ReportPrimEventInfo()
{
if( in.TraceEvent == _FRM_PRIMITIVE )
{
report = FormatEx( "Primitive packet, value : 0x%X, Count : %d\n", in.Primitive,
in.Count );

ReportText( report );
}
}