Appendix B
Catalyst Enterprises, Inc.
89
ASL Statements
Addfield
fieldId
=
AddField (StartBit
,
Length, Name, Description, Abbreviation,
BitOrder )
Remark
This statement adds a field to a packet with given specification. This function
increases CURPOS one
Length
.
CURPOS is a pointer that when a field added moves on input data, it points to the
current index of the data for the next field.
fieldId:
FieldId is a string that specifies Id of fields. Each field has a
unique Id. This Id is used to refer to that field.
Parameters
StartBit
This parameter specifies the start bit position of the specified
field. The value of this parameter can be an Expression.
Length
This parameter specifies the length of the specified field in
bits. The value of this parameter can be an Expression
.
Name
This parameter specifies the Name of the field.
Description
This parameter specifies the description of the field. For the
format of this parameter see “Strings” on page 84
Abbreviation
This parameter specifies the Abbreviation of the field. If the
field name is long you can use an abbreviation for the filed.
In the first version of ASL the abbreviation of a field does not
show in viewer. For the format of this parameter see
“Strings” on page 84
BitOrder
This parameter specifies the bit order of data of a field. The
value of this parameter can be either
MSBLEFT
or
LSBLEFT
.
This parameter is optional and if user does
not specify a value the default value MSBLEFT.
Example
/* This statement adds a field at bit #2 of packet
with the length of 3 bits. The data of this field
will be read from // Lowest Bit. */
F1 = AddField(2, 3, ”Name of Field”, ”This field
is the flag field.”, ”Abbreviation of field”,
LSBLEFT);
Summary of Contents for AirCom UWB Analyzer
Page 1: ...March 2007 P N 400 0103 001 User s Manual Version 1 22 ...
Page 4: ...Catalyst Enterprises Inc Copyright iv ...
Page 54: ...Catalyst Enterprises Inc Faded Packets 46 Figure 32 Illustration of Faded Packets ...
Page 76: ...Catalyst Enterprises Inc Display Configuration 68 ...
Page 109: ......