Checkbaddatalength(), Nextnbits_(), Peeknbits_() – Teledyne LeCroy USB Script Decode Manual User Manual
Page 76: Checkbaddatalength() nextnbits_() peeknbits_()

70
C
HAPTER
14
CATC Scripting Language for USB
USB Decoders
Example
AddDataBlockToDlg(72);
CheckBadDataLength()
CheckBadDataLength()
Comments
Checks offset from beginning of data payload for packet with bad data length and
sets the current field color to the error color when the offset exceeds the length of
the data payload.
Example
CheckBadDataLength();
NextNBits_()
NextNBits_(next_n_bits)
Comments
This is a redefinition of the NextNBits primitive which increments field offset
and field length.
Example
NextNBits_(8);
PeekNBits_()
PeekNBits_(next_n_bits)
Comments
This is a redefinition of the PeekNBits primitive which increments field offset
and field length.
Parameter
Meaning
Default Value
Comments
N/A
Parameter
Meaning
Default Value
Comments
next_n_bits
Parameter
Meaning
Default Value
Comments
next_n_bits