Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Hi,
I am trying the following sets of methods and the predefined functions which was generated by the HALCOGEN for tms570lc4357.
uint32 GetTxStatus,GetRxStatus = -1;
spiDAT1_t spidataconfig;
spidataconfig.CSNR = 0;
spidataconfig.CS_HOLD = false;
spidataconfig.DFSEL = SPI_FMT_0;
spidataconfig.WDEL = false;
spiInit();
//#if LOOPBACKMODE == 1
/* Enable SCI loopback */
spiEnableLoopback(spiREG1, Digital_Lbk);
GetTxStatus = spiTransmitData(spiREG1,&spidataconfig,size,&TX_DATA[0]);
GetRxStatus = spiReceiveData(spiREG1,&spidataconfig,size,&RX_DATA[0]);
where TX_DATA and RX_DATA is already defined globally.
can you please tell me what i am missing here to get the loopback working.
and what is the difference between spiTransmitData() and spiSendData(), when to use it?
Regards,
Shivam Kakad
