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

Page 65

Advertising
background image

59

CATC Scripting Language for Bluetooth Analyzers

CATC

Manual Ver. 1.21

[ 0x00 , "COMMAND_NOT_UNDERSTOOD" ,
"BNEP_CONTROL_COMMAND_NOT_UNDERSTOOD" , "ShowCtrlNotUnderstood" ],

[ 0x01 , "SETUP_CONN_REQ" , "BNEP_SETUP_CONNECTION_REQUEST_MSG" ,
"ShowCtrlSetupReq" ],

[ 0x02 , "SETUP_CONN_RES" , "BNEP_SETUP_CONNECTION_RESPONSE_MSG" ,
"ShowCtrlSetupRes" ],

[ 0x03 , "FILTER_NET_TYPE_SET" , "BNEP_FILTER_NET_TYPE_SET_MSG" , "Show-
FilterNetTypeSet" ],

[ 0x04 , "FILTER_NET_TYPE_RES" , "BNEP_FILTER_NET_TYPE_RESPONSE_MSG" ,
"ShowFilterNetTypeRes" ],

[ 0x05 , "FILTER_MULTI_ADDR_SET" , "BNEP_FILTER_MULTI_ADDR_SET_MSG" ,
"ShowFilterMultiAddrSet" ],

[ 0x06 , "FILTER_MULTI_ADDR_RES" ,
"BNEP_FILTER_MULTI_ADDR_RESPONSE_MSG" , "ShowFilterMultiAddrRes" ]

];

ShowControl()

{

AddCell("Type","Control", "0x01- Control BNEP type", Bnep_color);

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

control_type = NextNBits(8);

control_row = Find(BNEP_control_table, control_type);

AddCell("Control", control_row[1], Format("0x%02X - ", control_type) + control_row[2],
Bnep_color);

DecodedBytes = DecodedBytes + 1;

Call (control_row[3]);

}

ShowCtrlNotUnderstood()

{

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

ctrl = NextNBits(8);

control_row = Find(BNEP_control_table, control_type);

AddCell("UnknownControl", Format("0x%02X", ctrl), "Unknown Control Type - " +
control_row[2], Bnep_color);

Advertising