GNU Radio's IIO Package
gr::iio::attr_updater Class Referenceabstract

Generic helper block to create message in a format that will be accepted by the IIO Attribute Sink Block. More...

#include <attr_updater.h>

Inheritance diagram for gr::iio::attr_updater:
gr::iio::attr_updater_impl

Public Types

typedef std::shared_ptr< attr_updatersptr
 

Public Member Functions

virtual void set_value (std::string value)=0
 

Static Public Member Functions

static sptr make (const std::string attribute, const std::string value, unsigned int interval_ms)
 Return a shared_ptr to a new instance of iio::attr_updater. More...
 

Detailed Description

Generic helper block to create message in a format that will be accepted by the IIO Attribute Sink Block.

This block is a simple but flexible message source which can be connected to the IIO Attribute Sink block for easy interaction and real-time control of IIO driver attributes.

Member Typedef Documentation

◆ sptr

typedef std::shared_ptr<attr_updater> gr::iio::attr_updater::sptr

Member Function Documentation

◆ make()

static sptr gr::iio::attr_updater::make ( const std::string  attribute,
const std::string  value,
unsigned int  interval_ms 
)
static

Return a shared_ptr to a new instance of iio::attr_updater.

Parameters
attributeString of name of attribute to be updated
valueString of value to update the attribute too
interval_msInteger of interval in milliseconds to produce messages. If zero outputs will be made only on callback changes and when the flowgraph starts

◆ set_value()

virtual void gr::iio::attr_updater::set_value ( std::string  value)
pure virtual

Implemented in gr::iio::attr_updater_impl.


The documentation for this class was generated from the following file: