[DRAFT] st7789: add async SPI operations

This commit is contained in:
Ayke van Laethem
2023-12-08 21:52:21 +01:00
parent 9b5840e3cd
commit c3d0697dbc
2 changed files with 57 additions and 3 deletions
+9
View File
@@ -11,3 +11,12 @@ type SPI interface {
// If you want to transfer multiple bytes, it is more efficient to use Tx instead.
Transfer(b byte) (byte, error)
}
// AsyncSPI is a SPI bus that also implements async operations (using DMA,
// probably).
type AsyncSPI interface {
SPI
IsAsync() bool
StartTx(tx, rx []byte) error
Wait() error
}