blob: 55074768a532339eae87846cbe4e4b2bf9faf1d3 [file] [log] [blame] [edit]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.hardware.bluetooth;
using zx;
closed protocol Hci {
/// Opens a command/event channel on the provided handle. The zircon channel
/// is closed in the event of an error opening the hci channel or if the hci
/// channel is already associated with a handle to another zircon channel.
strict OpenCommandChannel(resource struct {
channel zx.Handle:CHANNEL;
});
/// Opens a acl data channel on the provided handle. The zircon channel is
/// closed in the event of an error opening the hci channel or if the hci
/// channel is already associated with a handle to another zircon channel.
strict OpenAclDataChannel(resource struct {
channel zx.Handle:CHANNEL;
});
/// Opens a snoop channel on the provided handle. The zircon channel is
/// closed in the event of an error opening the hci channel or if the hci
/// channel is already associated with a handle to another zircon channel.
strict OpenSnoopChannel(resource struct {
channel zx.Handle:CHANNEL;
});
};