Skip to content

Commit

Permalink
c++: Add channel method to get label
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Nechita <[email protected]>
  • Loading branch information
dNechita committed Jan 27, 2025
1 parent 697fc3e commit c816a9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bindings/cpp/iiopp.h
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ class Channel
Device device() const;
cstr id() const {return iio_channel_get_id(p);}
optstr name() const { return impl::opt(iio_channel_get_name(p));}
optstr label() const { return impl::opt(iio_channel_get_label(p));}
bool is_output() const { return iio_channel_is_output(p);}
bool is_scan_element() const { return iio_channel_is_scan_element(p);}
unsigned int attrs_count() const {return iio_channel_get_attrs_count(p);}
Expand Down

0 comments on commit c816a9c

Please sign in to comment.