Teledyne LeCroy Merlins Wand - CSL manual (CATC Scripting Language Manual) User Manual
Page 62
56
CATC Scripting Language for Bluetooth Analyzers
CATC
Manual Ver. 1.21
# out.Data - Data block
# out.DataLength - Length of Data_block
# out.EtherProtocol - General Ethernet protocol
#
# Parsing entry point
#
ProcessData()
{
type = GetNBits(in.Data, 1, 7);
select
{
type == 0: AddEvent("BNEP Type", "GENERAL_ETHERNET (0x00)");
type == 1: AddEvent("BNEP Type", "CONTROL (0x01)");
type == 2: AddEvent("BNEP Type", "COMPR_ETHERNET (0x02)");
type == 3: AddEvent("BNEP Type", "CMPR_ETH_SRC_ONLY (0x03)");
type == 4: AddEvent("BNEP Type", "CMPR_ETH_DST_ONLY (0x04)");
default: AddEvent("BNEP Type", Format("Reserved - 0x%02X", type) );
};
return Complete(); # transaction is finished
}
set Type = null;
set DecodedBytes = 0;
set E = 0; # extension flag
set Bnep_Error = 0;
CollectData()
{
out.EtherProtocol = null;
out.Slave = in.Slave;
out.AmAddr = in.AmAddr;
ShowAmAddrSlave();