Teledyne-lecroy Protocol Analyzers File-Based Decoding User Manual Instrukcja Użytkownika Strona 47

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 82
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 46
File-based Decoding User Manual Chapter 11: Primitives
LeCroy Corporation 41
NextNBits()
NextNBits (<bit_count integer>)
Parameter Meaning
Default
Value Comments
bit_count in
teger
Support
Supported by all LeCroy analyzers.
Return value
None.
Comments
Reads bit_count bits from the data source specified in the last call to GetNBits,
st
arting after the last bit that the previous call to GetNBits or NextNBits returned. If
calle
d without a previous call to GetNBits, the result is undefined.
Note that bits are
indexed starting at bit 0.
Example
raw = 'F0F0';# 1111000011110000 binary
result1 = GetNBits ( raw, 2, 4 );
result2 = NextNBits(5);
result3 = NextNBits(2);
This results in:
result1 == C
result2 == 7
result3 == 2
A call to GetNBits, starting at bit 2, reads 4 bits (1100), and returns the value 0xC.
A first call to NextNBits, starting at bit 6, reads 5 bits (00111), and returns the value 0x7.
A second call to NextNBits, starting at bit 11 (= 6 + 5), reads 2 bits (10), and returns the
value 0x2.
Przeglądanie stron 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 81 82

Komentarze do niniejszej Instrukcji

Brak uwag