beautypg.com

Endcellblock(), Getbitoffset(), Endcellblock() getbitoffset() – Teledyne LeCroy USB Script Decode Manual User Manual

Page 53

background image

47

C

HAPTER

12

CATC Scripting Language for USB

Decoder Primitives

EndCellBlock()

EndCellBlock()

Return value

None.

Comments

Ends a cell block that was started with
BeginCellBlock().

Example

See BeginCellBlock().

GetBitOffset()

GetBitOffset()

Return value

None.

Comments

Returns the current bit offset that is used in NextNBits or PeekNBits.

Example

raw = 'F0F0';# 1111000011110000 binary
result1 = GetNBits ( raw, 2, 4 );
result2 = PeekNBits(5);
result3 = NextNBits(2);
Trace ( "Offset = ", GetBitOffset() );

The example generates this Trace output:
Offset = D

Parameter

Meaning

Default Value

Comments

Parameter

Meaning

Default Value

Comments

N/A