beautypg.com

Endcellblock(), Getbitoffset(), Endcellblock() getbitoffset() – Teledyne LeCroy FireInspector - File Based Decoding User Manual

Page 59

background image

53

CATC S

CRIPTING

L

ANGUAGE

1.0

C

HAPTER

13

Reference Manual

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 = 'FOFO';# 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