SPI Slave Mode

gawied
Posts: 3
Joined: Thu Oct 12, 2017 3:15 pm

SPI Slave Mode

Postby gawied » Thu Nov 16, 2017 2:49 pm

I am referring to the SPI slave driver docs:
https://esp-idf.readthedocs.io/en/lates ... slave.html

I am a bit confused how this works. My intention is to create a slave, so a master can send different commands (e.g. command indicating that a data transfer is to follow, a query command where the slave returns data, etc.). The slave then either needs to respond with the data requested or save the transferred data. This must all happen in the same transaction. (Like most SPI slaves out there?)

As far as I can see, the ESP-IDF spi_slave driver is all transaction based and one needs to know upfront what the master is going to ask, etc.

Does this mean I won't be able to accomplish my requirement with the current ESP-IDF driver or am I missing something?

Thanks and any help/advice is greatly appreciated.

Who is online

Users browsing this forum: No registered users and 35 guests