|
2 | 2 | * * |
3 | 3 | * libscopehal * |
4 | 4 | * * |
5 | | -* Copyright (c) 2012-2024 Andrew D. Zonenberg and contributors * |
| 5 | +* Copyright (c) 2012-2026 Andrew D. Zonenberg and contributors * |
6 | 6 | * All rights reserved. * |
7 | 7 | * * |
8 | 8 | * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * |
@@ -103,6 +103,22 @@ class KuaiquPowerSupply |
103 | 103 | public: |
104 | 104 | static std::string GetDriverNameInternal(); |
105 | 105 | POWER_INITPROC(KuaiquPowerSupply); |
| 106 | + static std::vector<SCPIInstrumentModel> GetDriverSupportedModels() |
| 107 | + { |
| 108 | + return { |
| 109 | + #ifdef _WIN32 |
| 110 | + {"Kuaiqu SPPS-D", {{ SCPITransportType::TRANSPORT_UART, "COM<x>:9600" }}}, |
| 111 | + {"Kuaiqu SPPS-S", {{ SCPITransportType::TRANSPORT_UART, "COM<x>:9600" }}}, |
| 112 | + {"Kuaiqu SPPS*D", {{ SCPITransportType::TRANSPORT_UART, "COM<x>:9600" }}}, |
| 113 | + {"Kuaiqu R-SPPS", {{ SCPITransportType::TRANSPORT_UART, "COM<x>:9600" }}} |
| 114 | + #else |
| 115 | + {"Kuaiqu SPPS-D", {{ SCPITransportType::TRANSPORT_UART, "/dev/ttyUSB<x>:9600" }}}, |
| 116 | + {"Kuaiqu SPPS-S", {{ SCPITransportType::TRANSPORT_UART, "/dev/ttyUSB<x>:9600" }}}, |
| 117 | + {"Kuaiqu SPPS*D", {{ SCPITransportType::TRANSPORT_UART, "/dev/ttyUSB<x>:9600" }}}, |
| 118 | + {"Kuaiqu R-SPPS", {{ SCPITransportType::TRANSPORT_UART, "/dev/ttyUSB<x>:9600" }}} |
| 119 | + #endif |
| 120 | + }; |
| 121 | + } |
106 | 122 | }; |
107 | 123 |
|
108 | 124 | #endif |
0 commit comments