Library API
libiio at its base is a C library. The API is designed to be as simple as possible, while still providing access to all the features of the IIO subsystem. Support for other languages is provided through bindings to the C API.
This section provides a detailed description of the C API. The API is divided into several categories, each of which is described in a separate page.
- Top-Level Functions
- Scanning Functions
- Attribute Functions
- Context Functions
iio_create_context()iio_context_destroy()iio_context_get_version_major()iio_context_get_version_minor()iio_context_get_version_tag()iio_context_get_xml()iio_context_get_name()iio_context_get_description()iio_context_get_attrs_count()iio_context_get_attr()iio_context_find_attr()iio_context_get_devices_count()iio_context_get_device()iio_context_find_device()iio_context_set_timeout()iio_context_get_params()iio_context_set_data()iio_context_get_data()iio_context_ping()iio_context
- Device Functions
iio_device_get_context()iio_device_get_id()iio_device_get_name()iio_device_get_label()iio_device_get_channels_count()iio_device_get_attrs_count()iio_device_get_buffers_count()iio_device_get_channel()iio_device_get_attr()iio_device_get_buffer()iio_device_find_channel()iio_device_find_attr()iio_device_set_data()iio_device_get_data()iio_device_get_trigger()iio_device_set_trigger()iio_device_is_trigger()iio_device
- Channel Functions
iio_channel_get_device()iio_channel_get_id()iio_channel_get_name()iio_channel_get_label()iio_channel_is_output()iio_channel_is_scan_element()iio_channel_get_attrs_count()iio_channel_get_attr()iio_channel_find_attr()iio_channel_get_event_attrs_count()iio_channel_get_event_attr()iio_channel_find_event_attr()iio_channel_enable()iio_channel_disable()iio_channel_is_enabled()iio_channel_read()iio_channel_write()iio_channel_set_data()iio_channel_get_data()iio_channel_get_type()iio_channel_get_modifier()iio_channel
- Buffer Functions
outerrlog_levelstderr_leveltimestamp_leveltimeout_msflags__rsrvidtimestamplengthbitsshiftis_signedis_fully_definedis_bewith_scalescalerepeatoffsetiio_buffer_get_device()iio_buffer_get_attrs_count()iio_buffer_get_attr()iio_buffer_get_scan_elements_count()iio_buffer_get_scan_element()iio_buffer_find_attr()iio_buffer_is_output()iio_buffer_set_data()iio_buffer_get_data()iio_attr_read_bool()iio_attr_read_longlong()iio_attr_read_double()iio_attr_write_string()iio_attr_write_bool()iio_attr_write_longlong()iio_attr_write_double()iio_bufferiio_buffer_stream_create_block()iio_block_destroy()iio_block_get_dmabuf_fd()iio_block_disable_cpu_access()iio_block_start()iio_block_first()iio_block_end()iio_block_foreach_sample()iio_block_enqueue()iio_block_dequeue()iio_block_get_buffer_stream()iio_blockiio_buffer_create_stream()iio_stream_cancel()iio_stream_destroy()iio_stream_get_next_block()iio_stream
- Event Handling Functions
- Hardware Monitoring Devices
- Debug and Low-Level Functions
iio_create_channels_mask()iio_channels_mask_destroy()iio_device_get_sample_size()iio_channel_get_index()iio_channel_get_data_format()iio_channel_convert()iio_channel_convert_inverse()iio_device_get_event_attrs_count()iio_device_get_event_attr()iio_device_find_event_attr()iio_device_get_debug_attrs_count()iio_device_get_debug_attr()iio_device_find_debug_attr()iio_device_reg_write()iio_device_reg_read()iio_data_format