Expand description
Wrapper for the Linux Industrial I/O user-space library, libiio.
Build Features can be used to select bindings for one of several versions that might be installed in the system.
§Default Features
- libiio_v0_24 Bindings for libiio v0.24
§Optional Feature
Select only one feature to specify a version for libiio:
- libiio_v0_24 Bindings for libiio v0.24
- libiio_v0_23 Bindings for libiio v0.23
- libiio_v0_21 Bindings for libiio v0.21
- libiio_v0_19 Bindings for libiio v0.19
Structs§
- __
atomic_ wide_ counter__ bindgen_ ty_ 1 - __
fsid_ t - __
once_ flag - __
pthread_ cond_ s - __
pthread_ internal_ list - __
pthread_ internal_ slist - __
pthread_ mutex_ s - __
pthread_ rwlock_ arch_ t - __
sigset_ t - div_t
- drand48_
data - fd_set
- iio_
buffer - iio_
channel - iio_
context - iio_
context_ info - iio_
data_ format - @defgroup Debug Debug and low-level functions @{ @struct iio_data_format @brief Contains the format of a data sample.
- iio_
device - iio_
scan_ block - iio_
scan_ context - ldiv_t
- lldiv_t
- max_
align_ t - random_
data - timespec
- timeval
Constants§
- AIO_
PRIO_ DELTA_ MAX - ARG_MAX
- BC_
BASE_ MAX - BC_
DIM_ MAX - BC_
SCALE_ MAX - BC_
STRING_ MAX - BIG_
ENDIAN - BYTE_
ORDER - CHARCLASS_
NAME_ MAX - COLL_
WEIGHTS_ MAX - DELAYTIMER_
MAX - EXIT_
FAILURE - EXIT_
SUCCESS - EXPR_
NEST_ MAX - FD_
SETSIZE - HOST_
NAME_ MAX - INT8_
MAX - INT8_
MIN - INT16_
MAX - INT16_
MIN - INT32_
MAX - INT32_
MIN - INTPTR_
MAX - INTPTR_
MIN - INT_
FAST8_ MAX - INT_
FAST8_ MIN - INT_
FAST16_ MAX - INT_
FAST16_ MIN - INT_
FAST32_ MAX - INT_
FAST32_ MIN - INT_
LEAS T8_ MAX - INT_
LEAS T8_ MIN - INT_
LEAS T16_ MAX - INT_
LEAS T16_ MIN - INT_
LEAS T32_ MAX - INT_
LEAS T32_ MIN - LINE_
MAX - LINK_
MAX - LITTLE_
ENDIAN - LOGIN_
NAME_ MAX - MAX_
CANON - MAX_
INPUT - MB_
LEN_ MAX - MQ_
PRIO_ MAX - NAME_
MAX - NGROUPS_
MAX - NR_OPEN
- PATH_
MAX - PDP_
ENDIAN - PIPE_
BUF - PTHREAD_
DESTRUCTOR_ ITERATIONS - PTHREAD_
KEYS_ MAX - PTHREAD_
STACK_ MIN - PTRDIFF_
MAX - PTRDIFF_
MIN - RAND_
MAX - RE_
DUP_ MAX - RTSIG_
MAX - SEM_
VALUE_ MAX - SIG_
ATOMIC_ MAX - SIG_
ATOMIC_ MIN - SIZE_
MAX - TTY_
NAME_ MAX - UINT8_
MAX - UINT16_
MAX - UINT32_
MAX - UINTPTR_
MAX - UINT_
FAST8_ MAX - UINT_
FAST16_ MAX - UINT_
FAST32_ MAX - UINT_
LEAS T8_ MAX - UINT_
LEAS T16_ MAX - UINT_
LEAS T32_ MAX - WCONTINUED
- WEXITED
- WINT_
MAX - WINT_
MIN - WNOHANG
- WNOWAIT
- WSTOPPED
- WUNTRACED
- XATTR_
LIST_ MAX - XATTR_
NAME_ MAX - XATTR_
SIZE_ MAX - _ALLOCA_
H - _ATFILE_
SOURCE - _BITS_
BYTESWAP_ H - _BITS_
ENDIANNESS_ H - _BITS_
ENDIAN_ H - _BITS_
POSI X1_ LIM_ H - _BITS_
POSI X2_ LIM_ H - _BITS_
PTHREADTYPES_ ARCH_ H - _BITS_
PTHREADTYPES_ COMMON_ H - _BITS_
STDINT_ INTN_ H - _BITS_
STDINT_ UINTN_ H - _BITS_
TIME64_ H - _BITS_
TYPESIZES_ H - _BITS_
TYPES_ H - _BITS_
UINTN_ IDENTITY_ H - _BITS_
WCHAR_ H - _DEFAULT_
SOURCE - _ENDIAN_
H - _FEATURES_
H - _LIBC_
LIMITS_ H_ - _POSI
X2_ BC_ BASE_ MAX - _POSI
X2_ BC_ DIM_ MAX - _POSI
X2_ BC_ SCALE_ MAX - _POSI
X2_ BC_ STRING_ MAX - _POSI
X2_ CHARCLASS_ NAME_ MAX - _POSI
X2_ COLL_ WEIGHTS_ MAX - _POSI
X2_ EXPR_ NEST_ MAX - _POSI
X2_ LINE_ MAX - _POSI
X2_ RE_ DUP_ MAX - _POSIX_
AIO_ LISTIO_ MAX - _POSIX_
AIO_ MAX - _POSIX_
ARG_ MAX - _POSIX_
CHILD_ MAX - _POSIX_
CLOCKRES_ MIN - _POSIX_
C_ SOURCE - _POSIX_
DELAYTIMER_ MAX - _POSIX_
HOST_ NAME_ MAX - _POSIX_
LINK_ MAX - _POSIX_
LOGIN_ NAME_ MAX - _POSIX_
MAX_ CANON - _POSIX_
MAX_ INPUT - _POSIX_
MQ_ OPEN_ MAX - _POSIX_
MQ_ PRIO_ MAX - _POSIX_
NAME_ MAX - _POSIX_
NGROUPS_ MAX - _POSIX_
OPEN_ MAX - _POSIX_
PATH_ MAX - _POSIX_
PIPE_ BUF - _POSIX_
RE_ DUP_ MAX - _POSIX_
RTSIG_ MAX - _POSIX_
SEM_ NSEMS_ MAX - _POSIX_
SEM_ VALUE_ MAX - _POSIX_
SIGQUEUE_ MAX - _POSIX_
SOURCE - _POSIX_
SSIZE_ MAX - _POSIX_
STREAM_ MAX - _POSIX_
SYMLINK_ MAX - _POSIX_
SYMLOOP_ MAX - _POSIX_
THREAD_ DESTRUCTOR_ ITERATIONS - _POSIX_
THREAD_ KEYS_ MAX - _POSIX_
THREAD_ THREADS_ MAX - _POSIX_
TIMER_ MAX - _POSIX_
TTY_ NAME_ MAX - _POSIX_
TZNAME_ MAX - _STDC_
PREDEF_ H - _STDINT_
H - _STDLIB_
H - _STRUCT_
TIMESPEC - _SYS_
CDEFS_ H - _SYS_
SELECT_ H - _SYS_
TYPES_ H - _THREAD_
MUTEX_ INTERNAL_ H - _THREAD_
SHARED_ TYPES_ H - __
BIG_ ENDIAN - __
BIT_ TYPES_ DEFINED__ - __
BYTE_ ORDER - __
FD_ SETSIZE - __
FLOAT_ WORD_ ORDER - __
GLIBC_ MINOR__ - __
GLIBC_ USE_ DEPRECATED_ GETS - __
GLIBC_ USE_ DEPRECATED_ SCANF - __
GLIBC_ USE_ IEC_ 60559_ BFP_ EXT - __
GLIBC_ USE_ IEC_ 60559_ BFP_ EXT_ C2X - __
GLIBC_ USE_ IEC_ 60559_ EXT - __
GLIBC_ USE_ IEC_ 60559_ FUNCS_ EXT - __
GLIBC_ USE_ IEC_ 60559_ FUNCS_ EXT_ C2X - __
GLIBC_ USE_ IEC_ 60559_ TYPES_ EXT - __
GLIBC_ USE_ ISOC2X - __
GLIBC_ USE_ LIB_ EXT2 - __
GLIBC__ - __
GNU_ LIBRARY__ - __
HAVE_ DISTINCT_ FLOA T16 - __
HAVE_ DISTINCT_ FLOA T32 - __
HAVE_ DISTINCT_ FLOA T64 - __
HAVE_ DISTINCT_ FLOA T32X - __
HAVE_ DISTINCT_ FLOA T64X - __
HAVE_ DISTINCT_ FLOA T128 - __
HAVE_ DISTINCT_ FLOA T128X - __
HAVE_ FLOA T16 - __
HAVE_ FLOA T32 - __
HAVE_ FLOA T64 - __
HAVE_ FLOA T32X - __
HAVE_ FLOA T64X - __
HAVE_ FLOA T64X_ LONG_ DOUBLE - __
HAVE_ FLOA T128 - __
HAVE_ FLOA T128X - __
HAVE_ FLOATN_ NOT_ TYPEDEF - __
HAVE_ GENERIC_ SELECTION - __
INO_ T_ MATCHES_ INO64_ T - __
KERNEL_ OLD_ TIMEVAL_ MATCHES_ TIMEVA L64 - __
LDOUBLE_ REDIRECTS_ TO_ FLOA T128_ ABI - __
LITTLE_ ENDIAN - __
OFF_ T_ MATCHES_ OFF64_ T - __
PDP_ ENDIAN - __
PTHREAD_ MUTEX_ HAVE_ PREV - __
RLIM_ T_ MATCHES_ RLIM64_ T - __
SIZEOF_ PTHREAD_ ATTR_ T - __
SIZEOF_ PTHREAD_ BARRIERATTR_ T - __
SIZEOF_ PTHREAD_ BARRIER_ T - __
SIZEOF_ PTHREAD_ CONDATTR_ T - __
SIZEOF_ PTHREAD_ COND_ T - __
SIZEOF_ PTHREAD_ MUTEXATTR_ T - __
SIZEOF_ PTHREAD_ MUTEX_ T - __
SIZEOF_ PTHREAD_ RWLOCKATTR_ T - __
SIZEOF_ PTHREAD_ RWLOCK_ T - __
STATFS_ MATCHES_ STATF S64 - __
STDC_ IEC_ 559_ COMPLEX__ - __
STDC_ IEC_ 559__ - __
STDC_ IEC_ 60559_ BFP__ - __
STDC_ IEC_ 60559_ COMPLEX__ - __
STDC_ ISO_ 10646__ - __
SYSCALL_ WORDSIZE - __
TIMESIZE - __
USE_ ATFILE - __
USE_ FORTIFY_ LEVEL - __
USE_ ISOC11 - __
USE_ ISOC95 - __
USE_ ISOC99 - __
USE_ MISC - __
USE_ POSIX - __
USE_ POSI X2 - __
USE_ POSI X199309 - __
USE_ POSI X199506 - __
USE_ POSIX_ IMPLICITLY - __
USE_ XOPE N2K - __
USE_ XOPE N2K8 - __WALL
- __
WCLONE - __
WCOREFLAG - __
WNOTHREAD - __
WORDSIZE - __
WORDSIZE_ TIME64_ COMPA T32 - __
W_ CONTINUED - __
bool_ true_ false_ are_ defined - __
clock_ t_ defined - __
clockid_ t_ defined - __
glibc_ c99_ flexarr_ available - __
have_ pthread_ attr_ t - __
ldiv_ t_ defined - __
lldiv_ t_ defined - __
sigset_ t_ defined - __
time_ t_ defined - __
timer_ t_ defined - __
timeval_ defined - false_
- hwmon_
chan_ type_ HWMON_ CHAN_ TYPE_ UNKNOWN - hwmon_
chan_ type_ HWMON_ CURRENT - hwmon_
chan_ type_ HWMON_ ENERGY - hwmon_
chan_ type_ HWMON_ FAN - hwmon_
chan_ type_ HWMON_ HUMIDITY - hwmon_
chan_ type_ HWMON_ INTRUSION - hwmon_
chan_ type_ HWMON_ POWER - hwmon_
chan_ type_ HWMON_ PWM - hwmon_
chan_ type_ HWMON_ TEMP - hwmon_
chan_ type_ HWMON_ VOLTAGE - iio_
chan_ type_ IIO_ ACCEL - iio_
chan_ type_ IIO_ ACTIVITY - iio_
chan_ type_ IIO_ ALTVOLTAGE - iio_
chan_ type_ IIO_ ANGL - iio_
chan_ type_ IIO_ ANGL_ VEL - iio_
chan_ type_ IIO_ CAPACITANCE - iio_
chan_ type_ IIO_ CCT - iio_
chan_ type_ IIO_ CHAN_ TYPE_ UNKNOWN - iio_
chan_ type_ IIO_ CONCENTRATION - iio_
chan_ type_ IIO_ COUNT - iio_
chan_ type_ IIO_ CURRENT - iio_
chan_ type_ IIO_ DISTANCE - iio_
chan_ type_ IIO_ ELECTRICALCONDUCTIVITY - iio_
chan_ type_ IIO_ ENERGY - iio_
chan_ type_ IIO_ GRAVITY - iio_
chan_ type_ IIO_ HUMIDITYRELATIVE - iio_
chan_ type_ IIO_ INCLI - iio_
chan_ type_ IIO_ INDEX - iio_
chan_ type_ IIO_ INTENSITY - iio_
chan_ type_ IIO_ LIGHT - iio_
chan_ type_ IIO_ MAGN - iio_
chan_ type_ IIO_ MASSCONCENTRATION - iio_
chan_ type_ IIO_ PH - iio_
chan_ type_ IIO_ PHASE - iio_
chan_ type_ IIO_ POSITIONRELATIVE - iio_
chan_ type_ IIO_ POWER - iio_
chan_ type_ IIO_ PRESSURE - iio_
chan_ type_ IIO_ PROXIMITY - iio_
chan_ type_ IIO_ RESISTANCE - iio_
chan_ type_ IIO_ ROT - iio_
chan_ type_ IIO_ STEPS - iio_
chan_ type_ IIO_ TEMP - iio_
chan_ type_ IIO_ TIMESTAMP - iio_
chan_ type_ IIO_ UVINDEX - iio_
chan_ type_ IIO_ VELOCITY - iio_
chan_ type_ IIO_ VOLTAGE - iio_
event_ direction_ IIO_ EV_ DIR_ DOUBLETAP - iio_
event_ direction_ IIO_ EV_ DIR_ EITHER - iio_
event_ direction_ IIO_ EV_ DIR_ FALLING - iio_
event_ direction_ IIO_ EV_ DIR_ NONE - iio_
event_ direction_ IIO_ EV_ DIR_ RISING - iio_
event_ direction_ IIO_ EV_ DIR_ SINGLETAP - iio_
event_ type_ IIO_ EV_ TYPE_ CHANGE - iio_
event_ type_ IIO_ EV_ TYPE_ GESTURE - iio_
event_ type_ IIO_ EV_ TYPE_ MAG - iio_
event_ type_ IIO_ EV_ TYPE_ MAG_ ADAPTIVE - iio_
event_ type_ IIO_ EV_ TYPE_ MAG_ REFERENCED - iio_
event_ type_ IIO_ EV_ TYPE_ ROC - iio_
event_ type_ IIO_ EV_ TYPE_ THRESH - iio_
event_ type_ IIO_ EV_ TYPE_ THRESH_ ADAPTIVE - iio_
modifier_ IIO_ MOD_ CO2 - iio_
modifier_ IIO_ MOD_ ETHANOL - iio_
modifier_ IIO_ MOD_ H2 - iio_
modifier_ IIO_ MOD_ I - iio_
modifier_ IIO_ MOD_ JOGGING - iio_
modifier_ IIO_ MOD_ LIGHT_ BLUE - iio_
modifier_ IIO_ MOD_ LIGHT_ BOTH - iio_
modifier_ IIO_ MOD_ LIGHT_ CLEAR - iio_
modifier_ IIO_ MOD_ LIGHT_ DUV - iio_
modifier_ IIO_ MOD_ LIGHT_ GREEN - iio_
modifier_ IIO_ MOD_ LIGHT_ IR - iio_
modifier_ IIO_ MOD_ LIGHT_ RED - iio_
modifier_ IIO_ MOD_ LIGHT_ UV - iio_
modifier_ IIO_ MOD_ LINEAR_ X - iio_
modifier_ IIO_ MOD_ LINEAR_ Y - iio_
modifier_ IIO_ MOD_ LINEAR_ Z - iio_
modifier_ IIO_ MOD_ NORTH_ MAGN - iio_
modifier_ IIO_ MOD_ NORTH_ MAGN_ TILT_ COMP - iio_
modifier_ IIO_ MOD_ NORTH_ TRUE - iio_
modifier_ IIO_ MOD_ NORTH_ TRUE_ TILT_ COMP - iio_
modifier_ IIO_ MOD_ O2 - iio_
modifier_ IIO_ MOD_ PITCH - iio_
modifier_ IIO_ MOD_ PM1 - iio_
modifier_ IIO_ MOD_ PM4 - iio_
modifier_ IIO_ MOD_ PM2P5 - iio_
modifier_ IIO_ MOD_ PM10 - iio_
modifier_ IIO_ MOD_ Q - iio_
modifier_ IIO_ MOD_ QUATERNION - iio_
modifier_ IIO_ MOD_ ROLL - iio_
modifier_ IIO_ MOD_ ROOT_ SUM_ SQUARED_ X_ Y - iio_
modifier_ IIO_ MOD_ ROOT_ SUM_ SQUARED_ X_ Y_ Z - iio_
modifier_ IIO_ MOD_ RUNNING - iio_
modifier_ IIO_ MOD_ STILL - iio_
modifier_ IIO_ MOD_ SUM_ SQUARED_ X_ Y_ Z - iio_
modifier_ IIO_ MOD_ TEMP_ AMBIENT - iio_
modifier_ IIO_ MOD_ TEMP_ OBJECT - iio_
modifier_ IIO_ MOD_ VOC - iio_
modifier_ IIO_ MOD_ WALKING - iio_
modifier_ IIO_ MOD_ X - iio_
modifier_ IIO_ MOD_ X_ AND_ Y - iio_
modifier_ IIO_ MOD_ X_ AND_ Y_ AND_ Z - iio_
modifier_ IIO_ MOD_ X_ AND_ Z - iio_
modifier_ IIO_ MOD_ X_ OR_ Y - iio_
modifier_ IIO_ MOD_ X_ OR_ Y_ OR_ Z - iio_
modifier_ IIO_ MOD_ X_ OR_ Z - iio_
modifier_ IIO_ MOD_ Y - iio_
modifier_ IIO_ MOD_ YAW - iio_
modifier_ IIO_ MOD_ Y_ AND_ Z - iio_
modifier_ IIO_ MOD_ Y_ OR_ Z - iio_
modifier_ IIO_ MOD_ Z - iio_
modifier_ IIO_ NO_ MOD - true_
Functions§
- _Exit⚠
- __
ctype_ ⚠get_ mb_ cur_ max - a64l⚠
- abort⚠
- abs⚠
- aligned_
alloc ⚠ - alloca⚠
- at_
quick_ ⚠exit - atexit⚠
- atof⚠
- atoi⚠
- atol⚠
- atoll⚠
- bsearch⚠
- calloc⚠
- clearenv⚠
- div⚠
- drand48⚠
- drand48_
r ⚠ - ecvt⚠
- ecvt_r⚠
- erand48⚠
- erand48_
r ⚠ - exit⚠
- fcvt⚠
- fcvt_r⚠
- free⚠
- gcvt⚠
- getenv⚠
- getloadavg⚠
- getsubopt⚠
- iio_
buffer_ ⚠cancel - @brief Cancel all buffer operations @param buf The buffer for which operations should be canceled
- iio_
buffer_ ⚠destroy - @brief Destroy the given buffer @param buf A pointer to an iio_buffer structure
- iio_
buffer_ ⚠end - @brief Get the address that follows the last sample in a buffer @param buf A pointer to an iio_buffer structure @return A pointer corresponding to the address that follows the last sample present in the buffer
- iio_
buffer_ ⚠first - @brief Find the first sample of a channel in a buffer @param buf A pointer to an iio_buffer structure @param chn A pointer to an iio_channel structure @return A pointer to the first sample found, or to the end of the buffer if no sample for the given channel is present in the buffer
- iio_
buffer_ ⚠foreach_ sample - @brief Call the supplied callback for each sample found in a buffer @param buf A pointer to an iio_buffer structure @param callback A pointer to a function to call for each sample found @param data A user-specified pointer that will be passed to the callback @return number of bytes processed.
- iio_
buffer_ ⚠get_ data - @brief Retrieve a previously associated pointer of an iio_buffer structure @param buf A pointer to an iio_buffer structure @return The pointer previously associated if present, or NULL
- iio_
buffer_ ⚠get_ device - @brief Retrieve a pointer to the iio_device structure @param buf A pointer to an iio_buffer structure @return A pointer to an iio_device structure
- iio_
buffer_ ⚠get_ poll_ fd - @brief Get a pollable file descriptor
- iio_
buffer_ ⚠push - @brief Send the samples to the hardware @param buf A pointer to an iio_buffer structure @return On success, the number of bytes written is returned @return On error, a negative errno code is returned
- iio_
buffer_ ⚠push_ partial - @brief Send a given number of samples to the hardware @param buf A pointer to an iio_buffer structure @param samples_count The number of samples to submit @return On success, the number of bytes written is returned @return On error, a negative errno code is returned
- iio_
buffer_ ⚠refill - @brief Fetch more samples from the hardware @param buf A pointer to an iio_buffer structure @return On success, the number of bytes read is returned @return On error, a negative errno code is returned
- iio_
buffer_ ⚠set_ blocking_ mode - @brief Make iio_buffer_refill() and iio_buffer_push() blocking or not
- iio_
buffer_ ⚠set_ data - @brief Associate a pointer to an iio_buffer structure @param buf A pointer to an iio_buffer structure @param data The pointer to be associated
- iio_
buffer_ ⚠start - @brief Get the start address of the buffer @param buf A pointer to an iio_buffer structure @return A pointer corresponding to the start address of the buffer
- iio_
buffer_ ⚠step - @brief Get the step size between two samples of one channel @param buf A pointer to an iio_buffer structure @return the difference between the addresses of two consecutive samples of one same channel
- iio_
channel_ ⚠attr_ get_ filename - @brief Retrieve the filename of an attribute @param chn A pointer to an iio_channel structure @param attr a NULL-terminated string corresponding to the name of the attribute @return On success, a pointer to a static NULL-terminated string @return If the attribute name is unknown, NULL is returned
- iio_
channel_ ⚠attr_ read - @brief Read the content of the given channel-specific attribute @param chn A pointer to an iio_channel structure @param attr A NULL-terminated string corresponding to the name of the attribute @param dst A pointer to the memory area where the NULL-terminated string corresponding to the value read will be stored @param len The available length of the memory area, in bytes @return On success, the number of bytes written to the buffer @return On error, a negative errno code is returned
- iio_
channel_ ⚠attr_ read_ all - @brief Read the content of all channel-specific attributes @param chn A pointer to an iio_channel structure @param cb A pointer to a callback function @param data A pointer that will be passed to the callback function @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
channel_ ⚠attr_ read_ bool - @brief Read the content of the given channel-specific attribute @param chn A pointer to an iio_channel structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A pointer to a bool variable where the value should be stored @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
channel_ ⚠attr_ read_ double - @brief Read the content of the given channel-specific attribute @param chn A pointer to an iio_channel structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A pointer to a double variable where the value should be stored @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
channel_ ⚠attr_ read_ longlong - @brief Read the content of the given channel-specific attribute @param chn A pointer to an iio_channel structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A pointer to a long long variable where the value should be stored @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
channel_ ⚠attr_ write - @brief Set the value of the given channel-specific attribute @param chn A pointer to an iio_channel structure @param attr A NULL-terminated string corresponding to the name of the attribute @param src A NULL-terminated string to set the attribute to @return On success, the number of bytes written @return On error, a negative errno code is returned
- iio_
channel_ ⚠attr_ write_ all - @brief Set the values of all channel-specific attributes @param chn A pointer to an iio_channel structure @param cb A pointer to a callback function @param data A pointer that will be passed to the callback function @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
channel_ ⚠attr_ write_ bool - @brief Set the value of the given channel-specific attribute @param chn A pointer to an iio_channel structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A bool value to set the attribute to @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
channel_ ⚠attr_ write_ double - @brief Set the value of the given channel-specific attribute @param chn A pointer to an iio_channel structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A double value to set the attribute to @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
channel_ ⚠attr_ write_ longlong - @brief Set the value of the given channel-specific attribute @param chn A pointer to an iio_channel structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A long long value to set the attribute to @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
channel_ ⚠attr_ write_ raw - @brief Set the value of the given channel-specific attribute @param chn A pointer to an iio_channel structure @param attr A NULL-terminated string corresponding to the name of the attribute @param src A pointer to the data to be written @param len The number of bytes that should be written @return On success, the number of bytes written @return On error, a negative errno code is returned
- iio_
channel_ ⚠convert - @brief Convert the sample from hardware format to host format @param chn A pointer to an iio_channel structure @param dst A pointer to the destination buffer where the converted sample should be written @param src A pointer to the source buffer containing the sample
- iio_
channel_ ⚠convert_ inverse - @brief Convert the sample from host format to hardware format @param chn A pointer to an iio_channel structure @param dst A pointer to the destination buffer where the converted sample should be written @param src A pointer to the source buffer containing the sample
- iio_
channel_ ⚠disable - @brief Disable the given channel @param chn A pointer to an iio_channel structure
- iio_
channel_ ⚠enable - @brief Enable the given channel @param chn A pointer to an iio_channel structure
- iio_
channel_ ⚠find_ attr - @brief Try to find a channel-specific attribute by its name @param chn A pointer to an iio_channel structure @param name A NULL-terminated string corresponding to the name of the attribute @return On success, a pointer to a static NULL-terminated string @return If the name does not correspond to any known attribute of the given channel, NULL is returned
- iio_
channel_ ⚠get_ attr - @brief Get the channel-specific attribute present at the given index @param chn A pointer to an iio_channel structure @param index The index corresponding to the attribute @return On success, a pointer to a static NULL-terminated string @return If the index is invalid, NULL is returned
- iio_
channel_ ⚠get_ attrs_ count - @brief Enumerate the channel-specific attributes of the given channel @param chn A pointer to an iio_channel structure @return The number of channel-specific attributes found
- iio_
channel_ ⚠get_ data - @brief Retrieve a previously associated pointer of an iio_channel structure @param chn A pointer to an iio_channel structure @return The pointer previously associated if present, or NULL
- iio_
channel_ ⚠get_ data_ format - @brief Get a pointer to a channel’s data format structure @param chn A pointer to an iio_channel structure @return A pointer to the channel’s iio_data_format structure
- iio_
channel_ ⚠get_ device - @brief Retrieve a pointer to the iio_device structure @param chn A pointer to an iio_channel structure @return A pointer to an iio_device structure
- iio_
channel_ ⚠get_ id - @brief Retrieve the channel ID (e.g. voltage0) @param chn A pointer to an iio_channel structure @return A pointer to a static NULL-terminated string
- iio_
channel_ ⚠get_ index - @brief Get the index of the given channel @param chn A pointer to an iio_channel structure @return On success, the index of the specified channel @return On error, a negative errno code is returned
- iio_
channel_ ⚠get_ modifier - @brief Get the modifier type of the given channel @param chn A pointer to an iio_channel structure @return The modifier type of the channel
- iio_
channel_ ⚠get_ name - @brief Retrieve the channel name (e.g. vccint) @param chn A pointer to an iio_channel structure @return A pointer to a static NULL-terminated string
- iio_
channel_ ⚠get_ type - @brief Get the type of the given channel @param chn A pointer to an iio_channel structure @return The type of the channel
- iio_
channel_ ⚠is_ enabled - @brief Returns True if the channel is enabled @param chn A pointer to an iio_channel structure @return True if the channel is enabled, False otherwise
- iio_
channel_ ⚠is_ output - @brief Return True if the given channel is an output channel @param chn A pointer to an iio_channel structure @return True if the channel is an output channel, False otherwise
- iio_
channel_ ⚠is_ scan_ element - @brief Return True if the given channel is a scan element @param chn A pointer to an iio_channel structure @return True if the channel is a scan element, False otherwise
- iio_
channel_ ⚠read - @brief Demultiplex and convert the samples of a given channel @param chn A pointer to an iio_channel structure @param buffer A pointer to an iio_buffer structure @param dst A pointer to the memory area where the converted data will be stored @param len The available length of the memory area, in bytes @return The size of the converted data, in bytes
- iio_
channel_ ⚠read_ raw - @brief Demultiplex the samples of a given channel @param chn A pointer to an iio_channel structure @param buffer A pointer to an iio_buffer structure @param dst A pointer to the memory area where the demultiplexed data will be stored @param len The available length of the memory area, in bytes @return The size of the demultiplexed data, in bytes
- iio_
channel_ ⚠set_ data - @brief Associate a pointer to an iio_channel structure @param chn A pointer to an iio_channel structure @param data The pointer to be associated
- iio_
channel_ ⚠write - @brief Convert and multiplex the samples of a given channel @param chn A pointer to an iio_channel structure @param buffer A pointer to an iio_buffer structure @param src A pointer to the memory area where the sequential data will be read from @param len The length of the memory area, in bytes @return The number of bytes actually converted and multiplexed
- iio_
channel_ ⚠write_ raw - @brief Multiplex the samples of a given channel @param chn A pointer to an iio_channel structure @param buffer A pointer to an iio_buffer structure @param src A pointer to the memory area where the sequential data will be read from @param len The length of the memory area, in bytes @return The number of bytes actually multiplexed
- iio_
context_ ⚠clone - @brief Duplicate a pre-existing IIO context @param ctx A pointer to an iio_context structure @return On success, A pointer to an iio_context structure @return On failure, NULL is returned and errno is set appropriately
- iio_
context_ ⚠destroy - @brief Destroy the given context @param ctx A pointer to an iio_context structure
- iio_
context_ ⚠find_ device - @brief Try to find a device structure by its ID, label or name @param ctx A pointer to an iio_context structure @param name A NULL-terminated string corresponding to the ID, label or name of the device to search for @return On success, a pointer to an iio_device structure @return If the parameter does not correspond to the ID, label or name of any known device, NULL is returned
- iio_
context_ ⚠get_ attr - @brief Retrieve the name and value of a context-specific attribute @param ctx A pointer to an iio_context structure @param index The index corresponding to the attribute @param name A pointer to a const char * pointer (NULL accepted) @param value A pointer to a const char * pointer (NULL accepted) @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
context_ ⚠get_ attr_ value - @brief Retrieve the value of a context-specific attribute @param ctx A pointer to an iio_context structure @param name The name of the context attribute to read @return On success, a pointer to a static NULL-terminated string @return If the name does not correspond to any attribute, NULL is returned
- iio_
context_ ⚠get_ attrs_ count - @brief Get the number of context-specific attributes @param ctx A pointer to an iio_context structure @return The number of context-specific attributes
- iio_
context_ ⚠get_ description - @brief Get a description of the given context @param ctx A pointer to an iio_context structure @return A pointer to a static NULL-terminated string
- iio_
context_ ⚠get_ device - @brief Get the device present at the given index @param ctx A pointer to an iio_context structure @param index The index corresponding to the device @return On success, a pointer to an iio_device structure @return If the index is invalid, NULL is returned
- iio_
context_ ⚠get_ devices_ count - @brief Enumerate the devices found in the given context @param ctx A pointer to an iio_context structure @return The number of devices found
- iio_
context_ ⚠get_ name - @brief Get the name of the given context @param ctx A pointer to an iio_context structure @return A pointer to a static NULL-terminated string
- iio_
context_ ⚠get_ version - @brief Get the version of the backend in use @param ctx A pointer to an iio_context structure @param major A pointer to an unsigned integer (NULL accepted) @param minor A pointer to an unsigned integer (NULL accepted) @param git_tag A pointer to a 8-characters buffer (NULL accepted) @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
context_ ⚠get_ xml - @brief Obtain a XML representation of the given context @param ctx A pointer to an iio_context structure @return A pointer to a static NULL-terminated string
- iio_
context_ ⚠info_ get_ description - @brief Get a description of a discovered context @param info A pointer to an iio_context_info structure @return A pointer to a static NULL-terminated string
- iio_
context_ ⚠info_ get_ uri - @brief Get the URI of a discovered context @param info A pointer to an iio_context_info structure @return A pointer to a static NULL-terminated string
- iio_
context_ ⚠info_ list_ free - @brief Free a context info list @param info A pointer to a ‘const struct iio_context_info *’ typed variable
- iio_
context_ ⚠set_ timeout - @brief Set a timeout for I/O operations @param ctx A pointer to an iio_context structure @param timeout_ms A positive integer representing the time in milliseconds after which a timeout occurs. A value of 0 is used to specify that no timeout should occur. @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
create_ ⚠context_ from_ uri - @brief Create a context from a URI description @param uri A URI describing the context location @return On success, a pointer to a iio_context structure @return On failure, NULL is returned and errno is set appropriately
- iio_
create_ ⚠default_ context - @brief Create a context from local or remote IIO devices @return On success, A pointer to an iio_context structure @return On failure, NULL is returned and errno is set appropriately
- iio_
create_ ⚠local_ context - @brief Create a context from local IIO devices (Linux only) @return On success, A pointer to an iio_context structure @return On failure, NULL is returned and errno is set appropriately
- iio_
create_ ⚠network_ context - @brief Create a context from the network @param host Hostname, IPv4 or IPv6 address where the IIO Daemon is running @return On success, a pointer to an iio_context structure @return On failure, NULL is returned and errno is set appropriately
- iio_
create_ ⚠scan_ block - @brief Create a scan block @param backend A NULL-terminated string containing the backend to use for scanning. If NULL, all the available backends are used. @param flags Unused for now. Set to 0. @return on success, a pointer to a iio_scan_block structure @return On failure, NULL is returned and errno is set appropriately
- iio_
create_ ⚠scan_ context - @brief Create a scan context @param backend A NULL-terminated string containing a comma-separated list of the backend(s) to use for scanning. @param flags Unused for now. Set to 0. @return on success, a pointer to a iio_scan_context structure @return On failure, NULL is returned and errno is set appropriately
- iio_
create_ ⚠xml_ context - @brief Create a context from a XML file @param xml_file Path to the XML file to open @return On success, A pointer to an iio_context structure @return On failure, NULL is returned and errno is set appropriately
- iio_
create_ ⚠xml_ context_ mem - @brief Create a context from XML data in memory @param xml Pointer to the XML data in memory @param len Length of the XML string in memory (excluding the final \0) @return On success, A pointer to an iio_context structure @return On failure, NULL is returned and errno is set appropriately
- iio_
device_ ⚠attr_ read - @brief Read the content of the given device-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param dst A pointer to the memory area where the NULL-terminated string corresponding to the value read will be stored @param len The available length of the memory area, in bytes @return On success, the number of bytes written to the buffer @return On error, a negative errno code is returned
- iio_
device_ ⚠attr_ read_ all - @brief Read the content of all device-specific attributes @param dev A pointer to an iio_device structure @param cb A pointer to a callback function @param data A pointer that will be passed to the callback function @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠attr_ read_ bool - @brief Read the content of the given device-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A pointer to a bool variable where the value should be stored @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠attr_ read_ double - @brief Read the content of the given device-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A pointer to a double variable where the value should be stored @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠attr_ read_ longlong - @brief Read the content of the given device-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A pointer to a long long variable where the value should be stored @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠attr_ write - @brief Set the value of the given device-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param src A NULL-terminated string to set the attribute to @return On success, the number of bytes written @return On error, a negative errno code is returned
- iio_
device_ ⚠attr_ write_ all - @brief Set the values of all device-specific attributes @param dev A pointer to an iio_device structure @param cb A pointer to a callback function @param data A pointer that will be passed to the callback function @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠attr_ write_ bool - @brief Set the value of the given device-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A bool value to set the attribute to @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠attr_ write_ double - @brief Set the value of the given device-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A double value to set the attribute to @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠attr_ write_ longlong - @brief Set the value of the given device-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A long long value to set the attribute to @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠attr_ write_ raw - @brief Set the value of the given device-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param src A pointer to the data to be written @param len The number of bytes that should be written @return On success, the number of bytes written @return On error, a negative errno code is returned
- iio_
device_ ⚠buffer_ attr_ read - @brief Read the content of the given buffer-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param dst A pointer to the memory area where the NULL-terminated string corresponding to the value read will be stored @param len The available length of the memory area, in bytes @return On success, the number of bytes written to the buffer @return On error, a negative errno code is returned
- iio_
device_ ⚠buffer_ attr_ read_ all - @brief Read the content of all buffer-specific attributes @param dev A pointer to an iio_device structure @param cb A pointer to a callback function @param data A pointer that will be passed to the callback function @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠buffer_ attr_ read_ bool - @brief Read the content of the given buffer-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A pointer to a bool variable where the value should be stored @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠buffer_ attr_ read_ double - @brief Read the content of the given buffer-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A pointer to a double variable where the value should be stored @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠buffer_ attr_ read_ longlong - @brief Read the content of the given buffer-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A pointer to a long long variable where the value should be stored @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠buffer_ attr_ write - @brief Set the value of the given buffer-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param src A NULL-terminated string to set the attribute to @return On success, the number of bytes written @return On error, a negative errno code is returned
- iio_
device_ ⚠buffer_ attr_ write_ all - @brief Set the values of all buffer-specific attributes @param dev A pointer to an iio_device structure @param cb A pointer to a callback function @param data A pointer that will be passed to the callback function @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠buffer_ attr_ write_ bool - @brief Set the value of the given buffer-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A bool value to set the attribute to @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠buffer_ attr_ write_ double - @brief Set the value of the given buffer-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A double value to set the attribute to @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠buffer_ attr_ write_ longlong - @brief Set the value of the given buffer-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param val A long long value to set the attribute to @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠buffer_ attr_ write_ raw - @brief Set the value of the given buffer-specific attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the attribute @param src A pointer to the data to be written @param len The number of bytes that should be written @return On success, the number of bytes written @return On error, a negative errno code is returned
- iio_
device_ ⚠create_ buffer - @brief Create an input or output buffer associated to the given device @param dev A pointer to an iio_device structure @param samples_count The number of samples that the buffer should contain @param cyclic If True, enable cyclic mode @return On success, a pointer to an iio_buffer structure @return On error, NULL is returned, and errno is set to the error code
- iio_
device_ ⚠debug_ attr_ read - @brief Read the content of the given debug attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the debug attribute @param dst A pointer to the memory area where the NULL-terminated string corresponding to the value read will be stored @param len The available length of the memory area, in bytes @return On success, the number of bytes written to the buffer @return On error, a negative errno code is returned
- iio_
device_ ⚠debug_ attr_ read_ all - @brief Read the content of all debug attributes @param dev A pointer to an iio_device structure @param cb A pointer to a callback function @param data A pointer that will be passed to the callback function @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠debug_ attr_ read_ bool - @brief Read the content of the given debug attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the debug attribute @param val A pointer to a bool variable where the value should be stored @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠debug_ attr_ read_ double - @brief Read the content of the given debug attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the debug attribute @param val A pointer to a double variable where the value should be stored @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠debug_ attr_ read_ longlong - @brief Read the content of the given debug attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the debug attribute @param val A pointer to a long long variable where the value should be stored @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠debug_ attr_ write - @brief Set the value of the given debug attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the debug attribute @param src A NULL-terminated string to set the debug attribute to @return On success, the number of bytes written @return On error, a negative errno code is returned
- iio_
device_ ⚠debug_ attr_ write_ all - @brief Set the values of all debug attributes @param dev A pointer to an iio_device structure @param cb A pointer to a callback function @param data A pointer that will be passed to the callback function @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠debug_ attr_ write_ bool - @brief Set the value of the given debug attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the debug attribute @param val A bool value to set the debug attribute to @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠debug_ attr_ write_ double - @brief Set the value of the given debug attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the debug attribute @param val A double value to set the debug attribute to @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠debug_ attr_ write_ longlong - @brief Set the value of the given debug attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the debug attribute @param val A long long value to set the debug attribute to @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠debug_ attr_ write_ raw - @brief Set the value of the given debug attribute @param dev A pointer to an iio_device structure @param attr A NULL-terminated string corresponding to the name of the debug attribute @param src A pointer to the data to be written @param len The number of bytes that should be written @return On success, the number of bytes written @return On error, a negative errno code is returned
- iio_
device_ ⚠find_ attr - @brief Try to find a device-specific attribute by its name @param dev A pointer to an iio_device structure @param name A NULL-terminated string corresponding to the name of the attribute @return On success, a pointer to a static NULL-terminated string @return If the name does not correspond to any known attribute of the given device, NULL is returned
- iio_
device_ ⚠find_ buffer_ attr - @brief Try to find a buffer-specific attribute by its name @param dev A pointer to an iio_device structure @param name A NULL-terminated string corresponding to the name of the attribute @return On success, a pointer to a static NULL-terminated string @return If the name does not correspond to any known attribute of the given device, NULL is returned
- iio_
device_ ⚠find_ channel - @brief Try to find a channel structure by its name of ID @param dev A pointer to an iio_device structure @param name A NULL-terminated string corresponding to the name or the ID of the channel to search for @param output True if the searched channel is output, False otherwise @return On success, a pointer to an iio_channel structure @return If the name or ID does not correspond to any known channel of the given device, NULL is returned
- iio_
device_ ⚠find_ debug_ attr - @brief Try to find a debug attribute by its name @param dev A pointer to an iio_device structure @param name A NULL-terminated string corresponding to the name of the debug attribute @return On success, a pointer to a static NULL-terminated string @return If the name does not correspond to any known debug attribute of the given device, NULL is returned
- iio_
device_ ⚠get_ attr - @brief Get the device-specific attribute present at the given index @param dev A pointer to an iio_device structure @param index The index corresponding to the attribute @return On success, a pointer to a static NULL-terminated string @return If the index is invalid, NULL is returned
- iio_
device_ ⚠get_ attrs_ count - @brief Enumerate the device-specific attributes of the given device @param dev A pointer to an iio_device structure @return The number of device-specific attributes found
- iio_
device_ ⚠get_ buffer_ attr - @brief Get the buffer-specific attribute present at the given index @param dev A pointer to an iio_device structure @param index The index corresponding to the attribute @return On success, a pointer to a static NULL-terminated string @return If the index is invalid, NULL is returned
- iio_
device_ ⚠get_ buffer_ attrs_ count - @brief Enumerate the buffer-specific attributes of the given device @param dev A pointer to an iio_device structure @return The number of buffer-specific attributes found
- iio_
device_ ⚠get_ channel - @brief Get the channel present at the given index @param dev A pointer to an iio_device structure @param index The index corresponding to the channel @return On success, a pointer to an iio_channel structure @return If the index is invalid, NULL is returned
- iio_
device_ ⚠get_ channels_ count - @brief Enumerate the channels of the given device @param dev A pointer to an iio_device structure @return The number of channels found
- iio_
device_ ⚠get_ context - @brief Retrieve a pointer to the iio_context structure @param dev A pointer to an iio_device structure @return A pointer to an iio_context structure
- iio_
device_ ⚠get_ data - @brief Retrieve a previously associated pointer of an iio_device structure @param dev A pointer to an iio_device structure @return The pointer previously associated if present, or NULL
- iio_
device_ ⚠get_ debug_ attr - @brief Get the debug attribute present at the given index @param dev A pointer to an iio_device structure @param index The index corresponding to the debug attribute @return On success, a pointer to a static NULL-terminated string @return If the index is invalid, NULL is returned
- iio_
device_ ⚠get_ debug_ attrs_ count - @brief Enumerate the debug attributes of the given device @param dev A pointer to an iio_device structure @return The number of debug attributes found
- iio_
device_ ⚠get_ id - @brief Retrieve the device ID (e.g. iio:device0) @param dev A pointer to an iio_device structure @return A pointer to a static NULL-terminated string
- iio_
device_ ⚠get_ label - @brief Retrieve the device label (e.g. lo_pll0_rx_adf4351) @param dev A pointer to an iio_device structure @return A pointer to a static NULL-terminated string
- iio_
device_ ⚠get_ name - @brief Retrieve the device name (e.g. xadc) @param dev A pointer to an iio_device structure @return A pointer to a static NULL-terminated string
- iio_
device_ ⚠get_ sample_ size - @brief Get the current sample size @param dev A pointer to an iio_device structure @return On success, the sample size in bytes @return On error, a negative errno code is returned
- iio_
device_ ⚠get_ trigger - @brief Retrieve the trigger of a given device @param dev A pointer to an iio_device structure @param trigger a pointer to a pointer of an iio_device structure. The pointed pointer will be set to the address of the iio_device structure corresponding to the associated trigger device. @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠identify_ filename - @brief Identify the channel or debug attribute corresponding to a filename @param dev A pointer to an iio_device structure @param filename A NULL-terminated string corresponding to the filename @param chn A pointer to a pointer of an iio_channel structure. The pointed pointer will be set to the address of the iio_channel structure if the filename correspond to the attribute of a channel, or NULL otherwise. @param attr A pointer to a NULL-terminated string. The pointer pointer will be set to point to the name of the attribute corresponding to the filename. @return On success, 0 is returned, and *chn and *attr are modified. @return On error, a negative errno code is returned. *chn and *attr are not modified.
- iio_
device_ ⚠is_ trigger - @brief Return True if the given device is a trigger @param dev A pointer to an iio_device structure @return True if the device is a trigger, False otherwise
- iio_
device_ ⚠reg_ read - @brief Get the value of a hardware register @param dev A pointer to an iio_device structure @param address The address of the register @param value A pointer to the variable where the value will be written @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠reg_ write - @brief Set the value of a hardware register @param dev A pointer to an iio_device structure @param address The address of the register @param value The value to set the register to @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
device_ ⚠set_ data - @brief Associate a pointer to an iio_device structure @param dev A pointer to an iio_device structure @param data The pointer to be associated
- iio_
device_ ⚠set_ kernel_ buffers_ count - @brief Configure the number of kernel buffers for a device
- iio_
device_ ⚠set_ trigger - @brief Associate a trigger to a given device @param dev A pointer to an iio_device structure @param trigger a pointer to the iio_device structure corresponding to the trigger that should be associated. @return On success, 0 is returned @return On error, a negative errno code is returned
- iio_
get_ ⚠backend - @brief Retrieve the name of a given backend @param index The index corresponding to the attribute @return On success, a pointer to a static NULL-terminated string @return If the index is invalid, NULL is returned
- iio_
get_ ⚠backends_ count - @brief Get the number of available backends @return The number of available backends
- iio_
has_ ⚠backend - @brief Check if the specified backend is available @param backend The name of the backend to query @return True if the backend is available, false otherwise
- iio_
library_ ⚠get_ version - @brief Get the version of the libiio library @param major A pointer to an unsigned integer (NULL accepted) @param minor A pointer to an unsigned integer (NULL accepted) @param git_tag A pointer to a 8-characters buffer (NULL accepted)
- iio_
scan_ ⚠block_ destroy - @brief Destroy the given scan block @param blk A pointer to an iio_scan_block structure
- iio_
scan_ ⚠block_ get_ info - @brief Get the iio_context_info for a particular context @param blk A pointer to an iio_scan_block structure @param index The index corresponding to the context. @return A pointer to the iio_context_info for the context @returns On success, a pointer to the specified iio_context_info @returns On failure, NULL is returned and errno is set appropriately
- iio_
scan_ ⚠block_ scan - @brief Enumerate available contexts via scan block @param blk A pointer to a iio_scan_block structure. @returns On success, the number of contexts found. @returns On failure, a negative error number.
- iio_
scan_ ⚠context_ destroy - @brief Destroy the given scan context @param ctx A pointer to an iio_scan_context structure
- iio_
scan_ ⚠context_ get_ info_ list - @brief Enumerate available contexts @param ctx A pointer to an iio_scan_context structure @param info A pointer to a ‘const struct iio_context_info **’ typed variable. The pointed variable will be initialized on success. @returns On success, the number of contexts found. @returns On failure, a negative error number.
- iio_
strerror ⚠ - @brief Get a string description of an error code @param err The error code @param dst A pointer to the memory area where the NULL-terminated string corresponding to the error message will be stored @param len The available length of the memory area, in bytes
- initstate⚠
- initstate_
r ⚠ - jrand48⚠
- jrand48_
r ⚠ - l64a⚠
- labs⚠
- lcong48⚠
- lcong48_
r ⚠ - ldiv⚠
- llabs⚠
- lldiv⚠
- lrand48⚠
- lrand48_
r ⚠ - malloc⚠
- mblen⚠
- mbstowcs⚠
- mbtowc⚠
- mkdtemp⚠
- mkstemp⚠
- mkstemps⚠
- mktemp⚠
- mrand48⚠
- mrand48_
r ⚠ - nrand48⚠
- nrand48_
r ⚠ - on_exit⚠
- posix_
memalign ⚠ - pselect⚠
- putenv⚠
- qecvt⚠
- qecvt_r⚠
- qfcvt⚠
- qfcvt_r⚠
- qgcvt⚠
- qsort⚠
- quick_
exit ⚠ - rand⚠
- rand_r⚠
- random⚠
- random_
r ⚠ - realloc⚠
- reallocarray⚠
- realpath⚠
- rpmatch⚠
- seed48⚠
- seed48_
r ⚠ - select⚠
- setenv⚠
- setstate⚠
- setstate_
r ⚠ - srand⚠
- srand48⚠
- srand48_
r ⚠ - srandom⚠
- srandom_
r ⚠ - strtod⚠
- strtof⚠
- strtol⚠
- strtold⚠
- strtoll⚠
- strtoq⚠
- strtoul⚠
- strtoull⚠
- strtouq⚠
- system⚠
- unsetenv⚠
- valloc⚠
- wcstombs⚠
- wctomb⚠
Type Aliases§
- _Float32
- _Float64
- _Float32x
- _Float64x
- __
blkcnt64_ t - __
blkcnt_ t - __
blksize_ t - __
caddr_ t - __
clock_ t - __
clockid_ t - __
compar_ fn_ t - __
daddr_ t - __dev_t
- __
fd_ mask - __
fsblkcnt64_ t - __
fsblkcnt_ t - __
fsfilcnt64_ t - __
fsfilcnt_ t - __
fsword_ t - __gid_t
- __id_t
- __
ino64_ t - __ino_t
- __
int8_ t - __
int16_ t - __
int32_ t - __
int64_ t - __
int_ least8_ t - __
int_ least16_ t - __
int_ least32_ t - __
int_ least64_ t - __
intmax_ t - __
intptr_ t - __key_t
- __
loff_ t - __
mode_ t - __
nlink_ t - __
off64_ t - __off_t
- __pid_t
- __
pthread_ list_ t - __
pthread_ slist_ t - __
quad_ t - __
rlim64_ t - __
rlim_ t - __
sig_ atomic_ t - __
socklen_ t - __
ssize_ t - __
suseconds64_ t - __
suseconds_ t - __
syscall_ slong_ t - __
syscall_ ulong_ t - __
thrd_ t - __
time_ t - __
timer_ t - __tss_t
- __
u_ char - __u_int
- __
u_ long - __
u_ quad_ t - __
u_ short - __uid_t
- __
uint8_ t - __
uint16_ t - __
uint32_ t - __
uint64_ t - __
uint_ least8_ t - __
uint_ least16_ t - __
uint_ least32_ t - __
uint_ least64_ t - __
uintmax_ t - __
useconds_ t - blkcnt_
t - blksize_
t - caddr_t
- clock_t
- clockid_
t - daddr_t
- dev_t
- fd_mask
- fsblkcnt_
t - fsfilcnt_
t - fsid_t
- gid_t
- hwmon_
chan_ type - @defgroup Hwmon Compatibility with hardware monitoring (hwmon) devices @{ @enum hwmon_chan_type @brief Hwmon channel type
- id_t
- iio_
chan_ type - @enum iio_chan_type @brief IIO channel type
- iio_
event_ direction - @enum iio_event_direction @brief IIO event direction
- iio_
event_ type - @enum iio_event_type @brief IIO event type
- iio_
modifier - @enum iio_modifier @brief IIO channel modifier
- ino_t
- int_
fast8_ t - int_
fast16_ t - int_
fast32_ t - int_
fast64_ t - int_
least8_ t - int_
least16_ t - int_
least32_ t - int_
least64_ t - intmax_
t - key_t
- loff_t
- mode_t
- nlink_t
- off_t
- pid_t
- pthread_
key_ t - pthread_
once_ t - pthread_
spinlock_ t - pthread_
t - quad_t
- register_
t - sigset_
t - suseconds_
t - time_t
- timer_t
- u_char
- u_int
- u_
int8_ t - u_
int16_ t - u_
int32_ t - u_
int64_ t - u_long
- u_
quad_ t - u_short
- uid_t
- uint
- uint_
fast8_ t - uint_
fast16_ t - uint_
fast32_ t - uint_
fast64_ t - uint_
least8_ t - uint_
least16_ t - uint_
least32_ t - uint_
least64_ t - uintmax_
t - ulong
- ushort
- wchar_t