/external/libiio/src/ |
D | iio.h | 81 struct iio_device; 446 __api __pure struct iio_device * iio_context_get_device( 457 __api __pure struct iio_device * iio_context_find_device( 484 const struct iio_device *dev); 490 __api __pure const char * iio_device_get_id(const struct iio_device *dev); 498 __api __pure const char * iio_device_get_name(const struct iio_device *dev); 505 const struct iio_device *dev); 512 const struct iio_device *dev); 518 const struct iio_device *dev); 526 const struct iio_device *dev, unsigned int index); [all …]
|
D | iio-private.h | 100 ssize_t (*read)(const struct iio_device *dev, void *dst, size_t len, 102 ssize_t (*write)(const struct iio_device *dev, 104 int (*open)(const struct iio_device *dev, 106 int (*close)(const struct iio_device *dev); 107 int (*get_fd)(const struct iio_device *dev); 108 int (*set_blocking_mode)(const struct iio_device *dev, bool blocking); 110 void (*cancel)(const struct iio_device *dev); 112 int (*set_kernel_buffers_count)(const struct iio_device *dev, 114 ssize_t (*get_buffer)(const struct iio_device *dev, 118 ssize_t (*read_device_attr)(const struct iio_device *dev, [all …]
|
D | device.c | 66 char * iio_device_get_xml(const struct iio_device *dev, size_t *length) in iio_device_get_xml() 225 const char * iio_device_get_id(const struct iio_device *dev) in iio_device_get_id() 230 const char * iio_device_get_name(const struct iio_device *dev) in iio_device_get_name() 235 unsigned int iio_device_get_channels_count(const struct iio_device *dev) in iio_device_get_channels_count() 240 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() 265 unsigned int iio_device_get_attrs_count(const struct iio_device *dev) in iio_device_get_attrs_count() 270 const char * iio_device_get_attr(const struct iio_device *dev, in iio_device_get_attr() 279 const char * iio_device_find_attr(const struct iio_device *dev, in iio_device_find_attr() 291 unsigned int iio_device_get_buffer_attrs_count(const struct iio_device *dev) in iio_device_get_buffer_attrs_count() [all …]
|
D | iiod-client.h | 44 const struct iio_device *dev, 45 const struct iio_device **trigger); 47 const struct iio_device *dev, const struct iio_device *trigger); 49 void *desc, const struct iio_device *dev, unsigned int nb_blocks); 53 const struct iio_device *dev, const struct iio_channel *chn, 56 const struct iio_device *dev, const struct iio_channel *chn, 59 const struct iio_device *dev, size_t samples_count, 62 const struct iio_device *dev); 64 const struct iio_device *dev, void *dst, size_t len, 67 const struct iio_device *dev, const void *src, size_t len);
|
D | local.c | 59 static ssize_t local_read_dev_attr(const struct iio_device *dev, 63 static ssize_t local_write_dev_attr(const struct iio_device *dev, 139 static void local_free_pdata(struct iio_device *device) in local_free_pdata() 159 struct iio_device *dev = ctx->devices[i]; in local_shutdown() 279 static int device_check_ready(const struct iio_device *dev, short events, in device_check_ready() 317 static ssize_t local_read(const struct iio_device *dev, in local_read() 368 static ssize_t local_write(const struct iio_device *dev, in local_write() 416 static ssize_t local_enable_buffer(const struct iio_device *dev) in local_enable_buffer() 431 static int local_set_kernel_buffers_count(const struct iio_device *dev, in local_set_kernel_buffers_count() 444 static ssize_t local_get_buffer(const struct iio_device *dev, in local_get_buffer() [all …]
|
D | sort.c | 72 const struct iio_device *tmp1 = *(struct iio_device **)p1; in iio_device_compare() 73 const struct iio_device *tmp2 = *(struct iio_device **)p2; in iio_device_compare()
|
D | serial.c | 69 static int serial_open(const struct iio_device *dev, in serial_open() 91 static int serial_close(const struct iio_device *dev) in serial_close() 110 static ssize_t serial_read(const struct iio_device *dev, void *dst, size_t len, in serial_read() 125 static ssize_t serial_write(const struct iio_device *dev, in serial_write() 139 static ssize_t serial_read_dev_attr(const struct iio_device *dev, in serial_read_dev_attr() 149 static ssize_t serial_write_dev_attr(const struct iio_device *dev, in serial_write_dev_attr() 162 const struct iio_device *dev = iio_channel_get_device(chn); in serial_read_chn_attr() 173 const struct iio_device *dev = iio_channel_get_device(chn); in serial_write_chn_attr() 181 static int serial_set_kernel_buffers_count(const struct iio_device *dev, in serial_set_kernel_buffers_count() 255 const struct iio_device *dev = iio_context_get_device(ctx, i); in serial_shutdown() [all …]
|
D | iiod-client.c | 208 const struct iio_device *dev, const struct iio_device **trigger) in iiod_client_get_trigger() 241 struct iio_device *cur = iio_context_get_device(ctx, i); in iiod_client_get_trigger() 263 const struct iio_device *dev, const struct iio_device *trigger) in iiod_client_set_trigger() 284 const struct iio_device *dev, unsigned int nb_blocks) in iiod_client_set_kernel_buffers_count() 335 const struct iio_device *dev, const struct iio_channel *chn, in iiod_client_read_attr() 416 const struct iio_device *dev, const struct iio_channel *chn, in iiod_client_write_attr() 531 const struct iio_device *dev, size_t samples_count, bool cyclic) in iiod_client_open_unlocked() 551 const struct iio_device *dev) in iiod_client_close_unlocked() 594 const struct iio_device *dev, void *dst, size_t len, in iiod_client_read_unlocked() 644 const struct iio_device *dev, const void *src, size_t len) in iiod_client_write_unlocked()
|
D | mainpage.dox | 16 The basic bricks of the libiio API are the iio_context, iio_device, iio_channel and iio_buffer clas… 20 - A iio_context object may contain zero or more iio_device objects. 21 A iio_device object is associated with only one iio_context. 23 - A iio_device object may contain zero or more iio_channel objects. A iio_channel object is associa… 24 - A iio_device object may be associated with one iio_buffer object, and a iio_buffer object is asso… 41 - Then, each iio_device object can be accessed with iio_context_get_device(). 44 Each iio_device object has an ID that can be used as identifier. This ID can be retrieved with iio_… 48 - From the iio_device object, you can obtain the number of available channels with iio_device_get_c… 58 Different kinds of parameters are available: parameters that apply to a iio_device, and parameters … 113 In libiio, triggers are just regular iio_device objects. To check if an iio_device can be used as a… [all …]
|
D | buffer.c | 31 static bool device_is_high_speed(const struct iio_device *dev) in device_is_high_speed() 42 struct iio_buffer * iio_device_create_buffer(const struct iio_device *dev, in iio_device_create_buffer() 134 const struct iio_device *dev = buffer->dev; in iio_buffer_refill() 154 const struct iio_device *dev = buffer->dev; in iio_buffer_push() 206 const struct iio_device *dev = buffer->dev; in iio_buffer_foreach_sample() 313 const struct iio_device * iio_buffer_get_device(const struct iio_buffer *buf) in iio_buffer_get_device()
|
D | xml.c | 72 static int add_attr_to_device(struct iio_device *dev, xmlNode *n, enum iio_attr_type type) in add_attr_to_device() 172 static struct iio_channel * create_channel(struct iio_device *dev, xmlNode *n) in create_channel() 230 static struct iio_device * create_device(struct iio_context *ctx, xmlNode *n) in create_device() 233 struct iio_device *dev = zalloc(sizeof(*dev)); in create_device() 365 struct iio_device **devs, *dev; in iio_create_xml_context_helper() 387 sizeof(struct iio_device *)); in iio_create_xml_context_helper()
|
D | usb.c | 195 static int usb_reserve_ep_unlocked(const struct iio_device *dev) in usb_reserve_ep_unlocked() 215 static void usb_free_ep_unlocked(const struct iio_device *dev) in usb_free_ep_unlocked() 230 static int usb_open(const struct iio_device *dev, in usb_open() 285 static int usb_close(const struct iio_device *dev) in usb_close() 311 static ssize_t usb_read(const struct iio_device *dev, void *dst, size_t len, in usb_read() 325 static ssize_t usb_write(const struct iio_device *dev, in usb_write() 339 static ssize_t usb_read_dev_attr(const struct iio_device *dev, in usb_read_dev_attr() 349 static ssize_t usb_write_dev_attr(const struct iio_device *dev, in usb_write_dev_attr() 379 static int usb_set_kernel_buffers_count(const struct iio_device *dev, in usb_set_kernel_buffers_count() 421 struct iio_device *dev = ctx->devices[i]; in usb_shutdown() [all …]
|
D | network.c | 559 static void network_cancel(const struct iio_device *dev) in network_cancel() 726 static int network_open(const struct iio_device *dev, in network_open() 778 static int network_close(const struct iio_device *dev) in network_close() 816 static ssize_t network_read(const struct iio_device *dev, void *dst, size_t len, in network_read() 830 static ssize_t network_write(const struct iio_device *dev, in network_write() 956 static ssize_t write_rwbuf_command(const struct iio_device *dev, in write_rwbuf_command() 1037 static ssize_t network_get_buffer(const struct iio_device *dev, in network_get_buffer() 1150 static ssize_t network_read_dev_attr(const struct iio_device *dev, in network_read_dev_attr() 1159 static ssize_t network_write_dev_attr(const struct iio_device *dev, in network_write_dev_attr() 1186 static int network_get_trigger(const struct iio_device *dev, in network_get_trigger() [all …]
|
D | context.c | 181 struct iio_device * iio_context_get_device(const struct iio_context *ctx, in iio_context_get_device() 190 struct iio_device * iio_context_find_device(const struct iio_context *ctx, in iio_context_find_device() 195 struct iio_device *dev = ctx->devices[i]; in iio_context_find_device() 203 static void reorder_channels(struct iio_device *dev) in reorder_channels()
|
/external/libiio/include/ |
D | iio.h | 81 struct iio_device; 446 __api __pure struct iio_device * iio_context_get_device( 457 __api __pure struct iio_device * iio_context_find_device( 484 const struct iio_device *dev); 490 __api __pure const char * iio_device_get_id(const struct iio_device *dev); 498 __api __pure const char * iio_device_get_name(const struct iio_device *dev); 505 const struct iio_device *dev); 512 const struct iio_device *dev); 518 const struct iio_device *dev); 526 const struct iio_device *dev, unsigned int index); [all …]
|
/external/libiio/src/iiod/ |
D | ops.h | 60 struct iio_device *dev; 84 int open_dev(struct parser_pdata *pdata, struct iio_device *dev, 86 int close_dev(struct parser_pdata *pdata, struct iio_device *dev); 88 ssize_t rw_dev(struct parser_pdata *pdata, struct iio_device *dev, 91 ssize_t read_dev_attr(struct parser_pdata *pdata, struct iio_device *dev, 93 ssize_t write_dev_attr(struct parser_pdata *pdata, struct iio_device *dev, 101 ssize_t get_trigger(struct parser_pdata *pdata, struct iio_device *dev); 103 struct iio_device *dev, const char *trig); 107 struct iio_device *dev, long value);
|
D | ops.c | 50 struct iio_device *dev; 105 struct iio_device *dev; 525 struct iio_device *dev = entry->dev; in rw_thd() 753 struct iio_device *dev) in parser_lookup_thd_entry() 766 struct iio_device *dev, unsigned int nb, bool is_write) in rw_buffer() 872 static int open_dev_helper(struct parser_pdata *pdata, struct iio_device *dev, in open_dev_helper() 1052 static int close_dev_helper(struct parser_pdata *pdata, struct iio_device *dev) in close_dev_helper() 1069 int open_dev(struct parser_pdata *pdata, struct iio_device *dev, in open_dev() 1077 int close_dev(struct parser_pdata *pdata, struct iio_device *dev) in close_dev() 1084 ssize_t rw_dev(struct parser_pdata *pdata, struct iio_device *dev, in rw_dev() [all …]
|
/external/libiio/src/examples/ |
D | ad9361-iiostream.c | 116 static struct iio_device* get_ad9361_phy(struct iio_context *ctx) in get_ad9361_phy() 118 struct iio_device *dev = iio_context_find_device(ctx, "ad9361-phy"); in get_ad9361_phy() 124 static bool get_ad9361_stream_dev(struct iio_context *ctx, enum iodev d, struct iio_device **dev) in get_ad9361_stream_dev() 134 static bool get_ad9361_stream_ch(struct iio_context *ctx, enum iodev d, struct iio_device *dev, int… in get_ad9361_stream_ch() 186 struct iio_device *tx; in main() 187 struct iio_device *rx; in main()
|
D | ad9371-iiostream.c | 134 static struct iio_device* get_ad9371_phy(struct iio_context *ctx) in get_ad9371_phy() 136 struct iio_device *dev = iio_context_find_device(ctx, "ad9371-phy"); in get_ad9371_phy() 142 static bool get_ad9371_stream_dev(struct iio_context *ctx, enum iodev d, struct iio_device **dev) in get_ad9371_stream_dev() 152 static bool get_ad9371_stream_ch(struct iio_context *ctx, enum iodev d, struct iio_device *dev, int… in get_ad9371_stream_ch() 204 struct iio_device *tx; in main() 205 struct iio_device *rx; in main()
|
D | dummy-iiostream.c | 104 static struct iio_device *dev; 207 struct iio_device *trigger; in main()
|
/external/libiio/src/tests/ |
D | iio_adi_xflow_check.c | 81 static struct iio_device *get_device(const struct iio_context *ctx, in get_device() 86 struct iio_device *device; in get_device() 110 struct iio_device *dev; in monitor_thread_fn() 214 struct iio_device *dev; in main()
|
D | iio_reg.c | 26 struct iio_device *dev; in write_reg() 60 struct iio_device *dev; in read_reg()
|
D | iio_attr.c | 147 static void dump_device_attributes(const struct iio_device *dev, in dump_device_attributes() 182 static void dump_buffer_attributes(const struct iio_device *dev, in dump_buffer_attributes() 220 static void dump_debug_attributes(const struct iio_device *dev, in dump_debug_attributes() 258 static void dump_channel_attributes(const struct iio_device *dev, in dump_channel_attributes() 582 const struct iio_device *dev = iio_context_get_device(ctx, i); in main()
|
D | iio_info.c | 158 static int dev_is_buffer_capable(const struct iio_device *dev) in dev_is_buffer_capable() 296 const struct iio_device *dev = iio_context_get_device(ctx, i); in main() 436 const struct iio_device *trig; in main()
|
D | iio_readdev.c | 255 struct iio_device *dev; in main() 325 struct iio_device *trigger = iio_context_find_device( in main()
|