Moved simultaneous reading and writing into SPI; removed it from I2C and UART

This commit is contained in:
dario
2023-08-20 17:38:48 +02:00
parent 8ffba482de
commit 4c157bbe52
12 changed files with 30 additions and 50 deletions

View File

@@ -53,15 +53,6 @@ namespace sta
*/
void transfer(const uint8_t * buffer, size_t size);
/**
* @brief Send and receive data simultaneously.
*
* @param txBuffer Send buffer
* @param rxBuffer Receive buffer
* @param size Number of bytes to transfer
*/
void transfer(const uint8_t * txBuffer, uint8_t * rxBuffer, size_t size);
/**
* @brief Read incoming data to buffer.
*
@@ -95,4 +86,4 @@ namespace sta
};
} // namespace sta
#endif // STA_CORE_BUS_SERIAL_DEVICE_HPP
#endif // STA_CORE_BUS_SERIAL_DEVICE_HPP