Hi All,
I am a beginner,Can you please explain me what is the role of this line?
APP_ERROR_CHECK(nrf_drv_spi_transfer(&spi, m_tx_buf, m_length, m_rx_buf, m_length));
Hi All,
I am a beginner,Can you please explain me what is the role of this line?
APP_ERROR_CHECK(nrf_drv_spi_transfer(&spi, m_tx_buf, m_length, m_rx_buf, m_length));
No, calling nrf_drv_spi_transfer
function like this only starts the transfer. As everything on nRF5x (and any other uC) it is asynchronous so the result comes in spi_event_handler
callback function which was provisioned to SPI driver in nrf_drv_spi_init
call.
Ok, so this is ok to practice like this? No extra data is sent and i can rely on this?
Ok, so this is ok to practice like this? No extra data is sent and i can rely on this?