BTool.DeviceFormUtils.GetOpCodeName C# (CSharp) Method

GetOpCodeName() public method

public GetOpCodeName ( ushort opCode ) : string
opCode ushort
return string
        public string GetOpCodeName(ushort opCode)
        {
            string opc = string.Format("0x{0:X4}", opCode);
            for (int index = 0; index < HCICmds.OpCodeLookupTable.Length / 2; ++index)
                if (HCICmds.OpCodeLookupTable[index, 0] == opc)
                    return HCICmds.OpCodeLookupTable[index, 1];
            return "Unknown Op Code";
        }