golemparts/rppal

Does rppal support non-blocking SPI?

imrank03 opened this issue · 2 comments

Hi, Does SPI support non-blocking mode, if supported how to do it?

Hi @imrank03. SPI doesn't support non-blocking mode at this time, because it's limited by the features provided by the underlying linux driver.

If non-blocking/async SPI is a requirement for your project, you could theoretically use the current synchronous implementation, run an instance of Spi on a separate thread, and communicate with it through channels to buffer writes, reads and transfers.

Hello @golemparts, thanks for the clarification.