25#include <libm2k/m2kglobal.hpp>
26#include <libm2k/utils/enums.hpp>
27#include <libm2k/utils/utils.hpp>
63 virtual void reset() = 0;
69 virtual void deinitialize() = 0;
101 virtual std::vector<libm2k::analog::DMM*>
getAllDmm() = 0;
Controls the digital multimeter.
Definition dmm.hpp:45
Controls the IIO context.
Definition context.hpp:52
Controls the ADALM2000.
Definition m2k.hpp:55
Generic M2K enumerations.
virtual libm2k::analog::DMM * getDMM(unsigned int index)=0
Retrieve the DMM object at a certain index.
virtual std::unordered_set< std::string > getAllDevices() const =0
Retrieve all the available devices.
virtual std::string getFirmwareVersion()=0
Retrieve the firmware version of the current context.
virtual std::string getContextDescription()=0
Retrieve a detailed context description.
virtual struct iio_context * getIioContext()=0
virtual std::vector< std::string > getAvailableContextAttributes()=0
Retrieve all the available context attributes.
virtual std::string getUri()=0
Get the URI of the current context.
virtual void setTimeout(unsigned int timeout)=0
Set a timeout for I/O operations.
virtual void logAllAttributes() const =0
Log all the attributes.
virtual Generic * toGeneric()=0
Convert the current context to Generic context, if possible.
virtual M2k * toM2k()=0
Convert the current context to M2k context, if possible.
virtual unsigned int getDmmCount()=0
Retrieve the number of DMM objects.
virtual libm2k::analog::DMM * getDMM(std::string name)=0
Retrieve the DMM object which has the provided name.
virtual std::string getSerialNumber()=0
Retrieve the current context serial number.
virtual std::vector< libm2k::analog::DMM * > getAllDmm()=0
Retrieve all the DMM objects.
virtual std::string getContextAttributeValue(std::string attr)=0
Retrieve the value of one context attribute.
The version of the backend.
Definition enums.hpp:261