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

Page 68

Advertising
background image

62

CATC Scripting Language for Bluetooth Analyzers

CATC

Manual Ver. 1.21

decoded = 0;

while ((length - decoded) > 3)

{

start = NextNBits(16);

AddCell("Start",Format("0x%04X", start), "Network Protocol Type range Start", Bnep_color);

end = NextNBits(16);

AddCell("End",Format("0x%04X", end), "Network Protocol Type range End", Bnep_color);

decoded = decoded + 4;

DecodedBytes = DecodedBytes + 4;

}

}

const BNEP_filter_resp_msg_table = [

[ 0x0005 , "Reserved" , "Reservedfor future use" ],

[ 0x0000 , "Success" , "Operation Successful" ],

[ 0x0001 , "Unsupported" , "Unsupported Request" ],

[ 0x0002 , "Bad range" , "Operation Failed: Invalid Networking Protocol Type Range" ],

[ 0x0003 , "Limited Reached" , "Operation Failed: Maximum Filter Limited Reached" ],

[ 0x0004 , "Unable due to security" , "Operation Failed: Unable to fulfill request due to security"
]

];

ShowFilterNetTypeRes()

{

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

data = NextNBits(16);

row = Find(BNEP_filter_resp_msg_table, data);

AddCell("message", row[1], Format("0x%04X - ", data) + row[2], Bnep_color);

Advertising