thanks for the lib. It seems to have all i need. :-)
except for 1 thing : documentation or samples.
In the readme i see samples mentioned but i can not find them?
As a beginner i like simple and small samples. I want to use SPI but there are a lot of SPI functions/procedures. What to use, and in which order?
for example SPI_Write
I can understand the busnum and devnum.
But the basereg, i have no clue about that. IMO, when using SPI you simply send data. In the PI that is restricted to 8 bit data.
It depends on the Slave device how many bytes i need to send. So i can not figure out this base address which seems to be combined with the data and send as a word.
Why would that be needed?
Or is the base address something that is not sent out with the SPI data?
Do i get a byte or word sent?
And what about the slave select line, must i do this manual or is it automatic?
Lot of questions for a simple protocol.
As i noticed the burst write, i will likely use that. but here too, what to do to use it.
I imagine:
SPI_StartBurst
SPI_BurstWriteBuffer
SPI_EndBurst
mark