Teledyne LeCroy Merlins Wand - CSL manual (CATC Scripting Language Manual) User Manual

Page 73

Advertising
background image

67

CATC Scripting Language for Bluetooth Analyzers

CATC

Manual Ver. 1.21

}

}

########### Unknown BNEP type #########################

ShowUnknownBnep()

{

AddCell("Type","Unknown", Format("0x%02X - Unknown BNEP type", Type), Bnep_color);

DecodedBytes = 1;

}

########### Extensions #########################

ShowExtension()

{

if ( IsNotEnoughBnepData(1, 2) ) return 0;

byte = GetNBits(in.Data, DecodedBytes * 8, 8);

DecodedBytes = DecodedBytes + 1;

E = (byte >> 7) & 1;

AddCell("E",Format ("%d", E),"Extension flag", Bnep_color);

ext_type = byte & 0x7f;

select

{

ext_type == 0: ShowExtCtrl();

default: ShowExtUnknown(ext_type);

};

}

Advertising