ESP32 Arduino library SPI read only function

ESP32_DEV_BOB
Posts: 1
Joined: Tue May 10, 2022 8:37 pm

ESP32 Arduino library SPI read only function

Postby ESP32_DEV_BOB » Tue May 10, 2022 8:47 pm

I am currently working on an interface between ESP32-S2-Wrover (Master) and Lepton 3.5 Thermal Camera (Slave).
I need to read the data from the camera (MISO) VERY fast, while I do not need to send anything to the camera, so it would be the best if I can find a spi function that only read from the camera without writing.

I checked out the Arduino ESP32 Library here: https://github.com/espressif/arduino-esp32
The core of SPI is here: https://github.com/espressif/arduino-es ... -hal-spi.c

I noticed that there is no spi read only function. Also, the ESP32S2 technical reference manual says that I need to set the FSPI to half duplex mode and specify commands and other stuff. Is there a way that I can write a SPI read only function by myself without getting too deep into register maps?

Also, any good ideas that makes ESP32 SPI transaction faster are appreciated :)

Who is online

Users browsing this forum: Google [Bot] and 69 guests