Home
last modified time | relevance | path

Searched refs:iio_channel (Results 1 – 25 of 31) sorted by relevance

12

/external/libiio/src/
Diio.h82 struct iio_channel;
525 __api __pure struct iio_channel * iio_device_get_channel(
553 __api __pure struct iio_channel * iio_device_find_channel(
960 const struct iio_channel *chn);
966 __api __pure const char * iio_channel_get_id(const struct iio_channel *chn);
974 __api __pure const char * iio_channel_get_name(const struct iio_channel *chn);
980 __api __pure bool iio_channel_is_output(const struct iio_channel *chn);
990 __api __pure bool iio_channel_is_scan_element(const struct iio_channel *chn);
997 const struct iio_channel *chn);
1006 const struct iio_channel *chn, unsigned int index);
[all …]
Dchannel.c130 void iio_channel_init_finalize(struct iio_channel *chn) in iio_channel_init_finalize()
188 static char * get_scan_element(const struct iio_channel *chn, size_t *length) in get_scan_element()
216 char * iio_channel_get_xml(const struct iio_channel *chn, size_t *length) in iio_channel_get_xml()
295 const char * iio_channel_get_id(const struct iio_channel *chn) in iio_channel_get_id()
300 const char * iio_channel_get_name(const struct iio_channel *chn) in iio_channel_get_name()
305 bool iio_channel_is_output(const struct iio_channel *chn) in iio_channel_is_output()
310 bool iio_channel_is_scan_element(const struct iio_channel *chn) in iio_channel_is_scan_element()
315 enum iio_modifier iio_channel_get_modifier(const struct iio_channel *chn) in iio_channel_get_modifier()
320 enum iio_chan_type iio_channel_get_type(const struct iio_channel *chn) in iio_channel_get_type()
325 unsigned int iio_channel_get_attrs_count(const struct iio_channel *chn) in iio_channel_get_attrs_count()
[all …]
Dsort.c40 const struct iio_channel *tmp1 = *(struct iio_channel **)p1; in iio_channel_compare()
41 const struct iio_channel *tmp2 = *(struct iio_channel **)p2; in iio_channel_compare()
Diio-private.h123 ssize_t (*read_channel_attr)(const struct iio_channel *chn,
125 ssize_t (*write_channel_attr)(const struct iio_channel *chn,
172 struct iio_channel { struct
207 struct iio_channel **channels; argument
238 void free_channel(struct iio_channel *chn);
241 char *iio_channel_get_xml(const struct iio_channel *chn, size_t *len);
282 void iio_channel_init_finalize(struct iio_channel *chn);
Dlocal.c61 static ssize_t local_read_chn_attr(const struct iio_channel *chn,
65 static ssize_t local_write_chn_attr(const struct iio_channel *chn,
131 static void local_free_channel_pdata(struct iio_channel *chn) in local_free_channel_pdata()
178 static int set_channel_name(struct iio_channel *chn) in set_channel_name()
561 static ssize_t local_read_all_chn_attrs(const struct iio_channel *chn, in local_read_all_chn_attrs()
658 static ssize_t local_write_all_chn_attrs(const struct iio_channel *chn, in local_write_all_chn_attrs()
766 static const char * get_filename(const struct iio_channel *chn, in get_filename()
776 static ssize_t local_read_chn_attr(const struct iio_channel *chn, in local_read_chn_attr()
786 static ssize_t local_write_chn_attr(const struct iio_channel *chn, in local_write_chn_attr()
796 static int channel_write_state(const struct iio_channel *chn, bool en) in channel_write_state()
[all …]
Dbuffer.c26 ssize_t (*callback)(const struct iio_channel *, void *, size_t, void *);
200 ssize_t (*callback)(const struct iio_channel *, in iio_buffer_foreach_sample() argument
219 const struct iio_channel *chn = dev->channels[i]; in iio_buffer_foreach_sample()
256 const struct iio_channel *chn) in iio_buffer_first()
267 struct iio_channel *cur = buffer->dev->channels[i]; in iio_buffer_first()
Dxml.c26 static int add_attr_to_channel(struct iio_channel *chn, xmlNode *n) in add_attr_to_channel()
134 static void setup_scan_element(struct iio_channel *chn, xmlNode *n) in setup_scan_element()
172 static struct iio_channel * create_channel(struct iio_device *dev, xmlNode *n) in create_channel()
175 struct iio_channel *chn = zalloc(sizeof(*chn)); in create_channel()
258 struct iio_channel **chns, in create_device()
266 sizeof(struct iio_channel *)); in create_device()
Dmainpage.dox16 The basic bricks of the libiio API are the iio_context, iio_device, iio_channel and iio_buffer clas…
23 - A iio_device object may contain zero or more iio_channel objects. A iio_channel object is associa…
49 - Then, each iio_channel object can be accessed with iio_device_get_channel().
52 Each iio_channel can be either input, or output. This information can be retrieved with iio_channel…
53 As for the Device objects, the iio_channel object features an ID and optionally a name.
55 Important note: two iio_channel can have the same ID, as long as one is input and the other is outp…
58 …lable: parameters that apply to a iio_device, and parameters that apply to one or more iio_channel.
161 ssize_t sample_cb(const struct iio_channel *chn, void *src, size_t bytes, void *d)
223 The iio_device and iio_channel allow you to register a pointer, that can then be retrieved at a lat…
225 - A pointer can be registered with a iio_channel object using iio_channel_set_data(), and can be re…
Diiod-client.h53 const struct iio_device *dev, const struct iio_channel *chn,
56 const struct iio_device *dev, const struct iio_channel *chn,
Ddevice.c240 struct iio_channel * iio_device_get_channel(const struct iio_device *dev, in iio_device_get_channel()
249 struct iio_channel * iio_device_find_channel(const struct iio_device *dev, in iio_device_find_channel()
254 struct iio_channel *chn = dev->channels[i]; in iio_device_find_channel()
334 struct iio_channel *ch = dev->channels[i]; in iio_device_is_tx()
541 const struct iio_channel *prev = NULL; in iio_device_get_sample_size_mask()
547 const struct iio_channel *chn = dev->channels[i]; in iio_device_get_sample_size_mask()
845 const char *filename, struct iio_channel **chn, in iio_device_identify_filename()
851 struct iio_channel *ch = dev->channels[i]; in iio_device_identify_filename()
Dcontext.c212 struct iio_channel **channels = dev->channels; in reorder_channels()
222 struct iio_channel *bak = channels[i]; in reorder_channels()
Dserial.c159 static ssize_t serial_read_chn_attr(const struct iio_channel *chn, in serial_read_chn_attr()
170 static ssize_t serial_write_chn_attr(const struct iio_channel *chn, in serial_write_chn_attr()
/external/libiio/include/
Diio.h82 struct iio_channel;
525 __api __pure struct iio_channel * iio_device_get_channel(
553 __api __pure struct iio_channel * iio_device_find_channel(
960 const struct iio_channel *chn);
966 __api __pure const char * iio_channel_get_id(const struct iio_channel *chn);
974 __api __pure const char * iio_channel_get_name(const struct iio_channel *chn);
980 __api __pure bool iio_channel_is_output(const struct iio_channel *chn);
990 __api __pure bool iio_channel_is_scan_element(const struct iio_channel *chn);
997 const struct iio_channel *chn);
1006 const struct iio_channel *chn, unsigned int index);
[all …]
/external/libiio/src/examples/
Dad9371-iiostream.c56 static struct iio_channel *rx0_i = NULL;
57 static struct iio_channel *rx0_q = NULL;
58 static struct iio_channel *tx0_i = NULL;
59 static struct iio_channel *tx0_q = NULL;
95 static void wr_ch_lli(struct iio_channel *chn, const char* what, long long val) in wr_ch_lli()
101 static long long rd_ch_lli(struct iio_channel *chn, const char* what) in rd_ch_lli()
113 static void wr_ch_str(struct iio_channel *chn, const char* what, const char* str)
152 …ontext *ctx, enum iodev d, struct iio_device *dev, int chid, char modify, struct iio_channel **chn) in get_ad9371_stream_ch()
161 static bool get_phy_chan(struct iio_context *ctx, enum iodev d, int chid, struct iio_channel **chn) in get_phy_chan()
171 static bool get_lo_chan(struct iio_context *ctx, enum iodev d, struct iio_channel **chn) in get_lo_chan()
[all …]
Dad9361-iiostream.c58 static struct iio_channel *rx0_i = NULL;
59 static struct iio_channel *rx0_q = NULL;
60 static struct iio_channel *tx0_i = NULL;
61 static struct iio_channel *tx0_q = NULL;
97 static void wr_ch_lli(struct iio_channel *chn, const char* what, long long val) in wr_ch_lli()
103 static void wr_ch_str(struct iio_channel *chn, const char* what, const char* str) in wr_ch_str()
134 …(struct iio_context *ctx, enum iodev d, struct iio_device *dev, int chid, struct iio_channel **chn) in get_ad9361_stream_ch()
143 static bool get_phy_chan(struct iio_context *ctx, enum iodev d, int chid, struct iio_channel **chn) in get_phy_chan()
153 static bool get_lo_chan(struct iio_context *ctx, enum iodev d, struct iio_channel **chn) in get_lo_chan()
166 struct iio_channel *chn = NULL; in cfg_ad9361_streaming_ch()
Ddummy-iiostream.c109 static struct iio_channel **channels;
137 static ssize_t sample_cb(const struct iio_channel *chn, void *src, size_t bytes, void *d) in sample_cb()
235 struct iio_channel *chn = iio_device_get_channel(dev, i); in main()
251 struct iio_channel *chn = iio_device_get_channel(dev, i); in main()
Diio-monitor.c47 static bool channel_has_attr(struct iio_channel *chn, const char *attr) in channel_has_attr()
56 static bool is_valid_channel(struct iio_channel *chn) in is_valid_channel()
63 static double get_channel_value(struct iio_channel *chn) in get_channel_value()
158 struct iio_channel *chn = in read_thd()
/external/libiio/src/bindings/matlab/
Dlibiio_if_daq2.m51 iio_channel = {}; variable
233 obj.iio_channel{1} = calllib(obj.libname, 'iio_device_get_channel', obj.iio_dev, 0);
234 is_output = calllib(obj.libname, 'iio_channel_is_output', obj.iio_channel{1});
241 … obj.iio_channel{j+1} = calllib(obj.libname, 'iio_device_get_channel', obj.iio_dev, j);
243 calllib(obj.libname, 'iio_channel_enable', obj.iio_channel{j+1});
244 … is_scan_element = calllib(obj.libname, 'iio_channel_is_scan_element', obj.iio_channel{j+1});
249 … calllib(obj.libname, 'iio_channel_disable', obj.iio_channel{j+1});
258 obj.iio_channel = {};
268 obj.iio_channel = {};
310 obj.iio_channel{1} = calllib(obj.libname, 'iio_device_get_channel', obj.iio_dev, 0);
[all …]
Dlibiio_if.m51 iio_channel = {}; variable
233 obj.iio_channel{1} = calllib(obj.libname, 'iio_device_get_channel', obj.iio_dev, 0);
234 is_output = calllib(obj.libname, 'iio_channel_is_output', obj.iio_channel{1});
241 … obj.iio_channel{j+1} = calllib(obj.libname, 'iio_device_get_channel', obj.iio_dev, j);
242 calllib(obj.libname, 'iio_channel_enable', obj.iio_channel{j+1});
243 … is_scan_element = calllib(obj.libname, 'iio_channel_is_scan_element', obj.iio_channel{j+1});
254 obj.iio_channel = {};
264 obj.iio_channel = {};
306 obj.iio_channel{1} = calllib(obj.libname, 'iio_device_get_channel', obj.iio_dev, 0);
307 is_output = calllib(obj.libname, 'iio_channel_is_output', obj.iio_channel{1});
[all …]
/external/libiio/src/iiod/
Dops.h61 struct iio_channel *chn;
96 ssize_t read_chn_attr(struct parser_pdata *pdata, struct iio_channel *chn,
98 ssize_t write_chn_attr(struct parser_pdata *pdata, struct iio_channel *chn,
Dlexer.l135 struct iio_channel *chn = NULL;
Dops.c361 static ssize_t send_sample(const struct iio_channel *chn, in send_sample()
388 static ssize_t receive_sample(const struct iio_channel *chn, in receive_sample()
560 struct iio_channel *chn = dev->channels[i]; in rw_thd()
1173 struct iio_channel *chn, const char *attr) in read_chn_attr()
1191 struct iio_channel *chn, const char *attr, size_t len) in write_chn_attr()
/external/libiio/src/tests/
Diio_readdev.c187 static ssize_t print_sample(const struct iio_channel *chn, in print_sample()
360 struct iio_channel *ch = iio_device_get_channel(dev, i); in main()
Diio_writedev.c198 static ssize_t read_sample(const struct iio_channel *chn, in read_sample()
375 struct iio_channel *ch = iio_device_get_channel(dev, i); in main()
Diio_info.c163 struct iio_channel *chn = iio_device_get_channel(dev, i); in dev_is_buffer_capable()
310 struct iio_channel *ch = iio_device_get_channel(dev, j); in main()

12