SPI is full-duplex, i.e. data can flow in both directions at the same time.
So if you have a writeRead() with 5 bytes to send, 4 to receive and 7
total, the transaction would look like:
Master: req[0] req[1] req[2] req[3] req[4] 0xFF   0xFF
Slave:  xx     xx     xx     res[0] res[1] res[2] res[3]


On Tue, Feb 18, 2014 at 8:18 AM, Aaron Lim <[email protected]> wrote:

> hello i have some question about the SPI WriteRead(), i have read through
> the wiki page of IOIO SPI but still had some question in mind.
> regarding the flow of the WriteRead(), it say the method would block until
> the response is receive, does that mean if i have a request[5] and
> response[4] , request [1] will be sent only after the request[0] is sent
> and response[0] is receive? if that's the case, in the wiki page example
> have the total transaction length of 7 and how did the 6th and 7th request
> sent and the 5th, 6th ,7th response saved?
>
> --
> You received this message because you are subscribed to the Google Groups
> "ioio-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/ioio-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to