Home
last modified time | relevance | path

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

/nrf52832-nimble/nordic/nrfx/drivers/src/
H A Dnrfx_twim.c317 nrfx_twim_xfer_desc_t const * p_xfer_desc, in twim_xfer() argument
324 if (!nrfx_is_in_ram(p_xfer_desc->p_primary_buf)) in twim_xfer()
349 p_cb->xfer_desc = *p_xfer_desc; in twim_xfer()
351 nrf_twim_address_set(p_twim, p_xfer_desc->address); in twim_xfer()
357 switch (p_xfer_desc->type) in twim_xfer()
363 if (!nrfx_is_in_ram(p_xfer_desc->p_secondary_buf)) in twim_xfer()
372 nrf_twim_tx_buffer_set(p_twim, p_xfer_desc->p_primary_buf, p_xfer_desc->primary_length); in twim_xfer()
382 nrf_twim_tx_buffer_set(p_twim, p_xfer_desc->p_secondary_buf, p_xfer_desc->secondary_length); in twim_xfer()
386 nrf_twim_tx_buffer_set(p_twim, p_xfer_desc->p_primary_buf, p_xfer_desc->primary_length); in twim_xfer()
387 if (!nrfx_is_in_ram(p_xfer_desc->p_secondary_buf)) in twim_xfer()
[all …]
H A Dnrfx_spim.c387 nrfx_spim_xfer_desc_t const * p_xfer_desc, in nrfx_spim_xfer_dcx() argument
393 return nrfx_spim_xfer(p_instance, p_xfer_desc, 0); in nrfx_spim_xfer_dcx()
460 nrfx_spim_xfer_desc_t const * p_xfer_desc, in spim_xfer() argument
466 if ((p_xfer_desc->p_tx_buffer != NULL && !nrfx_is_in_ram(p_xfer_desc->p_tx_buffer)) || in spim_xfer()
467 (p_xfer_desc->p_rx_buffer != NULL && !nrfx_is_in_ram(p_xfer_desc->p_rx_buffer))) in spim_xfer()
482 nrf_spim_tx_buffer_set(p_spim, p_xfer_desc->p_tx_buffer, p_xfer_desc->tx_length); in spim_xfer()
483 nrf_spim_rx_buffer_set(p_spim, p_xfer_desc->p_rx_buffer, p_xfer_desc->rx_length); in spim_xfer()
488 anomaly_198_enable(p_xfer_desc->p_tx_buffer, p_xfer_desc->tx_length); in spim_xfer()
504 p_cb->tx_length = p_xfer_desc->tx_length; in spim_xfer()
505 p_cb->rx_length = p_xfer_desc->rx_length; in spim_xfer()
[all …]
H A Dnrfx_twi.c507 nrfx_twi_xfer_desc_t const * p_xfer_desc, in twi_xfer() argument
531 p_cb->xfer_desc = *p_xfer_desc; in twi_xfer()
532 p_cb->curr_length = p_xfer_desc->primary_length; in twi_xfer()
533 p_cb->p_curr_buf = p_xfer_desc->p_primary_buf; in twi_xfer()
534 nrf_twi_address_set(p_twi, p_xfer_desc->address); in twi_xfer()
536 if (p_xfer_desc->type != NRFX_TWI_XFER_RX) in twi_xfer()
538 p_cb->curr_no_stop = ((p_xfer_desc->type == NRFX_TWI_XFER_TX) && in twi_xfer()
543 p_xfer_desc->p_primary_buf, in twi_xfer()
544 p_xfer_desc->primary_length, in twi_xfer()
553 p_xfer_desc->p_primary_buf, in twi_xfer()
[all …]
H A Dnrfx_spi.c293 nrfx_spi_xfer_desc_t const * p_xfer_desc) in spi_xfer() argument
304 (p_xfer_desc->tx_length > 0 ? p_xfer_desc->p_tx_buffer[0] : p_cb->orc)); in spi_xfer()
310 if (p_xfer_desc->tx_length > 1) in spi_xfer()
312 nrf_spi_txd_set(p_spi, p_xfer_desc->p_tx_buffer[1]); in spi_xfer()
314 else if (p_xfer_desc->rx_length > 1) in spi_xfer()
343 nrfx_spi_xfer_desc_t const * p_xfer_desc, in nrfx_spi_xfer() argument
348 NRFX_ASSERT(p_xfer_desc->p_tx_buffer != NULL || p_xfer_desc->tx_length == 0); in nrfx_spi_xfer()
349 NRFX_ASSERT(p_xfer_desc->p_rx_buffer != NULL || p_xfer_desc->rx_length == 0); in nrfx_spi_xfer()
369 p_cb->evt.xfer_desc = *p_xfer_desc; in nrfx_spi_xfer()
383 spi_xfer(p_instance->p_reg, p_cb, p_xfer_desc); in nrfx_spi_xfer()
/nrf52832-nimble/nordic/nrfx/drivers/include/
H A Dnrfx_spim.h305 nrfx_spim_xfer_desc_t const * p_xfer_desc,
338 nrfx_spim_xfer_desc_t const * p_xfer_desc,
H A Dnrfx_spi.h242 nrfx_spi_xfer_desc_t const * p_xfer_desc,
H A Dnrfx_twi.h316 nrfx_twi_xfer_desc_t const * p_xfer_desc,
H A Dnrfx_twim.h355 nrfx_twim_xfer_desc_t const * p_xfer_desc,