iio_context_find_device

Function 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 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