blob: c272fc58e5dd9cae2dbb9a6eeb79d5dae43cb385 [file] [log] [blame]
// 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;
const MAX_NAME_LENGTH uint32 = 32;
/// Used for spawning virtual Bluetooth devices.
open protocol VirtualController {
/// Creates a child device, and returns the name of the child created.
flexible CreateEmulator() -> (struct {
name string:<MAX_NAME_LENGTH, optional>;
}) error zx.Status;
/// Creates a virtual Bluetooth serial device, speaking the BT HCI UART
/// protocol on the provided handle.
/// The zircon channel is closed in the event of an error.
flexible CreateLoopbackDevice(resource table {
1: uart_channel zx.Handle:CHANNEL;
});
};