Catalyst Enterprises Inc.
Appendix B
90
BitStuff
BitStuff ( FieldId , n )
Remark
If in a protocol one field transfer after bitstuffing algorithm the user can see the value
of that field by using the BitStuff statement. This statement runs an unstuff algorithm
on the specified field.
Parameters
FieldId
The field Id that was defined by AddField.
n
The number of bits for bitstuffing.
Example
/* run the bitstuff algorithm on 5 bits of continuous 1
. */
Flag = AddField(0,8, "Falg","Falg","");
Data = AddField(8,LengthOf(INPUTDATA) - (CURPOS
+16),"Data","Data","");
FCS = AddField(CURPOS,16, "FCS","FCS","");
BitStuff(Data,5);
Note :
The BitStuff function must be placed after all AddFields.
GetData
DataId
=
GetData ( StartBit, Length )
Remark
This statement copies a data segment with a given specification from INPUTDATA to
DataId
. The user can use from copied data with referring to
DataId
. This function
does not increases CURPOS. If user needs to know the value of a segment of data
without adding a field, he can use this statement.
Note:
INPUTDATA is an ASL keyword that identifies the input data stream that will be
passed to the script for decoding.
DataId
The fieldId that was defined by AddField.
Parameters
StartBit
Specifies the start bit position of the specified field. Value of
this parameter can be an Expression.
Length
Specifies the length of the specified Data in bits. The value of
this parameter can be an Expression
.
Example
/*This function Puts the Data from Bit#0 to Bit#9
in a dataId named D31. */
DataSegment = GetData (0,9);
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: ......