Common functions, Functions found in decodertools2.inc, Rgb() – Teledyne LeCroy USB Script Decode Manual User Manual
Page 68: Savefieldsettings(), Rgb() savefieldsettings()

62
C
HAPTER
14
CATC Scripting Language for USB
USB Decoders
set Global_BitField_offset = 0;
# global variable
that contains the offset, in bits, from the beginning
of packet for beginning of current attribute. Roughly
speaking, it is the entry point from which an
attribute decoder starts decoding.
set BitCurrentFieldOffset = 0;
# global variable that
contains the offset, in bits, from the starting point
of decoding for the current field inside of the
decoder.
set BitCurrentFieldLength = 0;
# the length, in bits,
of the currently decoded field.
Common Functions
Functions found in DecoderTools2.inc
These are the most commonly-used functions from DecoderTools2.inc.
RGB()
RGB(r, g, b)
Comments
Used to define a color based on red, green, and blue values.
Example
RGB(255, 255, 255); #white
SaveFieldSettings()
SaveFieldSettings()
Parameter
Meaning
Default Value
Comments
r integer
red value
g integer
green value
b integer
blue value
Parameter
Meaning
Default Value
Comments
N/A