libiio
1.0
Library for interfacing with IIO devices
|
C++ wrapper for the Device C-API. More...
#include <bindings/cpp/iiopp.h>
Public Types | |
typedef impl::AttrSeqT< Device > | AttrSeq |
typedef impl::AttrSeqT< Device > | DebugAttrSeq |
Public Member Functions | |
unsigned int | size () const |
Channel | operator[] (unsigned int i) |
Device (iio_device *dev) | |
operator iio_device * () const | |
Context | context () |
cstr | id () const |
optstr | name () const |
optstr | label () const |
unsigned int | channels_count () const |
unsigned int | attrs_count () const |
optional< Channel > | channel (unsigned int idx) const |
optional< Attr > | attr (unsigned int idx) |
optional< Channel > | find_channel (cstr name, bool output) const |
optional< Attr > | find_attr (cstr name) |
void | set_data (void *data) |
void * | data () const |
Device | trigger () const |
void | set_trigger (iio_device const *trigger) |
bool | is_trigger () const |
BufferPtr | create_buffer (unsigned int idx, iio_channels_mask *mask) |
bool | is_hwmon () const |
EventStreamPtr | create_event_stream () |
ssize_t | sample_size (iio_channels_mask *mask) const |
unsigned int | debug_attrs_count () const |
optional< Attr > | debug_attr (unsigned int idx) |
optional< Attr > | find_debug_attr (cstr name) |
void | reg_write (uint32_t address, uint32_t value) |
uint32_t | reg_read (uint32_t address) |
![]() | |
Iterator | begin () |
Iterator | end () |
Data Fields | |
AttrSeq | attrs |
DebugAttrSeq | debug_attrs |
C++ wrapper for the Device C-API.