blob: e5d747137d1788ab1f7ebf6dfb96f01e0c680840 [file] [log] [blame]
// Copyright 2018 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.usb.modeswitch;
using zx;
/// Values for `SetMode`.
enum UsbMode : uint32 {
NONE = 0;
HOST = 1;
PERIPHERAL = 2;
OTG = 3;
};
[Transport = "Banjo", BanjoLayout = "ddk-protocol"]
protocol UsbModeSwitch {
/// Sets the current USB mode.
SetMode(UsbMode mode) -> (zx.status s);
};