| Jagpal Singh Gill | 7f9d41d | 2025-10-16 09:42:18 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "base_port.hpp" |
| 4 | |
| 5 | #include <sdbusplus/async.hpp> |
| 6 | |
| 7 | namespace phosphor::modbus::rtu::port |
| 8 | { |
| 9 | |
| 10 | namespace config |
| 11 | { |
| 12 | |
| 13 | struct PortFactoryConfig; |
| 14 | |
| 15 | } // namespace config |
| 16 | |
| 17 | class USBPort : public BasePort |
| 18 | { |
| 19 | public: |
| 20 | explicit USBPort(sdbusplus::async::context& ctx, |
| Jagpal Singh Gill | b62e3df | 2025-10-22 18:10:40 -0700 | [diff] [blame^] | 21 | const config::PortFactoryConfig& config); |
| Jagpal Singh Gill | 7f9d41d | 2025-10-16 09:42:18 -0700 | [diff] [blame] | 22 | |
| 23 | static auto getConfig(sdbusplus::async::context& ctx, |
| 24 | const sdbusplus::message::object_path& objectPath) |
| Jagpal Singh Gill | b62e3df | 2025-10-22 18:10:40 -0700 | [diff] [blame^] | 25 | -> sdbusplus::async::task<std::unique_ptr<config::PortFactoryConfig>>; |
| Jagpal Singh Gill | 7f9d41d | 2025-10-16 09:42:18 -0700 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | } // namespace phosphor::modbus::rtu::port |