Device: RAD-Galaxy: Add support for Analog Output

This commit is contained in:
Thomas Stoddard
2026-02-11 18:43:30 -05:00
committed by Kyle Schwarz
parent 6cda765fe0
commit d18ca9e6eb
9 changed files with 403 additions and 0 deletions
+13
View File
@@ -747,6 +747,16 @@ typedef struct
namespace icsneo {
enum class MiscIOAnalogVoltage : uint8_t
{
V0 = 0,
V1 = 1,
V2 = 2,
V3 = 3,
V4 = 4,
V5 = 5
};
class IDeviceSettings {
public:
using TerminationGroup = std::vector<Network>;
@@ -1180,6 +1190,9 @@ public:
return false;
}
virtual bool setMiscIOAnalogOutputEnabled(uint8_t pin, bool enabled);
virtual bool setMiscIOAnalogOutput(uint8_t pin, MiscIOAnalogVoltage voltage);
const void* getRawStructurePointer() const { return settingsInDeviceRAM.data(); }
void* getMutableRawStructurePointer() { return settings.data(); }
template<typename T> const T* getStructurePointer() const { return reinterpret_cast<const T*>(getRawStructurePointer()); }