libiio
0.21
Library for interfacing with IIO devices
|
Functions | |
__api void | iio_library_get_version (unsigned int *major, unsigned int *minor, char git_tag[8]) |
Get the version of the libiio library. More... | |
__api void | iio_strerror (int err, char *dst, size_t len) |
Get a string description of an error code. More... | |
__api __check_ret __cnst bool | iio_has_backend (const char *backend) |
Check if the specified backend is available. More... | |
__api __check_ret __cnst unsigned int | iio_get_backends_count (void) |
Get the number of available backends. More... | |
__api __check_ret __cnst const char * | iio_get_backend (unsigned int index) |
Retrieve the name of a given backend. More... | |
__api __check_ret __cnst const char* iio_get_backend | ( | unsigned int | index | ) |
Retrieve the name of a given backend.
index | The index corresponding to the attribute |
Introduced in version 0.9.
__api __check_ret __cnst unsigned int iio_get_backends_count | ( | void | ) |
Get the number of available backends.
Introduced in version 0.9.
__api __check_ret __cnst bool iio_has_backend | ( | const char * | backend | ) |
Check if the specified backend is available.
backend | The name of the backend to query |
Introduced in version 0.9.
__api void iio_library_get_version | ( | unsigned int * | major, |
unsigned int * | minor, | ||
char | git_tag[8] | ||
) |
Get the version of the libiio library.
major | A pointer to an unsigned integer (NULL accepted) |
minor | A pointer to an unsigned integer (NULL accepted) |
git_tag | A pointer to a 8-characters buffer (NULL accepted) |
__api void iio_strerror | ( | int | err, |
char * | dst, | ||
size_t | len | ||
) |
Get a string description of an error code.
err | The error code |
dst | A pointer to the memory area where the NULL-terminated string corresponding to the error message will be stored |
len | The available length of the memory area, in bytes |