libiio
0.20
Library for interfacing with IIO devices
|
Data Structures | |
struct | iio_context_info |
The information related to a discovered context. More... | |
Functions | |
__api __check_ret struct iio_scan_context * | iio_create_scan_context (const char *backend, unsigned int flags) |
Create a scan context. More... | |
__api void | iio_scan_context_destroy (struct iio_scan_context *ctx) |
Destroy the given scan context. More... | |
__api __check_ret ssize_t | iio_scan_context_get_info_list (struct iio_scan_context *ctx, struct iio_context_info ***info) |
Enumerate available contexts. More... | |
__api void | iio_context_info_list_free (struct iio_context_info **info) |
Free a context info list. More... | |
__api __check_ret __pure const char * | iio_context_info_get_description (const struct iio_context_info *info) |
Get a description of a discovered context. More... | |
__api __check_ret __pure const char * | iio_context_info_get_uri (const struct iio_context_info *info) |
Get the URI of a discovered context. More... | |
__api struct iio_scan_block * | iio_create_scan_block (const char *backend, unsigned int flags) |
Create a scan block. More... | |
__api void | iio_scan_block_destroy (struct iio_scan_block *blk) |
Destroy the given scan block. More... | |
__api ssize_t | iio_scan_block_scan (struct iio_scan_block *blk) |
Enumerate available contexts via scan block. More... | |
__api struct iio_context_info * | iio_scan_block_get_info (struct iio_scan_block *blk, unsigned int index) |
Get the iio_context_info for a particular context. More... | |
__api __check_ret __pure const char* iio_context_info_get_description | ( | const struct iio_context_info * | info | ) |
Get a description of a discovered context.
info | A pointer to an iio_context_info structure |
__api __check_ret __pure const char* iio_context_info_get_uri | ( | const struct iio_context_info * | info | ) |
Get the URI of a discovered context.
info | A pointer to an iio_context_info structure |
__api void iio_context_info_list_free | ( | struct iio_context_info ** | info | ) |
Free a context info list.
info | A pointer to a 'const struct iio_context_info *' typed variable |
__api struct iio_scan_block* iio_create_scan_block | ( | const char * | backend, |
unsigned int | flags | ||
) |
Create a scan block.
backend | A NULL-terminated string containing the backend to use for scanning. If NULL, all the available backends are used. |
flags | Unused for now. Set to 0. |
Introduced in version 0.20.
__api __check_ret struct iio_scan_context* iio_create_scan_context | ( | const char * | backend, |
unsigned int | flags | ||
) |
Create a scan context.
backend | A NULL-terminated string containing the backend(s) to use for scanning (example: pre version 0.20 : "local", "ip", or "usb"; post version 0.20 can handle multiple, including "local:usb:", "ip:usb:", "local:usb:ip:"). If NULL, all the available backends are used. |
flags | Unused for now. Set to 0. |
__api void iio_scan_block_destroy | ( | struct iio_scan_block * | blk | ) |
Destroy the given scan block.
blk | A pointer to an iio_scan_block structure |
NOTE: After that function, the iio_scan_block pointer shall be invalid.
Introduced in version 0.20.
__api struct iio_context_info* iio_scan_block_get_info | ( | struct iio_scan_block * | blk, |
unsigned int | index | ||
) |
Get the iio_context_info for a particular context.
blk | A pointer to an iio_scan_block structure |
index | The index corresponding to the context. |
Introduced in version 0.20.
__api ssize_t iio_scan_block_scan | ( | struct iio_scan_block * | blk | ) |
Enumerate available contexts via scan block.
blk | A pointer to a iio_scan_block structure. |
Introduced in version 0.20.
__api void iio_scan_context_destroy | ( | struct iio_scan_context * | ctx | ) |
Destroy the given scan context.
ctx | A pointer to an iio_scan_context structure |
NOTE: After that function, the iio_scan_context pointer shall be invalid.
__api __check_ret ssize_t iio_scan_context_get_info_list | ( | struct iio_scan_context * | ctx, |
struct iio_context_info *** | info | ||
) |
Enumerate available contexts.
ctx | A pointer to an iio_scan_context structure |
info | A pointer to a 'const struct iio_context_info **' typed variable. The pointed variable will be initialized on success. |