joan2937 / pigpio

pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO).
The Unlicense
1.42k stars 403 forks source link

Leave CS low #607

Open PhilippGlaubitz opened 1 week ago

PhilippGlaubitz commented 1 week ago

Hello, is it possible to let the chip select go low after spiXfer? I need this for a project in which I move bytes one after the other via the SPI. After 10 bytes, for example, I have to set the chip select to high again. The problem is that I cannot fill the FIFO continuously, sometimes there are a few microseconds in between, which is why the spi automatically sets the chipselect high again, this must not happen.

guymcswain commented 1 week ago

Hmm, I thought this api accepts a buffer up to 64K (IIRC) and keeps the FIFO full. Can you send me more information on what you are seeing with perhaps a short code snippet?