Separate send/receive buffers
This commit is contained in:
parent
b5c2120efc
commit
9dc565ff7c
2 changed files with 19 additions and 12 deletions
core/include/esp
|
@ -183,10 +183,11 @@ uint32_t spi_transfer_32(uint8_t bus, uint32_t data);
|
|||
/**
|
||||
* \brief Transfer buffer over SPI
|
||||
* \param bus Bus ID: 0 - system, 1 - user
|
||||
* \param data Data to send. Buffer contents will be replaced with received data
|
||||
* \param out_data Data to send.
|
||||
* \param in_data Receive buffer. If NULL, received data will be lost.
|
||||
* \param len Buffer size
|
||||
*/
|
||||
void spi_transfer(uint8_t bus, void *data, size_t len);
|
||||
void spi_transfer(uint8_t bus, const void *out_data, void *in_data, size_t len);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue