blob: 0fac0a34ae697749573ba89e11d4efc04ddbfb9d [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.
library fuchsia.driver.transport.test;
using zx;
const MAX_TRANSFER_SIZE uint32 = 4096;
closed protocol TestDevice {
/// Sets the test data that can be retrieved from this device using a runtime channel.
strict SetTestData(struct {
in vector<uint8>:MAX_TRANSFER_SIZE;
}) -> () error zx.Status;
};
closed protocol TestDeviceChild {
/// Returns the test data stored in the parent device using the runtime channel.
strict GetParentDataOverDriverTransport() -> (struct {
out vector<uint8>:MAX_TRANSFER_SIZE;
}) error zx.Status;
};
@discoverable
@transport("Driver")
closed protocol DriverTransportProtocol {
/// Returns the test data stored in the parent device.
strict TransmitData() -> (struct {
out vector<uint8>:MAX_TRANSFER_SIZE;
}) error zx.Status;
};
service Service {
driver_transport_protocol client_end:DriverTransportProtocol;
};