|
libm2k
|
Controls the ADALM2000. More...
#include <libm2k/m2k.hpp>


Public Member Functions | |
| virtual void | reset ()=0 |
| Reset the M2K device to default settings: More... | |
| virtual bool | calibrateADC ()=0 |
| Calibrate the ADC. More... | |
| virtual bool | calibrateDAC ()=0 |
| Calibrate the DAC. More... | |
| virtual double | calibrateFromContext ()=0 |
| Calibrate both ADC and DACs using predefined calibration values located in context. More... | |
| virtual libm2k::digital::M2kDigital * | getDigital ()=0 |
| Retrieve the Digital object. More... | |
| virtual libm2k::analog::M2kPowerSupply * | getPowerSupply ()=0 |
| Retrieve the PowerSupply object. More... | |
| virtual libm2k::analog::M2kAnalogIn * | getAnalogIn ()=0 |
| Retrieve the AnalogIn object. More... | |
| virtual libm2k::analog::M2kAnalogIn * | getAnalogIn (std::string dev_name)=0 |
| Retrieve the AnalogIn object of a device. More... | |
| virtual libm2k::analog::M2kAnalogOut * | getAnalogOut ()=0 |
| Retrieve the AnalogOut object. More... | |
| virtual bool | hasMixedSignal ()=0 |
| Check if the mixed signal acquisition is available on the current firmware version. More... | |
| virtual void | startMixedSignalAcquisition (unsigned int nb_samples)=0 |
| Initiate the mixed acquisition. More... | |
| virtual void | stopMixedSignalAcquisition ()=0 |
| Stop the mixed acquisition. More... | |
| virtual int | getDacCalibrationOffset (unsigned int chn)=0 |
| Get the calibration offset of the DAC. More... | |
| virtual double | getDacCalibrationGain (unsigned int chn)=0 |
| Get the calibration gain of the DAC. More... | |
| virtual int | getAdcCalibrationOffset (unsigned int chn)=0 |
| Get the calibration offset of the ADC. More... | |
| virtual double | getAdcCalibrationGain (unsigned int chn)=0 |
| Get the calibration gain of the ADC. More... | |
| virtual void | setDacCalibrationOffset (unsigned int chn, int offset)=0 |
| Set the calibration offset of the DAC. More... | |
| virtual void | setDacCalibrationGain (unsigned int chn, double gain)=0 |
| Set the calibration gain of the DAC. More... | |
| virtual void | setAdcCalibrationOffset (unsigned int chn, int offset)=0 |
| Set the calibration offset of the ADC. More... | |
| virtual void | setAdcCalibrationGain (unsigned int chn, double gain)=0 |
| Set the calibration gain of the ADC. More... | |
| virtual bool | hasContextCalibration ()=0 |
| Check if the calibration based on temperature can be performed. More... | |
| virtual std::map< double, std::shared_ptr< struct CALIBRATION_PARAMETERS > > & | getLUT ()=0 |
| Retrieve the predefined calibration parameter. More... | |
| virtual bool | isCalibrated ()=0 |
| Check if the board was calibrated. More... | |
| virtual void | setLed (bool on)=0 |
| Turn on or off the board's led. More... | |
| virtual bool | getLed ()=0 |
| Retrieve the state of the led. More... | |
Public Member Functions inherited from libm2k::context::Context | |
| virtual std::string | getUri ()=0 |
| Get the URI of the current context. More... | |
| virtual libm2k::analog::DMM * | getDMM (unsigned int index)=0 |
| Retrieve the DMM object at a certain index. More... | |
| virtual libm2k::analog::DMM * | getDMM (std::string name)=0 |
| Retrieve the DMM object which has the provided name. More... | |
| virtual std::vector< libm2k::analog::DMM * > | getAllDmm ()=0 |
| Retrieve all the DMM objects. More... | |
| virtual std::vector< std::string > | getAvailableContextAttributes ()=0 |
| Retrieve all the available context attributes. More... | |
| virtual std::string | getContextAttributeValue (std::string attr)=0 |
| Retrieve the value of one context attribute. More... | |
| virtual std::string | getContextDescription ()=0 |
| Retrieve a detailed context description. More... | |
| virtual std::string | getSerialNumber ()=0 |
| Retrieve the current context serial number. More... | |
| virtual std::unordered_set< std::string > | getAllDevices () const =0 |
| Retrieve all the available devices. More... | |
| virtual void | logAllAttributes () const =0 |
| Log all the attributes. More... | |
| virtual M2k * | toM2k ()=0 |
| Convert the current context to M2k context, if possible. More... | |
| virtual Generic * | toGeneric ()=0 |
| Convert the current context to Generic context, if possible. More... | |
| virtual unsigned int | getDmmCount ()=0 |
| Retrieve the number of DMM objects. More... | |
| virtual std::string | getFirmwareVersion ()=0 |
| Retrieve the firmware version of the current context. More... | |
| virtual const struct libm2k::IIO_CONTEXT_VERSION | getIioContextVersion ()=0 |
| virtual struct iio_context * | getIioContext ()=0 |
| virtual void | setTimeout (unsigned int timeout)=0 |
| Set a timeout for I/O operations. More... | |
Controls the ADALM2000.
1.8.15