Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: add support for device labels. #24

Open
AntoineZenKraken opened this issue Jan 9, 2023 · 0 comments
Open

Feature request: add support for device labels. #24

AntoineZenKraken opened this issue Jan 9, 2023 · 0 comments

Comments

@AntoineZenKraken
Copy link

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().

@AntoineZenKraken AntoineZenKraken changed the title Feature request.: add support for device labels. Feature request: add support for device labels. Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant