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

Alternate SPI configuration with SPI transaction function #63

Open
jbhome opened this issue Jul 22, 2015 · 2 comments
Open

Alternate SPI configuration with SPI transaction function #63

jbhome opened this issue Jul 22, 2015 · 2 comments
Assignees

Comments

@jbhome
Copy link

jbhome commented Jul 22, 2015

This issue relates to use of the spi transaction function with respect to device libraries that handle SPI configuration internally.
While one could dig into the library code for each device to determine how it configures the SPI device, it would seem better, (to me anyway) to have a configuration read-back function.
One would instantiate each device and let it configure SPI, Then use a SPI library function to read-back and save the current configuration. Even better, integrate this into the transaction function giving it the ability to read/save/use the current configuration. So the final process would be instantiate each device , use the transaction function to read/save the SPI configuration for each device.
The result is the same as the current transaction process but seems to better encapsulate/manage library based SPI configuration.

Thanks for the opportunity to discuss this.

Regards,
Jim Brooks

@PaulStoffregen
Copy link

Which libraries?

@jbhome
Copy link
Author

jbhome commented Jul 31, 2015

Ether_card and u8G.
Each devices uses SPI but with different clock/phase configurations.
I thought more about and IMHO using the spi.transaction function within the library would seem to work best.

Regards,
Jim Brooks

@ffissore ffissore assigned facchinm and cmaglie and unassigned facchinm Aug 3, 2015
@sandeepmistry sandeepmistry transferred this issue from arduino/Arduino Sep 16, 2019
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

4 participants