mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-21 06:59:00 +00:00
[DRAFT] st7789: add async SPI operations
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user