Teledyne-lecroy SAS_SATA Protocol Suite Verification Script Engine Instrukcja Użytkownika Strona 84

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 97
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 83
84
22.5 GetPacketData()
This function returns packet’s data in unscramble 8 bits format as a list of DWORDs. Each item
of the list includes one DWORD of packet. It also returns 0xFFFFFFFF for XXXX.
Format : GetPacketData();
Example
ListOfData = GetPacketData();
for(i=0;i<sizeof(ListOfData);i++)
{
ReportText(FormatEx("[%d]=0x%x\t", i, ListOfData[i]));
}
22.6 FormatRawBytes(RawBytes)
To convert any raw data field to a string. It is a utility method in VSTools.inc file, which can be
included and used.
Format : FormatRawBytes(RawBytes)
Parameters
RawBytes: any raw data value.
}
Return Values
The converted RawBytes to string in Hex format.
Example
%include "VSTools.inc" # must be included
....
LBA = "0x" + FormatEx("%s",FormatRawBytes(in.App_LogicalBlockAddress));
ReportText(LBA);
Przeglądanie stron 83
1 2 ... 79 80 81 82 83 84 85 86 87 88 89 ... 96 97

Komentarze do niniejszej Instrukcji

Brak uwag