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

SPI ExclusiveDevice: access the bus object #467

Closed
bugadani opened this issue Jul 7, 2023 · 3 comments · Fixed by #473
Closed

SPI ExclusiveDevice: access the bus object #467

bugadani opened this issue Jul 7, 2023 · 3 comments · Fixed by #473

Comments

@bugadani
Copy link
Contributor

bugadani commented Jul 7, 2023

Sometimes it might be necessary/useful to access the SPI bus object that is held by an ExclusiveDevice. One such case might be adjusting SCLK speed based on some data read from the SPI device.

@Dirbaio
Copy link
Member

Dirbaio commented Jul 11, 2023

This was discussed a bit in today's meeting. Sounds like a good feature to have. Could you send a PR?

@bugadani
Copy link
Contributor Author

bugadani commented Jul 11, 2023

Definitely, if something like an inner_ref()/inner_mut() pair sound good. I'm on a vacation, though, so earliest is next week.

@Dirbaio
Copy link
Member

Dirbaio commented Jul 11, 2023

I htink the convention is inner(), inner_mut()? We might want to do into_inner() too, to deconstruct it.

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

Successfully merging a pull request may close this issue.

2 participants