feat(driver_spi): slave driver support config different tx/rx length

This commit is contained in:
wanckl
2026-07-06 11:58:20 +08:00
committed by Wan Lei
parent 169aded5b1
commit 072f62d70d
7 changed files with 103 additions and 66 deletions
@@ -75,7 +75,8 @@ typedef struct {
* Transaction specific (data), all these parameters will be updated to the
* peripheral every transaction.
*/
uint32_t bitlen; ///< Expected maximum length of the transaction, in bits.
uint32_t tx_bitlen; ///< Expected maximum length of the tx transaction, in bits.
uint32_t rx_bitlen; ///< Expected maximum length of the rx transaction, in bits.
const void *tx_buffer; ///< Data to be sent
void *rx_buffer; ///< Buffer to hold the received data.