Searched refs:tx_length (Results 1 – 1 of 1) sorted by relevance
/hal_rpi_pico-latest/src/rp2_common/pico_cyw43_driver/ |
D | cyw43_bus_pio_spi.c | 227 int cyw43_spi_transfer(cyw43_int_t *self, const uint8_t *tx, size_t tx_length, uint8_t *rx, in cyw43_spi_transfer() argument 239 assert(tx_length && tx_length < rx_length); in cyw43_spi_transfer() 242 printf("[%lu] bus TX/RX %u bytes rx %u:", counter++, tx_length, rx_length); in cyw43_spi_transfer() 243 dump_bytes(tx, tx_length); in cyw43_spi_transfer() 245 assert(!(tx_length & 3)); in cyw43_spi_transfer() 256 pio_sm_put(bus_data->pio, bus_data->pio_sm, tx_length * 8 - 1); in cyw43_spi_transfer() 258 pio_sm_put(bus_data->pio, bus_data->pio_sm, (rx_length - tx_length) * 8 - 1); in cyw43_spi_transfer() 268 …re(bus_data->dma_out, &out_config, &bus_data->pio->txf[bus_data->pio_sm], tx, tx_length / 4, true); in cyw43_spi_transfer() 275 …ure(bus_data->dma_in, &in_config, rx + tx_length, &bus_data->pio->rxf[bus_data->pio_sm], rx_length… in cyw43_spi_transfer() 284 …memset(rx, 0, tx_length); // make sure we don't have garbage in what would have been returned data… in cyw43_spi_transfer() [all …]
|