Appendix B
Catalyst Enterprises, Inc.
97
Find (StartBit, Value)
Remark
This function searches the input data from the given start bit for a specified value.It
returns the first position of the first found value. If the value is not found it will return
LengthOf(INPUTDATA) + 1.
Parameters
StartBit
This parameter specifies the start bit position from which to
search from this location to the end of input data. The value
of this parameter can be an Expression.
Value:
Value to be searched for in this call. Value can be a constant
BIN or HEX number or can be a expression.
CURPOS
Remark
This function returns the current position of the cursor in bits of INPUTDATA.
At first, CURPOS is zero and increases one field’s length in each Add Field call.
CURPOS has a local scope in script, that is in each SubFieldOf statement CURPOS
has a local scope too. So in each SubFieldOf statement CURPOS will be set to zero
and increase one sub field length and when return to out of sub field statement
CURPOS value will be set to the value that it had before SubFieldof statement.
Example
F1 = AddField(0, 8, “F1”, “F1”, “F1”);
F2 = AddField(CURPOS, 8, “F2”, “F2”, “F2”); /* CURPOS
is equal to 8 and will be 16 after this statement */
SubFieldOf(F2)
{
F11 = AddField(0, 2, “F11”, “F11”, “F11”) ;
F12 = AddField(CURPOS, 2, “F12”, “F12”, “F12”) ;
/* CURPPOS = 2 */
F13 = AddField(CURPOS, 4, “F13”, “F13”, “F13”) ; /
* CURPPOS = 4 */
}
F3 = AddField(CURPOS, 2, “F3”, “F3”, “F3”); /* CURPPOS = 16
*/
EOD
Remark
If CURPOS is at the end of data this function returns TRUE, If not it returns FALSE.
That is, if all input data has been decoded, this function returns TRUE.
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: ......