-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
The onTransmit
has no information about if it's the same transfer (chip select pin keep low). For my case, I need to simulate a SPI slave which has different behavior for different transfer length. The CS pin is controlled directly by hardware, currently I have no idea how to fix it. Any suggestion?
rp2040js/src/peripherals/spi.ts
Lines 112 to 119 in cac702d
private doTX() { | |
if (!this.busy && !this.txFIFO.empty) { | |
const value = this.txFIFO.pull(); | |
this.busy = true; | |
this.onTransmit(value); | |
this.fifosUpdated(); | |
} | |
} |
Metadata
Metadata
Assignees
Labels
No labels