python-periphery icon indicating copy to clipboard operation
python-periphery copied to clipboard

Control SPI chip select

Open webmeister opened this issue 4 years ago • 1 comments

I need to keep the SPI chip select asserted while transferring multiple messages (and doing some processing in between). The necessary low-level interface already exists (_CSpiIocTransfer.cs_change). Can this be made accessible from the high-level Python interface (i.e. SPI.transfer)?

webmeister avatar Jul 05 '21 13:07 webmeister

Duplicated issue: https://github.com/vsergeev/python-periphery/issues/37, https://github.com/vsergeev/c-periphery/issues/19

It would be useful for me also. I made a modified def transfer_burst(self, data): method to do it. I could send it in a pull-request.

But pay attention that not all SPI controller driver can support it, i had to implement it in spi kernel driver for my SPI controller, too.

Livius90 avatar Sep 25 '21 08:09 Livius90