BTool.SendCmds.SendATT C# (CSharp) Method

SendATT() public method

public SendATT ( HCICmds cmd ) : bool
cmd HCICmds
return bool
        public bool SendATT(HCICmds.ATTCmds.ATT_ErrorRsp cmd)
        {
            bool success = true;
            try
            {
                byte dataLength = cmd.dataLength;
                byte[] data = new byte[dataLength + 4];
                int index = 0;
                bool dataErr = false;
                if (m_deviceFormUtils.LoadMsgHeader(ref data, ref index, 1, cmd.opCodeValue, dataLength)
                && !m_dataUtils.Load16Bits(ref data, ref index, cmd.connHandle, ref dataErr, false)
                && !m_dataUtils.Load8Bits(ref data, ref index, cmd.reqOpcode, ref dataErr)
                && !m_dataUtils.Load16Bits(ref data, ref index, cmd.handle, ref dataErr, false)
                && !m_dataUtils.Load8Bits(ref data, ref index, (byte)cmd.errorCode, ref dataErr))
                    TransmitCmd(cmd.cmdName, cmd.opCodeValue, data);
                if (dataErr)
                    success = HandleDataError(cmd.cmdName);
            }
            catch (Exception ex)
            {
                success = HandleException(cmd.cmdName, ex.Message);
            }
            return success;
        }

Same methods

SendCmds::SendATT ( HCICmds cmd, SendCmds callback ) : bool
SendCmds::SendATT ( HCICmds cmd, TxDataOut cmdType ) : bool
SendCmds::SendATT ( HCICmds cmd, TxDataOut cmdType, SendCmds callback ) : bool