Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CC3220: Simple SPI operation

$
0
0

Part Number:CC3220

Hi community !

That one should be a simple one...

I am a bit puzzled to see that the SPI_Transaction struct only have one argument "count". How then can we specify how many bytes to send and how many bytes to receive?

Let's take an easy example. Let's say I want to read data from a device. I need to send 1 byte to tell it what kind of data I want to read and then it will transmit, let say, 10 bytes. How would a transfer structure then look?

Thanks in advance !


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>