Getnbits_(), Getrangebits(), Getbit() – Teledyne LeCroy USB Script Decode Manual User Manual
Page 77: Getnbits_() getrangebits() getbit()
Advertising

71
C
HAPTER
14
CATC Scripting Language for USB
USB Decoders
Example
PeekNBits_(16);
GetNBits_()
GetNBits_(offset, len)
Comments
This is a redefinition of the GetNBits primitive which increments field offset and
field length.
Example
GetNBits_(640, 4);
GetRangeBits()
GetRangeBits(start_bit, end_bit, source)
Comments
Extracts a range of bits from source starting from start_bit and ending at
end_bit
. Most Significant Bit —> Least Significant Bit order is used here.
Example
GetRangeBits(10, 15, peek_value);
GetBit()
GetBit(bit_needed, source)
Parameter
Meaning
Default Value
Comments
offset
length
Parameter
Meaning
Default Value
Comments
start_bit
end_bit
source integer
Parameter
Meaning
Default Value
Comments
bit_needed
source integer
Advertising