Home
last modified time | relevance | path

Searched refs:tx_words (Results 1 – 1 of 1) sorted by relevance

/hal_infineon-latest/mtb-hal-cat1/source/
Dcyhal_spi.c1410 size_t tx_words = tx_length / arr_size_modifier; in cyhal_spi_transfer_async() local
1419 if (tx_words > rx_words) in cyhal_spi_transfer_async()
1427 obj->tx_buffer_size = tx_words - rx_words; in cyhal_spi_transfer_async()
1429 tx_words = rx_words; // Use tx_words to store entire transfer length in cyhal_spi_transfer_async()
1439 else if (rx_words > tx_words) in cyhal_spi_transfer_async()
1441 if (tx_words > 0) in cyhal_spi_transfer_async()
1446 obj->rx_buffer = rx + (tx_words * arr_size_modifier); in cyhal_spi_transfer_async()
1447 obj->rx_buffer_size = rx_words - tx_words; in cyhal_spi_transfer_async()
1457 tx_words = 1; in cyhal_spi_transfer_async()
1465 spi_status = Cy_SCB_SPI_Transfer(obj->base, (void *)tx, rx, tx_words, &obj->context); in cyhal_spi_transfer_async()
[all …]