libiio
Public Types | Public Member Functions | Public Attributes | List of all members
iiopp::Channel Class Reference

C++ wrapper for the Channel C-API. More...

#include <iiopp.h>

Collaboration diagram for iiopp::Channel:
Collaboration graph
[legend]

Public Types

typedef impl::AttrT< iio_channel, iio_channel_attr_read, iio_channel_attr_read_bool, iio_channel_attr_read_double, iio_channel_attr_read_longlong, iio_channel_attr_write, iio_channel_attr_write_bool, iio_channel_attr_write_double, iio_channel_attr_write_longlong > Attr
 
typedef impl::AttrSeqT< iio_channel, Attr, iio_channel_get_attrs_count, iio_channel_get_attr, iio_channel_find_attrAttrSeq
 

Public Member Functions

 Channel (iio_channel *chan)
 
 operator iio_channel * () const
 
optional< Attrattr (cstr name)
 
optional< Attrattr (unsigned int idx)
 
void disable ()
 
void enable ()
 
optstr find_attr (cstr name)
 
unsigned int attrs_count () const
 
void * data () const
 
Device device ()
 
cstr id () const
 
iio_modifier modifier () const
 
optstr name () const
 
iio_chan_type type () const
 
bool is_enabled () const
 
bool is_output () const
 
bool is_scan_element () const
 
size_t read (Buffer buffer, void *dst, size_t len) const
 
size_t read_raw (Buffer buffer, void *dst, size_t len) const
 
void set_data (void *data)
 
size_t write (Buffer buffer, void const *src, size_t len)
 
size_t write_raw (Buffer buffer, void const *src, size_t len)
 
void convert (void *dst, void const *src) const
 
void convert_inverse (void *dst, void const *src) const
 
iio_data_format const * data_format () const
 
unsigned long index () const
 

Public Attributes

AttrSeq attrs
 

Detailed Description

C++ wrapper for the Channel C-API.


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