-
Notifications
You must be signed in to change notification settings - Fork 203
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: add settings to embedded-hal-bus SpiDevice impls for CS-to-clock delays. #539
Comments
i'm going to remove this from the 1.0 milestone, It concerns only |
Hello! I would like to know if there is any plan to support this feature as its necessary to drive chips like the LTC6813 If there is but no one is currently working on it, I would be pleased to be given direction in order to help implement this! At first sight I would say, adding a parameter in the Device creation function, as well as a field in the Device struct to store a delay duration and using the
If that's alright i would be happy to provide a PR for this |
Could the SPI SCLK frequency be also added? This is very useful when multiple devices share the same SPI bus, and is very common. |
As discussed in today's meeting:
It is better if the CS-assert-to-clock and clock-to-CS-deassert delays are configured in the SpiDevice itself, so that the driver doesn't have to add them to every single transaction, and can use the
read
/write
/write_read
convenience methods.embedded-hal-bus
to do the delaysOperation::DelayNs
directly for CS-to-clocks delays.The text was updated successfully, but these errors were encountered: