25#include <libm2k/m2kglobal.hpp>
26#include <libm2k/context.hpp>
79 virtual void deinitialize() = 0;
84 virtual bool calibrate() = 0;
108 virtual bool resetCalibration() = 0;
169 virtual std::vector<libm2k::analog::M2kAnalogIn*> getAllAnalogIn() = 0;
175 virtual std::vector<libm2k::analog::M2kAnalogOut*> getAllAnalogOut() = 0;
291 virtual std::map<double, std::shared_ptr<struct CALIBRATION_PARAMETERS>> &
getLUT() = 0;
Controls the analogical input compound.
Definition m2kanalogin.hpp:47
Controls the analogical output compound.
Definition m2kanalogout.hpp:53
Controls the power supply.
Definition m2kpowersupply.hpp:42
Controls the IIO context.
Definition context.hpp:52
Controls the ADALM2000.
Definition m2k.hpp:55
Controls the digital input and output segment.
Definition m2kdigital.hpp:45
Generic M2K enumerations.
virtual bool calibrateDAC()=0
Calibrate the DAC.
virtual void setDacCalibrationOffset(unsigned int chn, int offset)=0
Set the calibration offset of the DAC.
virtual libm2k::digital::M2kDigital * getDigital()=0
Retrieve the Digital object.
virtual bool hasMixedSignal()=0
Check if the mixed signal acquisition is available on the current firmware version.
virtual void setDacCalibrationGain(unsigned int chn, double gain)=0
Set the calibration gain of the DAC.
virtual std::map< double, std::shared_ptr< struct CALIBRATION_PARAMETERS > > & getLUT()=0
Retrieve the predefined calibration parameter.
virtual double getAdcCalibrationGain(unsigned int chn)=0
Get the calibration gain of the ADC.
virtual libm2k::analog::M2kAnalogIn * getAnalogIn()=0
Retrieve the AnalogIn object.
virtual bool calibrateADC()=0
Calibrate the ADC.
virtual libm2k::analog::M2kAnalogOut * getAnalogOut()=0
Retrieve the AnalogOut object.
virtual void setAdcCalibrationOffset(unsigned int chn, int offset)=0
Set the calibration offset of the ADC.
virtual bool hasContextCalibration()=0
Check if the calibration based on temperature can be performed.
virtual libm2k::analog::M2kAnalogIn * getAnalogIn(std::string dev_name)=0
Retrieve the AnalogIn object of a device.
virtual int getDacCalibrationOffset(unsigned int chn)=0
Get the calibration offset of the DAC.
virtual bool getLed()=0
Retrieve the state of the led.
virtual void setLed(bool on)=0
Turn on or off the board's led.
virtual double getDacCalibrationGain(unsigned int chn)=0
Get the calibration gain of the DAC.
virtual void startMixedSignalAcquisition(unsigned int nb_samples)=0
Initiate the mixed acquisition.
virtual void stopMixedSignalAcquisition()=0
Stop the mixed acquisition.
virtual libm2k::analog::M2kPowerSupply * getPowerSupply()=0
Retrieve the PowerSupply object.
virtual int getAdcCalibrationOffset(unsigned int chn)=0
Get the calibration offset of the ADC.
virtual double calibrateFromContext()=0
Calibrate both ADC and DACs using predefined calibration values located in context.
virtual void setAdcCalibrationGain(unsigned int chn, double gain)=0
Set the calibration gain of the ADC.
virtual bool isCalibrated()=0
Check if the board was calibrated.
virtual void reset()=0
Reset the M2K device to default settings: