blob: b3a51a5082d4ead73d7d22a7aa2cc13301962eab [file] [log] [blame]
#pragma once
#include "base_device.hpp"
#include <unordered_set>
namespace phosphor::modbus::rtu::device
{
namespace config
{
struct DeviceFactoryConfig;
} // namespace config
class ReservoirPumpUnit : public BaseDevice
{
public:
explicit ReservoirPumpUnit(sdbusplus::async::context& ctx,
const config::Config& config,
PortIntf& serialPort, EventIntf::Events& events);
static auto getInterfaces() -> std::unordered_set<std::string>;
static auto getConfig(sdbusplus::async::context& ctx,
const sdbusplus::message::object_path& objectPath,
const std::string& interfaceName)
-> sdbusplus::async::task<std::optional<config::DeviceFactoryConfig>>;
};
} // namespace phosphor::modbus::rtu::device