blob: 5f9cff50301573ce3ddcebf608b910bb84f5cfce [file] [log] [blame]
#pragma once
#include "base_port.hpp"
#include <sdbusplus/async.hpp>
namespace phosphor::modbus::rtu::port
{
namespace config
{
struct PortFactoryConfig;
} // namespace config
class USBPort : public BasePort
{
public:
explicit USBPort(sdbusplus::async::context& ctx,
config::PortFactoryConfig& config);
static auto getConfig(sdbusplus::async::context& ctx,
const sdbusplus::message::object_path& objectPath)
-> sdbusplus::async::task<std::optional<config::PortFactoryConfig>>;
};
} // namespace phosphor::modbus::rtu::port