blob: b2bc07069a27bbe40f5461272e14490f0abc8e4e [file] [log] [blame]
Jagpal Singh Gill7f9d41d2025-10-16 09:42:18 -07001#pragma once
2
3#include "base_port.hpp"
4
5#include <sdbusplus/async.hpp>
6
7namespace phosphor::modbus::rtu::port
8{
9
10namespace config
11{
12
13struct PortFactoryConfig;
14
15} // namespace config
16
17class USBPort : public BasePort
18{
19 public:
20 explicit USBPort(sdbusplus::async::context& ctx,
Jagpal Singh Gillb62e3df2025-10-22 18:10:40 -070021 const config::PortFactoryConfig& config);
Jagpal Singh Gill7f9d41d2025-10-16 09:42:18 -070022
23 static auto getConfig(sdbusplus::async::context& ctx,
24 const sdbusplus::message::object_path& objectPath)
Jagpal Singh Gillb62e3df2025-10-22 18:10:40 -070025 -> sdbusplus::async::task<std::unique_ptr<config::PortFactoryConfig>>;
Jagpal Singh Gill7f9d41d2025-10-16 09:42:18 -070026};
27
28} // namespace phosphor::modbus::rtu::port