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?