Public Access
refactor(ups-hid): file structure
Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
34 files changed
+475
-1371
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include "transport_interface.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace ups_hid {
|
||||
|
||||
/**
|
||||
* Factory for creating USB transport instances
|
||||
*/
|
||||
class UsbTransportFactory {
|
||||
public:
|
||||
enum TransportType {
|
||||
ESP32_HARDWARE,
|
||||
SIMULATION
|
||||
};
|
||||
|
||||
static std::unique_ptr<IUsbTransport> create(TransportType type,
|
||||
bool simulation_mode = false);
|
||||
};
|
||||
|
||||
} // namespace ups_hid
|
||||
} // namespace esphome
|
||||
Reference in new issue
Block a user