File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
docs/design-documents/hal Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,9 @@ void spi_free(spi_t *obj);
196
196
- In Half-duplex mode :
197
197
- as master, `spi_transfer()` sends `tx_len` symbols and then reads `rx_len` symbols.
198
198
- as slave, `spi_transfer()` receives `rx_len` symbols and then sends `tx_len` symbols.
199
- - `spi_transter_async()` schedules a transfer to be process the same way `spi_transfer()` would have but asynchronously.
199
+ - `spi_transter_async()` schedules a transfer to be process the same way `spi_transfer()` would have but asynchronously with the following exceptions:
200
+ - in async mode only transfers of the same size are allowed (tx size must be equal to rx size)
201
+ - async mode only supports full-duplex mode
200
202
- `spi_transter_async()` returns immediately with a boolean indicating whether the transfer was successfully scheduled or not.
201
203
- The callback given to `spi_transfer_async()` is invoked when the transfer completes (with a success or an error).
202
204
- `spi_transfer_async()` saves the handler and the `ctx` pointer.
You can’t perform that action at this time.
0 commit comments