--- /srv/reproducible-results/rbuild-debian/r-b-build.IJBBr4tq/b1/libiio_0.21-2_amd64.changes
+++ /srv/reproducible-results/rbuild-debian/r-b-build.IJBBr4tq/b2/libiio_0.21-2_amd64.changes
├── Files
│ @@ -1,10 +1,10 @@
│
│ 7457909787329ab075ae792d97f75bad 82068 debug optional iiod-dbgsym_0.21-2_amd64.deb
│ 591613e4f637fc821d10681db6bb7442 31360 net optional iiod_0.21-2_amd64.deb
│ e509636c6b339ba49e24414205b6a96a 13340 libdevel optional libiio-dev_0.21-2_amd64.deb
│ da1caef9db7378c85e7d9a5ad156e049 132036 debug optional libiio-utils-dbgsym_0.21-2_amd64.deb
│ 674baf715e3b1bdaefc5a80d9a6e1851 71644 libs optional libiio-utils_0.21-2_amd64.deb
│ 65d4478ba32b05b70d832564bb404d9b 169148 debug optional libiio0-dbgsym_0.21-2_amd64.deb
│ - 8f6c048c830866e35574a7b828d2d9a7 3833836 doc optional libiio0-doc_0.21-2_all.deb
│ + 5cef1bd932160be60dcf397449ced4d4 3832768 doc optional libiio0-doc_0.21-2_all.deb
│ 4f90eb917e202d9aa765b591bb0a5ace 53608 libs optional libiio0_0.21-2_amd64.deb
│ 81a19e1defcaa7ddfeafe305ec11ffd4 14188 python optional python3-libiio_0.21-2_all.deb
├── libiio0-doc_0.21-2_all.deb
│ ├── file list
│ │ @@ -1,3 +1,3 @@
│ │ -rw-r--r-- 0 0 0 4 2020-10-31 23:26:57.000000 debian-binary
│ │ -rw-r--r-- 0 0 0 18460 2020-10-31 23:26:57.000000 control.tar.xz
│ │ --rw-r--r-- 0 0 0 3815184 2020-10-31 23:26:57.000000 data.tar.xz
│ │ +-rw-r--r-- 0 0 0 3814116 2020-10-31 23:26:57.000000 data.tar.xz
│ ├── control.tar.xz
│ │ ├── control.tar
│ │ │ ├── ./control
│ │ │ │ @@ -1,13 +1,13 @@
│ │ │ │ Package: libiio0-doc
│ │ │ │ Source: libiio
│ │ │ │ Version: 0.21-2
│ │ │ │ Architecture: all
│ │ │ │ Maintainer: A. Maitland Bottoms
│ │ │ │ -Installed-Size: 8814
│ │ │ │ +Installed-Size: 8800
│ │ │ │ Depends: libjs-jquery
│ │ │ │ Section: doc
│ │ │ │ Priority: optional
│ │ │ │ Multi-Arch: foreign
│ │ │ │ Homepage: https://github.com/analogdevicesinc/libiio
│ │ │ │ Description: libiio documentation
│ │ │ │ Libiio is a library that has been conceived to ease the development of
│ │ │ ├── ./md5sums
│ │ │ │ ├── ./md5sums
│ │ │ │ │┄ Files differ
│ ├── data.tar.xz
│ │ ├── data.tar
│ │ │ ├── file list
│ │ │ │ @@ -735,15 +735,15 @@
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 2925 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/man1/iio_reg.1.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 4690 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/man1/iio_writedev.1.html
│ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/man3/
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 19136 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/man3/libiio.3.html
│ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 230 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/.buildinfo
│ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_modules/
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 180674 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_modules/iio.html
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 179763 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_modules/iio.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 107927 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_modules/iio_attr.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 24504 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_modules/iio_info.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 35359 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_modules/iio_readdev.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 38534 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_modules/iio_writedev.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 4364 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_modules/index.html
│ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_sources/
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 89 2020-06-17 09:39:16.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_sources/buffer.rst.txt
│ │ │ │ @@ -787,24 +787,24 @@
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 10847 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_static/language_data.js
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 90 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_static/minus.png
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 90 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_static/plus.png
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 4753 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_static/pygments.css
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 16323 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_static/searchtools.js
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 58881 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/_static/underscore.js
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 5073 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/buffer.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 15341 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/channel.html
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 5953 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/channel.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 22072 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/context.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 15109 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/device.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 8554 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/examples.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 21303 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/genindex.html
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 19198 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/genindex.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 113368 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/iio_attr.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 8494 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/iio_info.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 11501 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/iio_readdev.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 11525 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/iio_writedev.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 7303 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/index.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 1096 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/objects.inv
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 992 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/objects.inv
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 5085 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/py-modindex.html
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 4527 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/search.html
│ │ │ │ --rw-r--r-- 0 root (0) root (0) 9973 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/searchindex.js
│ │ │ │ +-rw-r--r-- 0 root (0) root (0) 9211 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/searchindex.js
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 11306 2020-10-31 23:26:57.000000 ./usr/share/doc/libiio0-doc/v0.21/python/trigger.html
│ │ │ │ drwxr-xr-x 0 root (0) root (0) 0 2020-10-31 23:26:57.000000 ./usr/share/doc-base/
│ │ │ │ -rw-r--r-- 0 root (0) root (0) 255 2020-09-12 01:35:33.000000 ./usr/share/doc-base/libiio0-doc
│ │ │ ├── ./usr/share/doc/libiio0-doc/v0.21/python/_modules/iio.html
│ │ │ │ @@ -260,31 +260,31 @@
│ │ │ │ pass
│ │ │ │
│ │ │ │
│ │ │ │ class _Buffer(Structure):
│ │ │ │ pass
│ │ │ │
│ │ │ │
│ │ │ │ -
│ │ │ │ + ]
│ │ │ │
│ │ │ │
│ │ │ │ -[docs]class ChannelModifier(Enum):
│ │ │ │ +
class ChannelModifier(Enum):
│ │ │ │
"""Contains the modifier type of an IIO channel."""
│ │ │ │
│ │ │ │
IIO_NO_MOD = 0
│ │ │ │
IIO_MOD_X = 1
│ │ │ │
IIO_MOD_Y = 2
│ │ │ │
IIO_MOD_Z = 3
│ │ │ │
IIO_MOD_X_AND_Y = 4
│ │ │ │ @@ -323,15 +323,15 @@
│ │ │ │
IIO_MOD_LIGHT_DUV = 37
│ │ │ │
IIO_MOD_PM1 = 38
│ │ │ │
IIO_MOD_PM2P5 = 39
│ │ │ │
IIO_MOD_PM4 = 40
│ │ │ │
IIO_MOD_PM10 = 41
│ │ │ │
IIO_MOD_ETHANOL = 42
│ │ │ │
IIO_MOD_H2 = 43
│ │ │ │ -
IIO_MOD_O2 = 44
│ │ │ │ + IIO_MOD_O2 = 44
│ │ │ │
│ │ │ │
│ │ │ │ [docs]class ChannelType(Enum):
│ │ │ │
"""Contains the type of an IIO channel."""
│ │ │ │
│ │ │ │
IIO_VOLTAGE = 0
│ │ │ │
IIO_CURRENT = 1
│ │ │ │ @@ -969,15 +969,15 @@
│ │ │ │
_d_read_buffer_attr(self._device, self._name_ascii, buf, len(buf))
│ │ │ │
return buf.value.decode("ascii")
│ │ │ │
│ │ │ │
def _write(self, value):
│ │ │ │
_d_write_buffer_attr(self._device, self._name_ascii, value.encode("ascii"))
│ │ │ │
│ │ │ │
│ │ │ │ -[docs]class Channel(object):
│ │ │ │ +
class Channel(object):
│ │ │ │
"""Represents a channel of an IIO device."""
│ │ │ │
│ │ │ │
def __init__(self, _channel):
│ │ │ │
"""
│ │ │ │
Initialize a new instance of the Channel class.
│ │ │ │
│ │ │ │
:param _channel: type=_ChannelPtr
│ │ │ │ @@ -997,15 +997,15 @@
│ │ │ │
self._id = _c_get_id(self._channel).decode("ascii")
│ │ │ │
│ │ │ │
name_raw = _c_get_name(self._channel)
│ │ │ │
self._name = name_raw.decode("ascii") if name_raw is not None else None
│ │ │ │
self._output = _c_is_output(self._channel)
│ │ │ │
self._scan_element = _c_is_scan_element(self._channel)
│ │ │ │
│ │ │ │ -
[docs] def read(self, buf, raw=False):
│ │ │ │ +
def read(self, buf, raw=False):
│ │ │ │
"""
│ │ │ │
Extract the samples corresponding to this channel from the given iio.Buffer object.
│ │ │ │
│ │ │ │
:param buf: type=iio.Buffer
│ │ │ │
A valid instance of the iio.Buffer class
│ │ │ │
:param raw: type=bool
│ │ │ │
If set to True, the samples are not converted from their
│ │ │ │ @@ -1017,17 +1017,17 @@
│ │ │ │
array = bytearray(buf._length)
│ │ │ │
mytype = c_char * len(array)
│ │ │ │
c_array = mytype.from_buffer(array)
│ │ │ │
if raw:
│ │ │ │
length = _c_read_raw(self._channel, buf._buffer, c_array, len(array))
│ │ │ │
else:
│ │ │ │
length = _c_read(self._channel, buf._buffer, c_array, len(array))
│ │ │ │ -
return array[:length]
│ │ │ │ +
return array[:length]
│ │ │ │
│ │ │ │ -
[docs] def write(self, buf, array, raw=False):
│ │ │ │ +
def write(self, buf, array, raw=False):
│ │ │ │
"""
│ │ │ │
Write the specified array of samples corresponding to this channel into the given iio.Buffer object.
│ │ │ │
│ │ │ │
:param buf: type=iio.Buffer
│ │ │ │
A valid instance of the iio.Buffer class
│ │ │ │
:param array: type=bytearray
│ │ │ │
The array containing the samples to copy
│ │ │ │ @@ -1038,15 +1038,15 @@
│ │ │ │
returns: type=int
│ │ │ │
The number of bytes written
│ │ │ │
"""
│ │ │ │
mytype = c_char * len(array)
│ │ │ │
c_array = mytype.from_buffer(array)
│ │ │ │
if raw:
│ │ │ │
return _c_write_raw(self._channel, buf._buffer, c_array, len(array))
│ │ │ │ -
return _c_write(self._channel, buf._buffer, c_array, len(array))
│ │ │ │ +
return _c_write(self._channel, buf._buffer, c_array, len(array))
│ │ │ │
│ │ │ │
id = property(
│ │ │ │
lambda self: self._id,
│ │ │ │
None,
│ │ │ │
None,
│ │ │ │
"An identifier of this channel.\n\tNote that it is possible that two channels have the same ID, if one is an input channel and the other is an output channel.\n\ttype=str",
│ │ │ │
)
│ │ │ │ @@ -1112,39 +1112,39 @@
│ │ │ │
def type(self):
│ │ │ │
"""
│ │ │ │
Type for the channel.
│ │ │ │
type: iio.ChannelType(Enum)
│ │ │ │
"""
│ │ │ │
return ChannelType(_channel_get_type(self._channel))
│ │ │ │
│ │ │ │ -
[docs] def convert(self, dst, src):
│ │ │ │ +
def convert(self, dst, src):
│ │ │ │
"""
│ │ │ │
Convert src and saves the result in dst, using current channel's data format.
│ │ │ │
│ │ │ │
:param dst: type=list
│ │ │ │
The variable where the result is stored.
│ │ │ │
:param src: type=list
│ │ │ │
Data to be converted.
│ │ │ │
"""
│ │ │ │
src_ptr = cast((c_char * (len(src) * self.data_format.length))(*src), c_void_p)
│ │ │ │
dst_ptr = cast((c_char * (len(dst) * self.data_format.length))(*dst), c_void_p)
│ │ │ │ -
_channel_convert(self._channel, src_ptr, dst_ptr)
│ │ │ │ +
_channel_convert(self._channel, src_ptr, dst_ptr)
│ │ │ │
│ │ │ │ -
[docs] def convert_inverse(self, dst, src):
│ │ │ │ +
def convert_inverse(self, dst, src):
│ │ │ │
"""
│ │ │ │
Convert the sample from host format to hardware format.
│ │ │ │
│ │ │ │
:param dst: type=list
│ │ │ │
The variable where the result is stored.
│ │ │ │
:param src: type=list
│ │ │ │
Data to be converted.
│ │ │ │
"""
│ │ │ │
src_ptr = cast((c_char * (len(src) * self.data_format.length))(*src), c_void_p)
│ │ │ │
dst_ptr = cast((c_char * (len(dst) * self.data_format.length))(*dst), c_void_p)
│ │ │ │ -
_channel_convert_inverse(self._channel, src_ptr, dst_ptr)
│ │ │ │ + _channel_convert_inverse(self._channel, src_ptr, dst_ptr)
│ │ │ │
│ │ │ │
│ │ │ │ class Buffer(object):
│ │ │ │ """The class used for all I/O operations."""
│ │ │ │
│ │ │ │ def __init__(self, device, samples_count, cyclic=False):
│ │ │ │ """
│ │ │ │ ├── html2text {}
│ │ │ │ │ @@ -125,15 +125,15 @@
│ │ │ │ │ pass
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ class _Buffer(Structure):
│ │ │ │ │ pass
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ -[docs]class DataFormat(Structure):
│ │ │ │ │ +class DataFormat(Structure):
│ │ │ │ │ """Represents the data format of an IIO channel."""
│ │ │ │ │
│ │ │ │ │ _fields_ = [
│ │ │ │ │ ("length", c_uint),
│ │ │ │ │ ("bits", c_uint),
│ │ │ │ │ ("shift", c_uint),
│ │ │ │ │ ("is_signed", c_bool),
│ │ │ │ │ @@ -141,16 +141,15 @@
│ │ │ │ │ ("is_be", c_bool),
│ │ │ │ │ ("with_scale", c_bool),
│ │ │ │ │ ("scale", c_double),
│ │ │ │ │ ("repeat", c_uint),
│ │ │ │ │ ]
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ -
│ │ │ │ │ -[docs]class ChannelModifier(Enum):
│ │ │ │ │ +class ChannelModifier(Enum):
│ │ │ │ │ """Contains the modifier type of an IIO channel."""
│ │ │ │ │
│ │ │ │ │ IIO_NO_MOD = 0
│ │ │ │ │ IIO_MOD_X = 1
│ │ │ │ │ IIO_MOD_Y = 2
│ │ │ │ │ IIO_MOD_Z = 3
│ │ │ │ │ IIO_MOD_X_AND_Y = 4
│ │ │ │ │ @@ -192,15 +191,14 @@
│ │ │ │ │ IIO_MOD_PM4 = 40
│ │ │ │ │ IIO_MOD_PM10 = 41
│ │ │ │ │ IIO_MOD_ETHANOL = 42
│ │ │ │ │ IIO_MOD_H2 = 43
│ │ │ │ │ IIO_MOD_O2 = 44
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ -
│ │ │ │ │ [docs]class ChannelType(Enum):
│ │ │ │ │ """Contains the type of an IIO channel."""
│ │ │ │ │
│ │ │ │ │ IIO_VOLTAGE = 0
│ │ │ │ │ IIO_CURRENT = 1
│ │ │ │ │ IIO_POWER = 2
│ │ │ │ │ IIO_ACCEL = 3
│ │ │ │ │ @@ -846,15 +844,15 @@
│ │ │ │ │
│ │ │ │ │ def _write(self, value):
│ │ │ │ │ _d_write_buffer_attr(self._device, self._name_ascii, value.encode
│ │ │ │ │ ("ascii"))
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ -[docs]class Channel(object):
│ │ │ │ │ +class Channel(object):
│ │ │ │ │ """Represents a channel of an IIO device."""
│ │ │ │ │
│ │ │ │ │ def __init__(self, _channel):
│ │ │ │ │ """
│ │ │ │ │ Initialize a new instance of the Channel class.
│ │ │ │ │
│ │ │ │ │ :param _channel: type=_ChannelPtr
│ │ │ │ │ @@ -874,15 +872,15 @@
│ │ │ │ │ self._id = _c_get_id(self._channel).decode("ascii")
│ │ │ │ │
│ │ │ │ │ name_raw = _c_get_name(self._channel)
│ │ │ │ │ self._name = name_raw.decode("ascii") if name_raw is not None else None
│ │ │ │ │ self._output = _c_is_output(self._channel)
│ │ │ │ │ self._scan_element = _c_is_scan_element(self._channel)
│ │ │ │ │
│ │ │ │ │ -[docs] def read(self, buf, raw=False):
│ │ │ │ │ + def read(self, buf, raw=False):
│ │ │ │ │ """
│ │ │ │ │ Extract the samples corresponding to this channel from the given
│ │ │ │ │ iio.Buffer object.
│ │ │ │ │
│ │ │ │ │ :param buf: type=iio.Buffer
│ │ │ │ │ A valid instance of the iio.Buffer class
│ │ │ │ │ :param raw: type=bool
│ │ │ │ │ @@ -898,16 +896,15 @@
│ │ │ │ │ if raw:
│ │ │ │ │ length = _c_read_raw(self._channel, buf._buffer, c_array, len
│ │ │ │ │ (array))
│ │ │ │ │ else:
│ │ │ │ │ length = _c_read(self._channel, buf._buffer, c_array, len(array))
│ │ │ │ │ return array[:length]
│ │ │ │ │
│ │ │ │ │ -
│ │ │ │ │ -[docs] def write(self, buf, array, raw=False):
│ │ │ │ │ + def write(self, buf, array, raw=False):
│ │ │ │ │ """
│ │ │ │ │ Write the specified array of samples corresponding to this channel into
│ │ │ │ │ the given iio.Buffer object.
│ │ │ │ │
│ │ │ │ │ :param buf: type=iio.Buffer
│ │ │ │ │ A valid instance of the iio.Buffer class
│ │ │ │ │ :param array: type=bytearray
│ │ │ │ │ @@ -922,15 +919,14 @@
│ │ │ │ │ mytype = c_char * len(array)
│ │ │ │ │ c_array = mytype.from_buffer(array)
│ │ │ │ │ if raw:
│ │ │ │ │ return _c_write_raw(self._channel, buf._buffer, c_array, len
│ │ │ │ │ (array))
│ │ │ │ │ return _c_write(self._channel, buf._buffer, c_array, len(array))
│ │ │ │ │
│ │ │ │ │ -
│ │ │ │ │ id = property(
│ │ │ │ │ lambda self: self._id,
│ │ │ │ │ None,
│ │ │ │ │ None,
│ │ │ │ │ "An identifier of this channel.\n\tNote that it is possible that two
│ │ │ │ │ channels have the same ID, if one is an input channel and the other is an
│ │ │ │ │ output channel.\n\ttype=str",
│ │ │ │ │ @@ -1002,15 +998,15 @@
│ │ │ │ │ def type(self):
│ │ │ │ │ """
│ │ │ │ │ Type for the channel.
│ │ │ │ │ type: iio.ChannelType(Enum)
│ │ │ │ │ """
│ │ │ │ │ return ChannelType(_channel_get_type(self._channel))
│ │ │ │ │
│ │ │ │ │ -[docs] def convert(self, dst, src):
│ │ │ │ │ + def convert(self, dst, src):
│ │ │ │ │ """
│ │ │ │ │ Convert src and saves the result in dst, using current channel's data
│ │ │ │ │ format.
│ │ │ │ │
│ │ │ │ │ :param dst: type=list
│ │ │ │ │ The variable where the result is stored.
│ │ │ │ │ :param src: type=list
│ │ │ │ │ @@ -1018,16 +1014,15 @@
│ │ │ │ │ """
│ │ │ │ │ src_ptr = cast((c_char * (len(src) * self.data_format.length))(*src),
│ │ │ │ │ c_void_p)
│ │ │ │ │ dst_ptr = cast((c_char * (len(dst) * self.data_format.length))(*dst),
│ │ │ │ │ c_void_p)
│ │ │ │ │ _channel_convert(self._channel, src_ptr, dst_ptr)
│ │ │ │ │
│ │ │ │ │ -
│ │ │ │ │ -[docs] def convert_inverse(self, dst, src):
│ │ │ │ │ + def convert_inverse(self, dst, src):
│ │ │ │ │ """
│ │ │ │ │ Convert the sample from host format to hardware format.
│ │ │ │ │
│ │ │ │ │ :param dst: type=list
│ │ │ │ │ The variable where the result is stored.
│ │ │ │ │ :param src: type=list
│ │ │ │ │ Data to be converted.
│ │ │ │ │ @@ -1035,15 +1030,14 @@
│ │ │ │ │ src_ptr = cast((c_char * (len(src) * self.data_format.length))(*src),
│ │ │ │ │ c_void_p)
│ │ │ │ │ dst_ptr = cast((c_char * (len(dst) * self.data_format.length))(*dst),
│ │ │ │ │ c_void_p)
│ │ │ │ │ _channel_convert_inverse(self._channel, src_ptr, dst_ptr)
│ │ │ │ │
│ │ │ │ │
│ │ │ │ │ -
│ │ │ │ │ class Buffer(object):
│ │ │ │ │ """The class used for all I/O operations."""
│ │ │ │ │
│ │ │ │ │ def __init__(self, device, samples_count, cyclic=False):
│ │ │ │ │ """
│ │ │ │ │ Initialize a new instance of the Buffer class.
│ │ │ ├── ./usr/share/doc/libiio0-doc/v0.21/python/channel.html
│ │ │ │ @@ -247,713 +247,127 @@
│ │ │ │ 00000f60: 6563 7469 6f6e 2220 6964 3d22 6d65 6d62 ection" id="memb
│ │ │ │ 00000f70: 6572 7322 3e0a 3c68 323e 4d65 6d62 6572 ers">.Member
│ │ │ │ 00000f80: 733c 6120 636c 6173 733d 2268 6561 6465 s..
│ │ │ │ -00000fd0: 3c2f 6832 3e0a 3c64 6c20 636c 6173 733d
..- .class
iio.
│ │ │ │ -00001050: 636f 6465 3e3c 636f 6465 2063 6c61 7373 code>Channel(_channe
│ │ │ │ -000010d0: 6c3c 2f73 7061 6e3e 3c2f 656d 3e3c 7370 l)[source]
│ │ │ │ -00001160: 3c2f 7370 616e 3e3c 2f61 3e3c 6120 636c ..
│ │ │ │ -000011c0: 3c2f 6474 3e0a 3c64 643e 3c70 3e52 6570
.Rep
│ │ │ │ -000011d0: 7265 7365 6e74 7320 6120 6368 616e 6e65 resents a channe
│ │ │ │ -000011e0: 6c20 6f66 2061 6e20 4949 4f20 6465 7669 l of an IIO devi
│ │ │ │ -000011f0: 6365 2e3c 2f70 3e0a 3c64 6c20 636c 6173 ce.
..<
│ │ │ │ -00001210: 6474 2069 643d 2269 696f 2e43 6861 6e6e dt id="iio.Chann
│ │ │ │ -00001220: 656c 2e61 7474 7273 223e 0a3c 656d 2063 el.attrs">.
│ │ │ │ -00001240: 7072 6f70 6572 7479 203c 2f65 6d3e 3c63 property at
│ │ │ │ -00001270: 7472 733c 2f63 6f64 653e 3c61 2063 6c61 trs.
│ │ │ │ -000012d0: b63c 2f61 3e3c 2f64 743e 0a3c 6464 3e3c ..- <
│ │ │ │ -000012e0: 703e 4c69 7374 206f 6620 6174 7472 6962 p>List of attrib
│ │ │ │ -000012f0: 7574 6573 2066 6f72 2074 6869 7320 6368 utes for this ch
│ │ │ │ -00001300: 616e 6e65 6c2e 0a74 7970 653d 6469 6374 annel..type=dict
│ │ │ │ -00001310: 206f 6620 6969 6f2e 4368 616e 6e65 6c41 of iio.ChannelA
│ │ │ │ -00001320: 7474 723c 2f70 3e0a 3c2f 6464 3e3c 2f64 ttr
....- .
convert
│ │ │ │ -00001390: 3c2f 636f 6465 3e3c 7370 616e 2063 6c61
(
│ │ │ │ -000013b0: 3c2f 7370 616e 3e3c 656d 2063 6c61 7373 dst
│ │ │ │ -000013e0: 3c2f 7370 616e 3e3c 2f65 6d3e 2c20 3c65 , src
│ │ │ │ -00001420: 656d 3e3c 7370 616e 2063 6c61 7373 3d22 em>)[source]
│ │ │ │ -000014b0: 7370 616e 3e3c 2f61 3e3c 6120 636c 6173 span>
│ │ │ │ -00001510: c2b6 3c2f 613e 3c2f 6474 3e0a 3c64 643e .. .-
│ │ │ │ -00001520: 3c70 3e43 6f6e 7665 7274 2073 7263 2061
Convert src a
│ │ │ │ -00001530: 6e64 2073 6176 6573 2074 6865 2072 6573 nd saves the res
│ │ │ │ -00001540: 756c 7420 696e 2064 7374 2c20 7573 696e ult in dst, usin
│ │ │ │ -00001550: 6720 6375 7272 656e 7420 6368 616e 6e65 g current channe
│ │ │ │ -00001560: 6ce2 8099 7320 6461 7461 2066 6f72 6d61 l...s data forma
│ │ │ │ -00001570: 742e 3c2f 703e 0a3c 646c 2063 6c61 7373 t.
..- Para
│ │ │ │ -000015b0: 6d65 7465 7273 3c2f 6474 3e0a 3c64 6420 meters
..dst ... type=list.
│ │ │ │ -00001610: 5468 6520 7661 7269 6162 6c65 2077 6865 The variable whe
│ │ │ │ -00001620: 7265 2074 6865 2072 6573 756c 7420 6973 re the result is
│ │ │ │ -00001630: 2073 746f 7265 642e 3c2f 703e 3c2f 6c69 stored.
.src ..
│ │ │ │ -00001660: 9320 7479 7065 3d6c 6973 740a 4461 7461 . type=list.Data
│ │ │ │ -00001670: 2074 6f20 6265 2063 6f6e 7665 7274 6564 to be converted
│ │ │ │ -00001680: 2e3c 2f70 3e3c 2f6c 693e 0a3c 2f75 6c3e .
.
│ │ │ │ -00001690: 0a3c 2f64 643e 0a3c 2f64 6c3e 0a3c 2f64 . .
.
...
│ │ │ │ -000016c0: 3c64 7420 6964 3d22 6969 6f2e 4368 616e - .
convert_in
│ │ │ │ -00001710: 7665 7273 653c 2f63 6f64 653e 3c73 7061 verse
(dst, src
│ │ │ │ -000017c0: 293c 2f73 7061 6e3e 3c61 2063 6c61 7373 )[source]
│ │ │ │ -000018b0: 0a3c 6464 3e3c 703e 436f 6e76 6572 7420 .Convert
│ │ │ │ -000018c0: 7468 6520 7361 6d70 6c65 2066 726f 6d20 the sample from
│ │ │ │ -000018d0: 686f 7374 2066 6f72 6d61 7420 746f 2068 host format to h
│ │ │ │ -000018e0: 6172 6477 6172 6520 666f 726d 6174 2e3c ardware format.<
│ │ │ │ -000018f0: 2f70 3e0a 3c64 6c20 636c 6173 733d 2266 /p>.
.- Paramet
│ │ │ │ -00001930: 6572 733c 2f64 743e 0a3c 6464 2063 6c61 ers
.- <
│ │ │ │ -00001950: 756c 2063 6c61 7373 3d22 7369 6d70 6c65 ul class="simple
│ │ │ │ -00001960: 223e 0a3c 6c69 3e3c 703e 3c73 7472 6f6e ">.
dst .
│ │ │ │ -00001980: 8093 2074 7970 653d 6c69 7374 0a54 6865 .. type=list.The
│ │ │ │ -00001990: 2076 6172 6961 626c 6520 7768 6572 6520 variable where
│ │ │ │ -000019a0: 7468 6520 7265 7375 6c74 2069 7320 7374 the result is st
│ │ │ │ -000019b0: 6f72 6564 2e3c 2f70 3e3c 2f6c 693e 0a3c ored.
.<
│ │ │ │ -000019c0: 6c69 3e3c 703e 3c73 7472 6f6e 673e 7372 li>sr
│ │ │ │ -000019d0: 633c 2f73 7472 6f6e 673e 20e2 8093 2074 c ... t
│ │ │ │ -000019e0: 7970 653d 6c69 7374 0a44 6174 6120 746f ype=list.Data to
│ │ │ │ -000019f0: 2062 6520 636f 6e76 6572 7465 642e 3c2f be converted.
│ │ │ │ -00001a00: 703e 3c2f 6c69 3e0a 3c2f 756c 3e0a 3c2f p>..
│ │ │ │ -00001a10: 6464 3e0a 3c2f 646c 3e0a 3c2f 6464 3e3c dd>.
. <
│ │ │ │ -00001a20: 2f64 6c3e 0a0a 3c64 6c20 636c 6173 733d /dl>...- .<
│ │ │ │ -00001a60: 656d 2063 6c61 7373 3d22 7072 6f70 6572 em class="proper
│ │ │ │ -00001a70: 7479 223e 7072 6f70 6572 7479 203c 2f65 ty">property
data_format.
│ │ │ │ -00001b10: b63c 2f61 3e3c 2f64 743e 0a3c 6464 3e3c .
.- <
│ │ │ │ -00001b20: 703e 4368 616e 6e65 6c20 6461 7461 2066 p>Channel data f
│ │ │ │ -00001b30: 6f72 6d61 742e 0a74 7970 653a 2069 696f ormat..type: iio
│ │ │ │ -00001b40: 2e44 6174 6146 6f72 6d61 743c 2f70 3e0a .DataFormat.
│ │ │ │ -00001b50: 3c2f 6464 3e3c 2f64 6c3e 0a0a 3c64 6c20
...- .
│ │ │ │ -00001b90: 3c65 6d20 636c 6173 733d 2270 726f 7065 property
│ │ │ │ -00001bb0: 656d 3e3c 636f 6465 2063 6c61 7373 3d22 em>
device
│ │ │ │ -00001be0: 3c61 2063 6c61 7373 3d22 6865 6164 6572 .Corresp
│ │ │ │ -00001c50: 6f6e 6469 6e67 2064 6576 6963 6520 666f onding device fo
│ │ │ │ -00001c60: 7220 7468 6520 6368 616e 6e65 6c2e 0a74 r the channel..t
│ │ │ │ -00001c70: 7970 653a 2069 696f 2e44 6576 6963 653c ype: iio.Device<
│ │ │ │ -00001c80: 2f70 3e0a 3c2f 6464 3e3c 2f64 6c3e 0a0a /p>.
..
│ │ │ │ -00001c90: 3c64 6c20 636c 6173 733d 2270 7920 6d65 .- .proper
│ │ │ │ -00001ce0: 7479 203c 2f65 6d3e 3c63 6f64 6520 636c ty
enabled<
│ │ │ │ -00001d10: 2f63 6f64 653e 3c61 2063 6c61 7373 3d22 /code>
.
│ │ │ │ -00001d80: 436f 6e66 6967 7572 6564 2073 7461 7465 Configured state
│ │ │ │ -00001d90: 206f 6620 7468 6520 6368 616e 6e65 6c0a of the channel.
│ │ │ │ -00001da0: 7479 7065 3d62 6f6f 6c3c 2f70 3e0a 3c2f type=bool
.
│ │ │ │ -00001db0: 6464 3e3c 2f64 6c3e 0a0a 3c64 6c20 636c dd>
..
│ │ │ │ -00001dd0: 0a3c 6474 2069 643d 2269 696f 2e43 6861 .- .p
│ │ │ │ -00001e00: 726f 7065 7274 7920 3c2f 656d 3e3c 636f roperty id<
│ │ │ │ -00001e30: 2f63 6f64 653e 3c61 2063 6c61 7373 3d22 /code>
│ │ │ │ -00001e90: 6474 3e0a 3c64 643e 3c70 3e41 6e20 6964 dt>.
An id
│ │ │ │ -00001ea0: 656e 7469 6669 6572 206f 6620 7468 6973 entifier of this
│ │ │ │ -00001eb0: 2063 6861 6e6e 656c 2e0a 4e6f 7465 2074 channel..Note t
│ │ │ │ -00001ec0: 6861 7420 6974 2069 7320 706f 7373 6962 hat it is possib
│ │ │ │ -00001ed0: 6c65 2074 6861 7420 7477 6f20 6368 616e le that two chan
│ │ │ │ -00001ee0: 6e65 6c73 2068 6176 6520 7468 6520 7361 nels have the sa
│ │ │ │ -00001ef0: 6d65 2049 442c 2069 6620 6f6e 6520 6973 me ID, if one is
│ │ │ │ -00001f00: 2061 6e20 696e 7075 7420 6368 616e 6e65 an input channe
│ │ │ │ -00001f10: 6c20 616e 6420 7468 6520 6f74 6865 7220 l and the other
│ │ │ │ -00001f20: 6973 2061 6e20 6f75 7470 7574 2063 6861 is an output cha
│ │ │ │ -00001f30: 6e6e 656c 2e0a 7479 7065 3d73 7472 3c2f nnel..type=str
│ │ │ │ -00001f40: 703e 0a3c 2f64 643e 3c2f 646c 3e0a 0a3c p>.
..<
│ │ │ │ -00001f50: 646c 2063 6c61 7373 3d22 7079 206d 6574 dl class="py met
│ │ │ │ -00001f60: 686f 6422 3e0a 3c64 7420 6964 3d22 6969 hod">.- .property
│ │ │ │ -00001fa0: 3c2f 656d 3e3c 636f 6465 2063 6c61 7373
index
.. .Index f
│ │ │ │ -00002040: 6f72 2074 6865 2063 6861 6e6e 656c 2e3c or the channel.<
│ │ │ │ -00002050: 2f70 3e0a 3c2f 6464 3e3c 2f64 6c3e 0a0a /p>.
..
│ │ │ │ -00002060: 3c64 6c20 636c 6173 733d 2270 7920 6d65 .- .prope
│ │ │ │ -000020b0: 7274 7920 3c2f 656d 3e3c 636f 6465 2063 rty
modifie
│ │ │ │ -000020e0: 723c 2f63 6f64 653e 3c61 2063 6c61 7373 r
│ │ │ │ -00002140: c2b6 3c2f 613e 3c2f 6474 3e0a 3c64 643e .. .-
│ │ │ │ -00002150: 3c70 3e43 6861 6e6e 656c 206d 6f64 6966
Channel modif
│ │ │ │ -00002160: 6965 722e 0a74 7970 653a 2069 696f 2e43 ier..type: iio.C
│ │ │ │ -00002170: 6861 6e6e 656c 4d6f 6469 6669 6572 2845 hannelModifier(E
│ │ │ │ -00002180: 6e75 6d29 3c2f 703e 0a3c 2f64 643e 3c2f num)
.
│ │ │ │ -00002190: 646c 3e0a 0a3c 646c 2063 6c61 7373 3d22 dl>...- .prop
│ │ │ │ -000021e0: 6572 7479 203c 2f65 6d3e 3c63 6f64 6520 erty
name
│ │ │ │ -00002210: 636f 6465 3e3c 6120 636c 6173 733d 2268 code>..<
│ │ │ │ -00002270: 2f64 743e 0a3c 6464 3e3c 703e 5468 6520 /dt>.The
│ │ │ │ -00002280: 6e61 6d65 206f 6620 7468 6973 2063 6861 name of this cha
│ │ │ │ -00002290: 6e6e 656c 2e0a 7479 7065 3d73 7472 3c2f nnel..type=str
│ │ │ │ -000022a0: 703e 0a3c 2f64 643e 3c2f 646c 3e0a 0a3c p>.
..<
│ │ │ │ -000022b0: 646c 2063 6c61 7373 3d22 7079 206d 6574 dl class="py met
│ │ │ │ -000022c0: 686f 6422 3e0a 3c64 7420 6964 3d22 6969 hod">.- .property
│ │ │ │ -00002300: 203c 2f65 6d3e 3c63 6f64 6520 636c 6173
output..<
│ │ │ │ -00002390: 2f64 743e 0a3c 6464 3e3c 703e 436f 6e74 /dt>.Cont
│ │ │ │ -000023a0: 6169 6e73 2054 7275 6520 6966 2074 6865 ains True if the
│ │ │ │ -000023b0: 2063 6861 6e6e 656c 2069 7320 616e 206f channel is an o
│ │ │ │ -000023c0: 7574 7075 7420 6368 616e 6e65 6c2c 2046 utput channel, F
│ │ │ │ -000023d0: 616c 7365 206f 7468 6572 7769 7365 2e0a alse otherwise..
│ │ │ │ -000023e0: 7479 7065 3d62 6f6f 6c3c 2f70 3e0a 3c2f type=bool
.
│ │ │ │ -000023f0: 6464 3e3c 2f64 6c3e 0a0a 3c64 6c20 636c dd>
..
│ │ │ │ -00002410: 0a3c 6474 2069 643d 2269 696f 2e43 6861 .- .read
│ │ │ │ -00002450: 3c2f 636f 6465 3e3c 7370 616e 2063 6c61 (
│ │ │ │ -00002470: 3c2f 7370 616e 3e3c 656d 2063 6c61 7373 buf
│ │ │ │ -000024a0: 3c2f 7370 616e 3e3c 2f65 6d3e 2c20 3c65 , raw
=<
│ │ │ │ -000024f0: 2f73 7061 6e3e 3c73 7061 6e20 636c 6173 /span>False
│ │ │ │ -00002520: 656d 3e3c 7370 616e 2063 6c61 7373 3d22 em>)[source]
│ │ │ │ -00002610: 3c2f 6474 3e0a 3c64 643e 3c70 3e45 7874 .Ext
│ │ │ │ -00002620: 7261 6374 2074 6865 2073 616d 706c 6573 ract the samples
│ │ │ │ -00002630: 2063 6f72 7265 7370 6f6e 6469 6e67 2074 corresponding t
│ │ │ │ -00002640: 6f20 7468 6973 2063 6861 6e6e 656c 2066 o this channel f
│ │ │ │ -00002650: 726f 6d20 7468 6520 6769 7665 6e20 6969 rom the given ii
│ │ │ │ -00002660: 6f2e 4275 6666 6572 206f 626a 6563 742e o.Buffer object.
│ │ │ │ -00002670: 3c2f 703e 0a3c 646c 2063 6c61 7373 3d22
..- Parame
│ │ │ │ -000026b0: 7465 7273 3c2f 6474 3e0a 3c64 6420 636c ters
.-
│ │ │ │ -000026d0: 3c75 6c20 636c 6173 733d 2273 696d 706c
.buf
│ │ │ │ -00002700: e280 9320 7479 7065 3d69 696f 2e42 7566 ... type=iio.Buf
│ │ │ │ -00002710: 6665 720a 4120 7661 6c69 6420 696e 7374 fer.A valid inst
│ │ │ │ -00002720: 616e 6365 206f 6620 7468 6520 6969 6f2e ance of the iio.
│ │ │ │ -00002730: 4275 6666 6572 2063 6c61 7373 3c2f 703e Buffer class
│ │ │ │ -00002740: 3c2f 6c69 3e0a 3c6c 693e 3c70 3e3c 7374 .raw ... type=bool.
│ │ │ │ -00002770: 4966 2073 6574 2074 6f20 5472 7565 2c20 If set to True,
│ │ │ │ -00002780: 7468 6520 7361 6d70 6c65 7320 6172 6520 the samples are
│ │ │ │ -00002790: 6e6f 7420 636f 6e76 6572 7465 6420 6672 not converted fr
│ │ │ │ -000027a0: 6f6d 2074 6865 6972 0a6e 6174 6976 6520 om their.native
│ │ │ │ -000027b0: 666f 726d 6174 2074 6f20 7468 6569 7220 format to their
│ │ │ │ -000027c0: 686f 7374 2066 6f72 6d61 743c 2f70 3e3c host format
<
│ │ │ │ -000027d0: 2f6c 693e 0a3c 2f75 6c3e 0a3c 2f64 643e /li>.
.
│ │ │ │ -000027e0: 0a3c 2f64 6c3e 0a3c 646c 2063 6c61 7373 .
..- r
│ │ │ │ -00002800: 6574 7572 6e73 3a20 7479 7065 3d62 7974 eturns: type=byt
│ │ │ │ -00002810: 6561 7272 6179 3c2f 6474 3e3c 6464 3e3c earray
- <
│ │ │ │ -00002820: 703e 416e 2061 7272 6179 2063 6f6e 7461 p>An array conta
│ │ │ │ -00002830: 696e 696e 6720 7468 6520 7361 6d70 6c65 ining the sample
│ │ │ │ -00002840: 7320 666f 7220 7468 6973 2063 6861 6e6e s for this chann
│ │ │ │ -00002850: 656c 3c2f 703e 0a3c 2f64 643e 0a3c 2f64 el.
..
..<
│ │ │ │ -00002870: 646c 2063 6c61 7373 3d22 7079 206d 6574 dl class="py met
│ │ │ │ -00002880: 686f 6422 3e0a 3c64 7420 6964 3d22 6969 hod">..pr
│ │ │ │ -000028c0: 6f70 6572 7479 203c 2f65 6d3e 3c63 6f64 operty scan
│ │ │ │ -000028f0: 5f65 6c65 6d65 6e74 3c2f 636f 6465 3e3c _element<
│ │ │ │ -00002900: 6120 636c 6173 733d 2268 6561 6465 726c a class="headerl
│ │ │ │ -00002910: 696e 6b22 2068 7265 663d 2223 6969 6f2e ink" href="#iio.
│ │ │ │ -00002920: 4368 616e 6e65 6c2e 7363 616e 5f65 6c65 Channel.scan_ele
│ │ │ │ -00002930: 6d65 6e74 2220 7469 746c 653d 2250 6572 ment" title="Per
│ │ │ │ -00002940: 6d61 6c69 6e6b 2074 6f20 7468 6973 2064 malink to this d
│ │ │ │ -00002950: 6566 696e 6974 696f 6e22 3ec2 b63c 2f61 efinition">...Co
│ │ │ │ -00002970: 6e74 6169 6e73 2054 7275 6520 6966 2074 ntains True if t
│ │ │ │ -00002980: 6865 2063 6861 6e6e 656c 2069 7320 6120 he channel is a
│ │ │ │ -00002990: 7363 616e 2065 6c65 6d65 6e74 2c20 4661 scan element, Fa
│ │ │ │ -000029a0: 6c73 6520 6f74 6865 7277 6973 652e 0a49 lse otherwise..I
│ │ │ │ -000029b0: 6620 6120 6368 616e 6e65 6c20 6973 2061 f a channel is a
│ │ │ │ -000029c0: 2073 6361 6e20 656c 656d 656e 742c 2074 scan element, t
│ │ │ │ -000029d0: 6865 6e20 6974 2069 7320 706f 7373 6962 hen it is possib
│ │ │ │ -000029e0: 6c65 2074 6f20 656e 6162 6c65 2069 7420 le to enable it
│ │ │ │ -000029f0: 616e 6420 7573 6520 6974 2066 6f72 2049 and use it for I
│ │ │ │ -00002a00: 2f4f 206f 7065 7261 7469 6f6e 732e 0a74 /O operations..t
│ │ │ │ -00002a10: 7970 653d 626f 6f6c 3c2f 703e 0a3c 2f64 ype=bool
....
│ │ │ │ -00002a40: 3c64 7420 6964 3d22 6969 6f2e 4368 616e - .
│ │ │ │ -00002a70: 7072 6f70 6572 7479 203c 2f65 6d3e 3c63 property ty
│ │ │ │ -00002aa0: 7065 3c2f 636f 6465 3e3c 6120 636c 6173 pe..<
│ │ │ │ -00002b00: 2f61 3e3c 2f64 743e 0a3c 6464 3e3c 703e /a>
.
│ │ │ │ -00002b10: 5479 7065 2066 6f72 2074 6865 2063 6861 Type for the cha
│ │ │ │ -00002b20: 6e6e 656c 2e0a 7479 7065 3a20 6969 6f2e nnel..type: iio.
│ │ │ │ -00002b30: 4368 616e 6e65 6c54 7970 6528 456e 756d ChannelType(Enum
│ │ │ │ -00002b40: 293c 2f70 3e0a 3c2f 6464 3e3c 2f64 6c3e )
.
│ │ │ │ -00002b50: 0a0a 3c64 6c20 636c 6173 733d 2270 7920 ...- .
write
(buf, ar
│ │ │ │ -00002c30: 7261 793c 2f73 7061 6e3e 3c2f 656d 3e2c ray,
│ │ │ │ -00002c40: 203c 656d 2063 6c61 7373 3d22 7369 672d raw=False)<
│ │ │ │ -00002cd0: 2f73 7061 6e3e 3c61 2063 6c61 7373 3d22 /span>[source]<
│ │ │ │ -00002d40: 2f73 7061 6e3e 3c2f 613e 3c61 2063 6c61 /span>.
│ │ │ │ -00002da0: b63c 2f61 3e3c 2f64 743e 0a3c 6464 3e3c . .- <
│ │ │ │ -00002db0: 703e 5772 6974 6520 7468 6520 7370 6563 p>Write the spec
│ │ │ │ -00002dc0: 6966 6965 6420 6172 7261 7920 6f66 2073 ified array of s
│ │ │ │ -00002dd0: 616d 706c 6573 2063 6f72 7265 7370 6f6e amples correspon
│ │ │ │ -00002de0: 6469 6e67 2074 6f20 7468 6973 2063 6861 ding to this cha
│ │ │ │ -00002df0: 6e6e 656c 2069 6e74 6f20 7468 6520 6769 nnel into the gi
│ │ │ │ -00002e00: 7665 6e20 6969 6f2e 4275 6666 6572 206f ven iio.Buffer o
│ │ │ │ -00002e10: 626a 6563 742e 3c2f 703e 0a3c 646c 2063 bject..
.-
│ │ │ │ -00002e50: 5061 7261 6d65 7465 7273 3c2f 6474 3e0a Parameters
.
│ │ │ │ -00002e60: 3c64 6420 636c 6173 733d 2266 6965 6c64 .buf ... type=i
│ │ │ │ -00002eb0: 696f 2e42 7566 6665 720a 4120 7661 6c69 io.Buffer.A vali
│ │ │ │ -00002ec0: 6420 696e 7374 616e 6365 206f 6620 7468 d instance of th
│ │ │ │ -00002ed0: 6520 6969 6f2e 4275 6666 6572 2063 6c61 e iio.Buffer cla
│ │ │ │ -00002ee0: 7373 3c2f 703e 3c2f 6c69 3e0a 3c6c 693e ss
.-
│ │ │ │ -00002ef0: 3c70 3e3c 7374 726f 6e67 3e61 7272 6179
array
│ │ │ │ -00002f00: 3c2f 7374 726f 6e67 3e20 e280 9320 7479 ... ty
│ │ │ │ -00002f10: 7065 3d62 7974 6561 7272 6179 0a54 6865 pe=bytearray.The
│ │ │ │ -00002f20: 2061 7272 6179 2063 6f6e 7461 696e 696e array containin
│ │ │ │ -00002f30: 6720 7468 6520 7361 6d70 6c65 7320 746f g the samples to
│ │ │ │ -00002f40: 2063 6f70 793c 2f70 3e3c 2f6c 693e 0a3c copy
.<
│ │ │ │ -00002f50: 6c69 3e3c 703e 3c73 7472 6f6e 673e 7261 li>ra
│ │ │ │ -00002f60: 773c 2f73 7472 6f6e 673e 20e2 8093 2074 w ... t
│ │ │ │ -00002f70: 7970 653d 626f 6f6c 0a49 6620 7365 7420 ype=bool.If set
│ │ │ │ -00002f80: 746f 2054 7275 652c 2074 6865 2073 616d to True, the sam
│ │ │ │ -00002f90: 706c 6573 2061 7265 206e 6f74 2063 6f6e ples are not con
│ │ │ │ -00002fa0: 7665 7274 6564 2066 726f 6d20 7468 6569 verted from thei
│ │ │ │ -00002fb0: 720a 686f 7374 2066 6f72 6d61 7420 746f r.host format to
│ │ │ │ -00002fc0: 2074 6865 6972 206e 6174 6976 6520 666f their native fo
│ │ │ │ -00002fd0: 726d 6174 3c2f 703e 3c2f 6c69 3e0a 3c2f rmat
.
│ │ │ │ -00002fe0: 756c 3e0a 3c2f 6464 3e0a 3c2f 646c 3e0a ul>.
.
.
│ │ │ │ -00002ff0: 3c64 6c20 636c 6173 733d 2273 696d 706c .- returns:
│ │ │ │ -00003010: 2074 7970 653d 696e 743c 2f64 743e 3c64 type=int
The number
│ │ │ │ -00003030: 6f66 2062 7974 6573 2077 7269 7474 656e of bytes written
│ │ │ │ -00003040: 3c2f 703e 0a3c 2f64 643e 0a3c 2f64 6c3e
.
.
│ │ │ │ -00003050: 0a3c 2f64 643e 3c2f 646c 3e0a 0a3c 2f64 ......
│ │ │ │ -00003070: 3c68 7220 636c 6173 733d 2264 6f63 7574
..
.
.- .
│ │ │ │ -00003170: 636c 6173 7320 3c2f 656d 3e3c 636f 6465 class
iio.
Da
│ │ │ │ -000031d0: 7461 466f 726d 6174 3c2f 636f 6465 3e3c taFormat<
│ │ │ │ -000031e0: 6120 636c 6173 733d 2272 6566 6572 656e a class="referen
│ │ │ │ -000031f0: 6365 2069 6e74 6572 6e61 6c22 2068 7265 ce internal" hre
│ │ │ │ -00003200: 663d 225f 6d6f 6475 6c65 732f 6969 6f2e f="_modules/iio.
│ │ │ │ -00003210: 6874 6d6c 2344 6174 6146 6f72 6d61 7422 html#DataFormat"
│ │ │ │ -00003220: 3e3c 7370 616e 2063 6c61 7373 3d22 7669 >[so
│ │ │ │ -00003240: 7572 6365 5d3c 2f73 7061 6e3e 3c2f 613e urce]
│ │ │ │ -00003250: 3c61 2063 6c61 7373 3d22 6865 6164 6572 .Represents
│ │ │ │ -000032c0: 7468 6520 6461 7461 2066 6f72 6d61 7420 the data format
│ │ │ │ -000032d0: 6f66 2061 6e20 4949 4f20 6368 616e 6e65 of an IIO channe
│ │ │ │ -000032e0: 6c2e 3c2f 703e 0a3c 2f64 643e 3c2f 646c l.
.
..
.- .clas
│ │ │ │ -00003340: 7320 3c2f 656d 3e3c 636f 6465 2063 6c61 s
i
│ │ │ │ -00003370: 696f 2e3c 2f63 6f64 653e 3c63 6f64 6520 io.
Channe
│ │ │ │ -000033a0: 6c4d 6f64 6966 6965 723c 2f63 6f64 653e lModifier
│ │ │ │ -000033b0: 3c73 7061 6e20 636c 6173 733d 2273 6967 (
│ │ │ │ -000033d0: 3c65 6d20 636c 6173 733d 2273 6967 2d70 value)
│ │ │ │ -00003420: 3c2f 7370 616e 3e3c 6120 636c 6173 733d [sourc
│ │ │ │ -00003490: 655d 3c2f 7370 616e 3e3c 2f61 3e3c 6120 e] .
│ │ │ │ -00003500: 3c64 643e 3c70 3e43 6f6e 7461 696e 7320 Contains
│ │ │ │ -00003510: 7468 6520 6d6f 6469 6669 6572 2074 7970 the modifier typ
│ │ │ │ -00003520: 6520 6f66 2061 6e20 4949 4f20 6368 616e e of an IIO chan
│ │ │ │ -00003530: 6e65 6c2e 3c2f 703e 0a3c 2f64 643e 3c2f nel.
.
│ │ │ │ -00003540: 646c 3e0a 0a3c 646c 2063 6c61 7373 3d22 dl>...- .class
│ │ │ │ -00003590: 3c2f 656d 3e3c 636f 6465 2063 6c61 7373
iio
│ │ │ │ -000035c0: 2e3c 2f63 6f64 653e 3c63 6f64 6520 636c .
ChannelT
│ │ │ │ -000035f0: 7970 653c 2f63 6f64 653e 3c73 7061 6e20 ype
(
│ │ │ │ -00003630: 3c73 7061 6e20 636c 6173 733d 226e 223e
│ │ │ │ -00003640: 7661 6c75 653c 2f73 7061 6e3e 3c2f 656d value)
│ │ │ │ -000036d0: 5b73 6f75 7263 655d 3c2f 7370 616e 3e3c [source]<
│ │ │ │ -000036e0: 2f61 3e3c 6120 636c 6173 733d 2268 6561 /a>.. .Contain
│ │ │ │ -00003750: 7320 7468 6520 7479 7065 206f 6620 616e s the type of an
│ │ │ │ -00003760: 2049 494f 2063 6861 6e6e 656c 2e3c 2f70 IIO channel.
.
..
│ │ │ │ -00003780: 6469 763e 0a3c 2f64 6976 3e0a 0a0a 2020 div>.
...
│ │ │ │ -00003790: 2020 2020 2020 2020 203c 2f64 6976 3e0a .
│ │ │ │ -000037a0: 2020 2020 2020 2020 2020 200a 2020 2020 .
│ │ │ │ -000037b0: 2020 2020 2020 3c2f 6469 763e 0a20 2020 .
│ │ │ │ -000037c0: 2020 2020 2020 203c 666f 6f74 6572 3e0a