blob: f66717a178f93ad2347466953b82860080cec8b3 [file] [log] [blame]
// Copyright 2022 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.
@available(added=HEAD)
library fuchsia.examples.gizmo;
using zx;
/// The protocol provides access to functions of the driver.
@transport("Driver")
closed protocol Device {
/// Returns a unique identifier for this device.
strict GetHardwareId() -> (struct {
response uint32;
}) error zx.Status;
/// Returns the current device firmware version
strict GetFirmwareVersion() -> (struct {
major uint32;
minor uint32;
}) error zx.Status;
};
/// The service enables the driver framework to offer the Demo protocol to
/// other components.
service Service {
device client_end:Device;
};