beautypg.com

Restorefieldsettings(), Find(), Restorefieldsettings() find() – Teledyne LeCroy USB Script Decode Manual User Manual

Page 69

background image

63

C

HAPTER

14

CATC Scripting Language for USB

USB Decoders

Comments

Saves the global field settings. Can be used in conjunction with
RestoreFieldSettings()

to show one attribute inside another.

Example

...
...

# pre-decoding of container attribute

SaveFieldSettings();

Global_BitField_offset = MAD_HEADER_LEN_BITS +
amount_of_bits_before_attribute;

ShowSomeAttribute();

RestoreFieldSettings( );

...

# post-decoding of container attribute

...

RestoreFieldSettings()

RestoreFieldSettings()

Comments

Restores the global field settings. Can be used in conjunction with
SaveFieldSettings()

to show one attribute inside another.

Example

See “SaveFieldSettings()” on page 62.

Find()

Find(table, table_key)

Comments

Finds a string in the table by a key value. If the key is not found, the first string is
returned.

Parameter

Meaning

Default Value

Comments

N/A

Parameter

Meaning

Default Value

Comments

table

table_key string