This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPIS distinguish data

 dear all:

 I use the spi slave mode. i have a question,pls help me.thanks.the questions as follow:
 I want to distinguish instruction type, and then reply to the corresponding data.

Because the spis is easydma mode.I received all data that the master send,then deal with these data.So i can't reply to corresponding data. For example, first,the master spi send first byte 0x0b,the slave spi miso output 0x0a send second byte 0x0c,the slave miso output 0x0d; second,the master spi send first byte 0x10,the slave spi miso output 0x11 send second byte 0x11,the slave miso output 0x12;

Can you help me how to deal with this suiation?

Thanks!
Related