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

This commit is contained in:
wanckl
2026-06-10 14:41:13 +08:00
parent ecb4123afd
commit 875b7ab7c0
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.