private int HCI_Command(HCI.Command Command, byte[] Buffer) { var Transfered = 0; Buffer[0] = (byte)(((uint)Command >> 0) & 0xFF); Buffer[1] = (byte)(((uint)Command >> 8) & 0xFF); Buffer[2] = (byte)(Buffer.Length - 3); SendTransfer(0x20, 0x00, 0x0000, Buffer, ref Transfered); Log.DebugFormat("<< {0} [{1:X4}]", Command, (ushort)Command); return Transfered; }
private int HCI_Command(HCI.Command command, byte[] buffer) { var transfered = 0; buffer[0] = (byte)(((uint)command >> 0) & 0xFF); buffer[1] = (byte)(((uint)command >> 8) & 0xFF); buffer[2] = (byte)(buffer.Length - 3); SendTransfer(0x20, 0x00, 0x0000, buffer, ref transfered); Log.DebugFormat("<< {0} [{1:X4}]", command, (ushort)command); return transfered; }