I have attached a picture of how I think of the connections.
The motor has an idle-mode that it enters if no buttons are pressed for a few seconds. In idle mode the clock-signal is slowed down by a factor of 1000. As far as I understood, this can be realized by setting values in the SPI clock divider register on some microcontrollers (e.g. RP2040).
So in summary, I need esp-idf to have the following features:
- Bidirectional SPI mode
- Master- and slave-modes for SPI
- SPI clock division (or other mechanism)