AnsweredAssumed Answered

K64 SPI - what are the function to read and write single byte or short?

Question asked by Eli Arad on Oct 10, 2016
Latest reply on Oct 10, 2016 by Alice_Yang

Hi

 

In the SPI demo for k64 there are examples that show how to transfer block of data from master to slave.

 

but suppose i have an external hardware that connect to k64 as a SPI slave device.

this device can be any kind of device that's its interface has SPI where we need to write and read single register

they can be byte or short.

 

So what are the single atomic functions to read and write for the master

 

are they?

 

DSP_ReadData     for reading

and 

DSPI_MasterWriteCommandDataBlocking(EXAMPLE_DSPI_MASTER_BASEADDR, data);

for writing?

 

Thanks!

Outcomes