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

Add function to query current SPI device configuration #42

Merged
merged 4 commits into from
Sep 25, 2023

Conversation

superbort
Copy link
Contributor

This introduces a function called "query_configuration" which reads the current config and returns a "SpidevOptions" object.

For the mode it tries 32 bit first and if that fails because the kernel is to old, it retries with 8 bit.

This commit introduces the `query_configuration` function which reads the current configuration from the SPI device and returns a `SpidevOptions` object.
This commit introduces the `query_configuration` function which reads the current configuration from the SPI device and returns a `SpidevOptions` object.
@superbort superbort requested a review from a team as a code owner September 22, 2023 14:22
Copy link
Member

@eldruin eldruin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you!
Could you add an entry to the changelog?

src/lib.rs Outdated Show resolved Hide resolved
Copy link
Member

@eldruin eldruin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@eldruin eldruin added this pull request to the merge queue Sep 25, 2023
Merged via the queue into rust-embedded:master with commit 75c319b Sep 25, 2023
9 checks passed
@barafael
Copy link

@superbort does this PR address the last item in the table in the readme ?

eldruin added a commit to eldruin/rust-spidev that referenced this pull request Nov 21, 2024
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 this pull request may close these issues.

3 participants