Open EricPobot opened 8 years ago
This is my understanding what xfer should do. Set CS to active, transfer given bytes and deassert at the end.
The difference between xfer and xfer2 is the handling of CS at the end of the transmission: deassert it or leave it active.
I know I'm late to the party, but I've been digging through the code lately. I'm pretty sure there is no difference between xfer
and xfer2
unless the library is compiled with -DSPIDEV_SINGLE
. Otherwise these two methods are functionally identical.
xfer seems to behave exactly as xfer2, and does not de-assert CS between the bytes of the data to be transmitted. Checked with logic analyzer.
Context: Raspi2, Raspbian, Python 2.7.9