22#ifndef M2KPOWERSUPPLY_HPP
23#define M2KPOWERSUPPLY_HPP
25#include <libm2k/m2kglobal.hpp>
53 virtual void reset() = 0;
82 virtual double readChannel(
unsigned int chn,
bool calibrated =
true) = 0;
94 virtual void pushChannel(
unsigned int chn,
double value,
bool calibrated =
true) = 0;
100 virtual void powerDownDacs(
bool powerdown) = 0;
Controls the power supply.
Definition m2kpowersupply.hpp:42
virtual void enableAll(bool en)=0
Enable or disable all channels.
virtual double readChannel(unsigned int chn, bool calibrated=true)=0
Retrieve the value of a given channel.
virtual void pushChannel(unsigned int chn, double value, bool calibrated=true)=0
Set the voltage for the given channel.
virtual void enableChannel(unsigned int chn, bool en)=0
Enable or disable the given channel.
virtual bool anyChannelEnabled()=0
Check if there is at least one enabled channel.