libiio
1.0
Library for interfacing with IIO devices
|
C++ wrapper for the Channel C-API. More...
#include <bindings/cpp/iiopp.h>
Public Types | |
typedef impl::AttrSeqT< Channel > | AttrSeq |
Public Member Functions | |
Channel (iio_channel *chan) | |
operator iio_channel * () const | |
Device | device () const |
cstr | id () const |
optstr | name () const |
bool | is_output () const |
bool | is_scan_element () const |
unsigned int | attrs_count () const |
optional< Attr > | attr (unsigned int index) |
optional< Attr > | find_attr (cstr name) |
void | enable (iio_channels_mask *mask) |
void | disable (iio_channels_mask *mask) |
bool | is_enabled (iio_channels_mask *mask) const |
size_t | read (Block block, void *dst, size_t len, bool raw) const |
size_t | write (Block block, void const *src, size_t len, bool raw) |
void | set_data (void *data) |
void * | data () const |
iio_chan_type | type () const |
iio_modifier | modifier () const |
hwmon_chan_type | hwmon_type () const |
unsigned long | index () const |
iio_data_format const * | data_format () const |
void | convert (void *dst, void const *src) const |
void | convert_inverse (void *dst, void const *src) const |
Data Fields | |
AttrSeq | attrs |
C++ wrapper for the Channel C-API.