Home
last modified time | relevance | path

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

/hal_nordic-3.5.0/nrfx/drivers/src/
Dnrfx_spi.c280 if (p_cb->bytes_transferred < p_cb->evt.xfer_desc.rx_length) in transfer_byte()
282 p_cb->evt.xfer_desc.p_rx_buffer[p_cb->bytes_transferred] = rx_data; in transfer_byte()
298 if (bytes_used < p_cb->evt.xfer_desc.tx_length) in transfer_byte()
300 p_cb->evt.xfer_desc.tx_length = bytes_used; in transfer_byte()
302 if (bytes_used < p_cb->evt.xfer_desc.rx_length) in transfer_byte()
304 p_cb->evt.xfer_desc.rx_length = bytes_used; in transfer_byte()
308 if (bytes_used < p_cb->evt.xfer_desc.tx_length) in transfer_byte()
310 nrf_spi_txd_set(p_spi, p_cb->evt.xfer_desc.p_tx_buffer[bytes_used]); in transfer_byte()
313 else if (bytes_used < p_cb->evt.xfer_desc.rx_length) in transfer_byte()
319 return (p_cb->bytes_transferred < p_cb->evt.xfer_desc.tx_length || in transfer_byte()
[all …]
Dnrfx_twim.c725 event.xfer_desc.type = p_cb->xfer_type; in irq_handler()
726 event.xfer_desc.address = p_cb->address; in irq_handler()
727 event.xfer_desc.p_primary_buf = p_cb->xfer_desc_primary.p_buffer; in irq_handler()
728 event.xfer_desc.primary_length = p_cb->xfer_desc_primary.length; in irq_handler()
729 event.xfer_desc.p_secondary_buf = p_cb->xfer_desc_secondary.p_buffer; in irq_handler()
730 event.xfer_desc.secondary_length = p_cb->xfer_desc_secondary.length; in irq_handler()
766 event.xfer_desc.type = p_cb->xfer_type; in irq_handler()
767 event.xfer_desc.address = p_cb->address; in irq_handler()
768 event.xfer_desc.p_primary_buf = p_cb->xfer_desc_primary.p_buffer; in irq_handler()
769 event.xfer_desc.primary_length = p_cb->xfer_desc_primary.length; in irq_handler()
[all …]
Dnrfx_twi.c100 nrfx_twi_xfer_desc_t xfer_desc; member
633 p_cb->xfer_desc = *p_xfer_desc; in twi_xfer()
712 ((p_cb->xfer_desc.type == NRFX_TWI_XFER_TXRX) || in irq_handler()
713 (p_cb->xfer_desc.type == NRFX_TWI_XFER_TXTX)) && in irq_handler()
714 p_cb->p_curr_buf == p_cb->xfer_desc.p_primary_buf) in irq_handler()
716 p_cb->p_curr_buf = p_cb->xfer_desc.p_secondary_buf; in irq_handler()
717 p_cb->curr_length = p_cb->xfer_desc.secondary_length; in irq_handler()
721 if (p_cb->xfer_desc.type == NRFX_TWI_XFER_TXTX) in irq_handler()
733 event.xfer_desc = p_cb->xfer_desc; in irq_handler()
Dnrfx_spim.c733 nrfy_spim_xfer_desc_t xfer_desc = *p_xfer_desc; in spim_xfer() local
738 xfer_desc.tx_length = 0; in spim_xfer()
739 xfer_desc.rx_length = 0; in spim_xfer()
743 nrfy_spim_buffers_set(p_spim, &xfer_desc); in spim_xfer()
750 nrfy_spim_xfer_start(p_spim, p_cb->handler ? NULL : &xfer_desc); in spim_xfer()
827 p_cb->evt.xfer_desc = *p_xfer_desc; in nrfx_spim_xfer()
859 nrfy_spim_buffers_set(p_spim, &p_cb->evt.xfer_desc); in irq_handler()
867 &p_cb->evt.xfer_desc)) in irq_handler()
Dnrfx_uarte.c312 nrfy_uarte_xfer_desc_t xfer_desc = { in nrfx_uarte_uninit() local
316 nrfy_uarte_stop(p_instance->p_reg, &xfer_desc); in nrfx_uarte_uninit()
472 nrfy_uarte_xfer_desc_t xfer_desc = { in nrfx_uarte_rx() local
477 evt_mask = nrfy_uarte_rx_start(p_instance->p_reg, !p_cb->handler ? &xfer_desc : NULL); in nrfx_uarte_rx()
573 nrfy_uarte_xfer_desc_t xfer_desc = { in irq_handler() local
583 &xfer_desc); in irq_handler()
/hal_nordic-3.5.0/nrfx/samples/src/nrfx_spim_spis/advanced_non_blocking/
Dmain.c165 size_t tx_length = p_event->xfer_desc.tx_length; in spim_handler()
166 size_t rx_length = p_event->xfer_desc.rx_length; in spim_handler()
/hal_nordic-3.5.0/nrfx/samples/src/nrfx_spim/non_blocking/
Dmain.c87 NRFX_LOG_INFO("Message received: %s", p_event->xfer_desc.p_rx_buffer); in spim_handler()
/hal_nordic-3.5.0/nrfx/drivers/include/
Dnrfx_spi.h202 nrfx_spi_xfer_desc_t xfer_desc; ///< Transfer details. member
Dnrfx_twim.h193 nrfx_twim_xfer_desc_t xfer_desc; ///< Transfer details. member
Dnrfx_twi.h205 nrfx_twi_xfer_desc_t xfer_desc; ///< Transfer details. member
Dnrfx_spim.h235 nrfx_spim_xfer_desc_t xfer_desc; ///< Transfer details. member