My Project
Loading...
Searching...
No Matches
iio_context_params Struct Reference

IIO context creation information. More...

#include <iio.h>

Public Attributes

FILE * out
 Handle to the standard output. If NULL, defaults to stdout.
FILE * err
 Handle to the error output. If NULL, defaults to stderr.
enum iio_log_level log_level
 Log level to use. Defaults to the log level that was specified at compilation.
enum iio_log_level stderr_level
 Under this log level (included), messages are sent to the error output ; above this log level (excluded), messages are sent to the standard output. If zero, defaults to LEVEL_WARNING.
enum iio_log_level timestamp_level
 Under this log level (excluded), messages are sent without timestamp; above this log level (included), messages are sent with a timestamp. If set to LEVEL_NOLOG, messages at all log levels are sent without a timestamp. If zero, defaults to LEVEL_DEBUG.
int timeout_ms
 Timeout for I/O operations in milliseconds.
unsigned int flags
 Flags that control context behavior. Bitmask of values from enum iio_context_flags.
char __rsrv [32]
 Reserved for future fields.

Detailed Description

IIO context creation information.

This structure contains parameters that can affect how the IIO context is created.

Member Data Documentation

◆ timeout_ms

int iio_context_params::timeout_ms

Timeout for I/O operations in milliseconds.

  • IIO_TIMEOUT_BACKEND (0): use backend default timeout
  • IIO_TIMEOUT_INFINITE (-1): no timeout (wait indefinitely)
  • IIO_TIMEOUT_NONBLOCK (INT_MIN): non-blocking
  • Positive values: timeout after specified milliseconds
  • Other negative values: invalid (returns -EINVAL)

The documentation for this struct was generated from the following file:
  • /builddir/build/BUILD/libiio-1.0.0-build/libiio-1.0.0/include/iio/iio.h