Hi,
I wanted to know how the SPI rx_buffer is filled? Is it automatically filled when something is pushed to him by the SPI-slave and then goes to the spi_event_handler? Or is just filled when I do a nrf_drv_spi_transfer and don't set the rx_buffer to NULL?
My project consists on: I need to transfer the data received via BLE through the SPI to SPI-slave, and when I receive something through SPI from the SPI-slave I send it via BLE. Triggering the SPI tx is done by calling the nrf_drv_spi_transfer with the rx_buffer set to NULL. But I have no idea how to get a flag or something when the rx_buffer has something.
EDIT: From what I read about this rx_buffer can't be triggered. So I think the best way is to use a pin as a flag, to signal that the SPI-slave wants to send something, is this correct?
Thanks for the help,
Jorge
using this versions SDK11, S130, nRF51