You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The libiiohas an iio_device_get_label() function that is useful to find a device that is linked to a particular use.
Basically, you add a label attribute to the DTS node (see biding here) and you can use this label to lookup the right device. This can be useful to esly map the virtual device to the real one in the application, to have a unique reference that does not change (in contract to the ID, if you add another device).
It would be nice to have this functionality available from Rust too! I think this should not be too complicated to implement. It just need to mimic the behavior of method industrial_io::device::Device::name().
The text was updated successfully, but these errors were encountered:
The
libiio
has an iio_device_get_label() function that is useful to find a device that is linked to a particular use.Basically, you add a
label
attribute to the DTS node (see biding here) and you can use this label to lookup the right device. This can be useful to esly map the virtual device to the real one in the application, to have a unique reference that does not change (in contract to the ID, if you add another device).It would be nice to have this functionality available from Rust too! I think this should not be too complicated to implement. It just need to mimic the behavior of method
industrial_io::device::Device::name()
.The text was updated successfully, but these errors were encountered: