Device

class Device : public iiopp::impl::IndexedSequence<Device, Channel>

C++ wrapper for the Device C-API.

Public Functions

inline unsigned int size() const
inline Channel operator[](unsigned int i)
Device() = delete
inline Device(iio_device *dev)
inline operator iio_device*() const
inline Context context()
inline cstr id() const
inline optstr name() const
inline optstr label() const
inline unsigned int channels_count() const
inline unsigned int attrs_count() const
inline optional<Channel> channel(unsigned int idx) const
inline optional<Attr> attr(unsigned int idx)
inline optional<Channel> find_channel(cstr name, bool output) const
inline optional<Attr> find_attr(cstr name)
inline void set_data(void *data)
inline void *data() const
inline Device trigger() const
inline void set_trigger(iio_device const *trigger)
inline bool is_trigger() const
inline unsigned int buffers_count() const
inline optional<Buffer> buffer(unsigned int idx) const
inline bool is_hwmon() const
inline EventStreamPtr create_event_stream()
inline ssize_t sample_size(iio_channels_mask *mask) const
inline unsigned int debug_attrs_count() const
inline optional<Attr> debug_attr(unsigned int idx)
inline optional<Attr> find_debug_attr(cstr name)
inline unsigned int event_attrs_count() const
inline optional<Attr> event_attr(unsigned int idx)
inline optional<Attr> find_event_attr(cstr name)
inline void reg_write(uint32_t address, uint32_t value)
inline uint32_t reg_read(uint32_t address)

Public Members

AttrSeq attrs
DebugAttrSeq debug_attrs
EventAttrSeq event_attrs