beautypg.com

Subfieldof – Teledyne LeCroy User-Defined Decoding (UDD) Advanced Script Language (ASL) Reference Manual User Manual

Page 18

background image

15

SubFieldOf

SubFieldOf (FiledId [, Separeted])

Block

Remark

This statement specifies subfields of a specific field. Note that all AddField statements that exist in
body of SubField statement are relative to specified field. When you define subfields of a field, the
packet view shows subfields below field in the viewer. You can expand/collapse subfields. If you
want the packet view to show subfields in a separate table, you must write the Separated keyword
after FieldId.

Parameter

FieldId is the fieldId defined in AddField.

Separated is a constant keyword that specifies if you want defined subfield to show in a separated
table instead of below parent field.

Example

F1 = AddField(2, 3, "Field1", "It starts form bit# 2", "F1");
F2 = AddField(5, 3, "Field2", "This field is used for..", "F2");

SubFieldOf(F1)
{
s1 = AddField(0, 1, "Subfield1", "This is subfield of F1", "s1");
s2 = AddField(1, 2, "s2", "a Subfield of f1", "subfield f1");
}

SubFieldOf(F2, Separated)
/* Viewer shows these subfields in a separated table. */
{
s21 = AddField(0, 1, "Subfield1", "This is subfield of F2", "s1");
s22 = AddField(1, 2, "s2", "a Subfield of f2", "subfield f1");
}

You can define inner SubFieldOf statements until eight levels.