libm2k
|
Contains the representation of a generic IIO context. More...
Modules | |
ContextBuilder | |
Creates/destroys the context. | |
Classes | |
class | libm2k::context::Context |
Controls the IIO context. More... | |
Functions | |
virtual std::string | libm2k::context::Context::getUri ()=0 |
Get the URI of the current context. More... | |
virtual libm2k::analog::DMM * | libm2k::context::Context::getDMM (unsigned int index)=0 |
Retrieve the DMM object at a certain index. More... | |
virtual libm2k::analog::DMM * | libm2k::context::Context::getDMM (std::string name)=0 |
Retrieve the DMM object which has the provided name. More... | |
virtual std::vector< libm2k::analog::DMM * > | libm2k::context::Context::getAllDmm ()=0 |
Retrieve all the DMM objects. More... | |
virtual std::vector< std::string > | libm2k::context::Context::getAvailableContextAttributes ()=0 |
Retrieve all the available context attributes. More... | |
virtual std::string | libm2k::context::Context::getContextAttributeValue (std::string attr)=0 |
Retrieve the value of one context attribute. More... | |
virtual std::string | libm2k::context::Context::getContextDescription ()=0 |
Retrieve a detailed context description. More... | |
virtual std::string | libm2k::context::Context::getSerialNumber ()=0 |
Retrieve the current context serial number. More... | |
virtual std::unordered_set< std::string > | libm2k::context::Context::getAllDevices () const =0 |
Retrieve all the available devices. More... | |
virtual void | libm2k::context::Context::logAllAttributes () const =0 |
Log all the attributes. More... | |
virtual M2k * | libm2k::context::Context::toM2k ()=0 |
Convert the current context to M2k context, if possible. More... | |
virtual Lidar * | libm2k::context::Context::toLidar ()=0 |
Convert the current context to Lidar context, if possible. More... | |
virtual Generic * | libm2k::context::Context::toGeneric ()=0 |
Convert the current context to Generic context, if possible. More... | |
virtual unsigned int | libm2k::context::Context::getDmmCount ()=0 |
Retrieve the number of DMM objects. More... | |
virtual std::string | libm2k::context::Context::getFirmwareVersion ()=0 |
Retrieve the firmware version of the current context. More... | |
virtual const struct libm2k::IIO_CONTEXT_VERSION | libm2k::context::Context::getIioContextVersion ()=0 |
virtual struct iio_context * | libm2k::context::Context::getIioContext ()=0 |
virtual void | libm2k::context::Context::setTimeout (unsigned int timeout)=0 |
Set a timeout for I/O operations. More... | |
Contains the representation of a generic IIO context.
|
pure virtual |
Retrieve all the available devices.
|
pure virtual |
Retrieve all the DMM objects.
|
pure virtual |
Retrieve all the available context attributes.
|
pure virtual |
Retrieve the value of one context attribute.
attr | The name of the required attribute |
On | error, throw an exception if the attribute is not found |
|
pure virtual |
Retrieve a detailed context description.
|
pure virtual |
Retrieve the DMM object at a certain index.
index | The index corresponding to the DMM |
|
pure virtual |
Retrieve the DMM object which has the provided name.
name | The name corresponding to the DMM |
|
pure virtual |
Retrieve the number of DMM objects.
|
pure virtual |
Retrieve the firmware version of the current context.
|
pure virtual |
Retrieve the iio context
|
pure virtual |
Get the version of the backend in use
|
pure virtual |
Retrieve the current context serial number.
|
pure virtual |
Get the URI of the current context.
|
pure virtual |
Log all the attributes.
|
pure virtual |
Set a timeout for I/O operations.
timeout | A positive integer representing the time in milliseconds after which a timeout occurs. A value of 0 is used to specify that no timeout should occur. |
|
pure virtual |
Convert the current context to Generic context, if possible.
|
pure virtual |
Convert the current context to Lidar context, if possible.