Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
PatrickPavle
Level 1
Level 1
10 questions asked 5 replies posted 5 questions asked

Dear Community,

I use the program example SPI_CPU_1_KIT_TC397_TFT. What functions are used to generate or send the SLCK, Chip Selec and Mosi?

best regards, 

Patrick

0 Likes
1 Solution
David_R
Moderator
Moderator
Moderator
100 replies posted 25 solutions authored 10 likes given

Hi @PatrickPavle 

The function that starts the communication with the slave is

 

void transferData(void);

 

So  for the master this function starts the data exchange

 

/* Start SPI Master communication */
    IfxQspi_SpiMaster_exchange(&g_qspiDma.spiMasterChannel, &g_qspiDma.qspiBuffer.spiMasterTxBuffer[0], &g_qspiDma.qspiBuffer.spiMasterRxBuffer[0], SPI_BUFFER_SIZE);

 

Regards! :1

View solution in original post

0 Likes
1 Reply
David_R
Moderator
Moderator
Moderator
100 replies posted 25 solutions authored 10 likes given

Hi @PatrickPavle 

The function that starts the communication with the slave is

 

void transferData(void);

 

So  for the master this function starts the data exchange

 

/* Start SPI Master communication */
    IfxQspi_SpiMaster_exchange(&g_qspiDma.spiMasterChannel, &g_qspiDma.qspiBuffer.spiMasterTxBuffer[0], &g_qspiDma.qspiBuffer.spiMasterRxBuffer[0], SPI_BUFFER_SIZE);

 

Regards! :1

0 Likes