I am using a Raspberry Pi to communicate with a SPI-enabled device over the 40-pin cable. To the best of my understanding, the Python scripts rely on the SpiDev device. The script uses the xfer3()
API for writing/reading data.
For specific device purposes, I need to set the start of data delay between the assertion of CS and start of SCLK. I found the documentation for xfer3()
and it looks like this:
rcvd = xfer3([values], speed, delay, bit)
Apparently, there is a delay
parameter. However, it seems like the delay is at the end of transmission.
Is there a way to configure the delay at the beginning of the packet transmission?