blob: 5f9cff50301573ce3ddcebf608b910bb84f5cfce [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,
21 config::PortFactoryConfig& config);
22
23 static auto getConfig(sdbusplus::async::context& ctx,
24 const sdbusplus::message::object_path& objectPath)
25 -> sdbusplus::async::task<std::optional<config::PortFactoryConfig>>;
26};
27
28} // namespace phosphor::modbus::rtu::port