beautypg.com

Plreservedcheck(), Unsignedcompare(), Plreservedcheck() unsignedcompare() – Teledyne LeCroy USB Script Decode Manual User Manual

Page 88

background image

82

C

HAPTER

14

CATC Scripting Language for USB

USB Decoders

Comments

Used to determine whether an item defined with view_setting is shown.

Example

ShowDataBlock(bytes, !ShowItem(CME_ReadWriteData));

PLReservedCheck()

PLReservedCheck(reserved_bits)

Comments

Used to make a common check of reserved bits while taking into account the view
settings. If these bits are not zero, a corresponding warning cell will be shown in the
expanded state. Note: only up to 32 bits should be passed to this function.

Example

PLReservedCheck(32);
PLReservedCheck(8);

UnsignedCompare()

UnsignedCompare(op1, op2)

Comments

This function returns difference between integer values and considers them to be
unsigned values. So, the value 0xFFFFFFFF is -1 and less than 0 in logical condi-
tions, but as an unsigned integer it is so much bigger than 0. Use this function in
places where you want integer values to be thought of as unsigned.

Example

select {

(low_limit == high_limit) :
{
...
}
# (AttModifier < low_limit) || (AttModifier >

high_limit)

:

Parameter

Meaning

Default Value

Comments

reserved_bits

Parameter

Meaning

Default Value

Comments

op1

Operand

op2

Operand