Teledyne LeCroy Conquest User Manual - Users Manual User Manual

Page 229

Advertising
background image

Appendix A

219

BitStuff

BitStuff (fieldId, bit);

Remark:

This statement preforms a bit-unstuffing algorithm on the field before the field
is interpreted. This statement is only required for high-level data of some
protocols. Do not confuse it with the low-level bit-unstuffing of USB. The
hardware bit-unstuffs USB traffic before presenting the data stream to the
decoder.

Input Parameters:

fieldId:

This is the identifier that specifies the field. This
identifier is the output of a AddField statement.

bit:

Specifies the number of consecutive 1’s before data is
bit-stuffed with a zero by the protocol. For example,
specifying this statement with this value being 5
converts the following stream “111110111b” into
“11111111b”.

Example:

/* run the bit-unstuff algorithm on 5 bits of continuous 1s */

Data = AddField(8, 16,"Data","Data","");

BitStaff(Data,5);

Advertising