Instrument Control Lib
Framework to control Oscilloscopes, SMUs, Function Generators and DC Powersupplies via Ethernet.
SPD1305.h
Go to the documentation of this file.
1 //
2 // Created by liuwuhao on 20.05.21.
3 //
4 
5 #ifndef CE_DEVICE_SPD1305_H
6 #define CE_DEVICE_SPD1305_H
7 
8 
9 #include "types/DCPowerSupply.h"
10 
11 namespace PIL {
12  class Logging;
13 }
14 
15 class SPD1305 : public DCPowerSupply {
16 
17 public:
18  explicit SPD1305(const char *ip, int timeoutInMS);
19 
20  explicit SPD1305(const char *ip, PIL::Logging *logger, int timeoutInMs);
21 
22  PIL_ERROR_CODE turnOn(DC_CHANNEL channel) override;
23  PIL_ERROR_CODE turnOff(DC_CHANNEL channel) override;
24 
25  PIL_ERROR_CODE setCurrent(DC_CHANNEL channel, double current) override;
26  PIL_ERROR_CODE getCurrent(DC_CHANNEL channel, double* current) override;
27  // TODO add missing functions
28 private:
29  std::string getStrFromDCChannelEnum(DC_CHANNEL channel);
30 };
31 
32 #endif //CE_DEVICE_SPD1305_H
Definition: DCPowerSupply.h:11
DC_CHANNEL
Definition: DCPowerSupply.h:13
Definition: SPD1305.h:15
PIL_ERROR_CODE turnOn(DC_CHANNEL channel) override
Definition: SPD1305.cpp:35
SPD1305(const char *ip, int timeoutInMS)
Definition: SPD1305.cpp:8
PIL_ERROR_CODE setCurrent(DC_CHANNEL channel, double current) override
Definition: SPD1305.cpp:16
PIL_ERROR_CODE turnOff(DC_CHANNEL channel) override
Definition: SPD1305.cpp:44
PIL_ERROR_CODE getCurrent(DC_CHANNEL channel, double *current) override
Definition: SPD1305.cpp:25
This class contains a implementation of a command line interface. It supports various functions like ...
Definition: CommandLineInterface.h:16