This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2650 SPI Callback Mode getting received values

Other Parts Discussed in Thread: ADS1291, CC2650

Hi,

i have the CC2650 receiving SPI data from the ADS1291.

I am using the Callback Mode which calls the Callback function after the data has been send/received.

So here is my function:

static void Spi_Int_Callback(SPI_Handle handle, SPI_Transaction *objTransaction)
{

if(objTransaction->status == SPI_TRANSFER_COMPLETED )
{

ADS1291_SPI_DRY();

}

}

I thought that the received data would be on the Rx buffer i declaired and pass on the SpiRead function:

    success= bspSpiRead(SPI_Rx_ADC_buf, 6);

But the Spi_RX_ADC_buf is always zero.

How do i get the received SPI values? 

I tryied this on the SPI Callback function but that didnt worked:

memcpy(buffer,objTransaction->rxBuf,objTransaction->count);

Any idea?