Function libiio_sys::iio_context_find_device
source · pub unsafe extern "C" fn iio_context_find_device(
ctx: *const iio_context,
name: *const c_char
) -> *mut iio_device
Expand description
@brief Try to find a device structure by its name of ID @param ctx A pointer to an iio_context structure @param name A NULL-terminated string corresponding to the name or the ID of the device to search for @return On success, a pointer to an iio_device structure @return If the name or ID does not correspond to any known device, NULL is returned