blob: c0ed60c3004f78f138efa987815ac35e75f02753 [file] [log] [blame]
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IIOSERVICE_DAEMON_COMMON_TYPES_H_
#define IIOSERVICE_DAEMON_COMMON_TYPES_H_
#include <set>
#include <string>
#include <mojo/public/cpp/bindings/receiver_set.h>
#include <libmems/iio_device.h>
#include "mojo/sensor.mojom.h"
namespace iioservice {
class ClientData {
public:
ClientData(const mojo::ReceiverId id,
libmems::IioDevice* const iio_device,
const std::set<cros::mojom::DeviceType>& types);
const mojo::ReceiverId id;
libmems::IioDevice* const iio_device;
const std::set<cros::mojom::DeviceType> types;
std::set<int32_t> enabled_chn_indices;
double frequency = -1; // Hz
uint32_t timeout = 5000; // millisecond
};
constexpr char kInputAttr[] = "input";
} // namespace iioservice
#endif // IIOSERVICE_DAEMON_COMMON_TYPES_H_