Functions | |
| bool | spi_transfer_async (spi_t *obj, const void *tx, uint32_t tx_len, void *rx, uint32_t rx_len, const void *fill_symbol, spi_async_handler_f handler, void *ctx, DMAUsage hint) |
| Transfer data returning immediately. More... | |
| void | spi_transfer_async_abort (spi_t *obj) |
| Abort the current asynchronous operation. More... | |
| bool spi_transfer_async | ( | spi_t * | obj, |
| const void * | tx, | ||
| uint32_t | tx_len, | ||
| void * | rx, | ||
| uint32_t | rx_len, | ||
| const void * | fill_symbol, | ||
| spi_async_handler_f | handler, | ||
| void * | ctx, | ||
| DMAUsage | hint | ||
| ) |
Transfer data returning immediately.
| obj | SPI periheral. |
| tx | Buffer so send. |
| tx_len | Number of symbol in tx. |
| rx | Buffer to store received symbols. |
| rx_len | Number of symbol to store in rx. |
| fill_symbol | Symbol to send if tx_len is less than rx_len. |
| handler | Callback to invoke at the end of the operation. |
| ctx | Argument passed to the callback. |
| hint | Hint to help determine the DMA allocation strategy. |
| void spi_transfer_async_abort | ( | spi_t * | obj | ) |
Abort the current asynchronous operation.