doceme / py-spidev

MIT License
459 stars 205 forks source link

SPI Block maxsize #124

Open hugolm84 opened 2 years ago

hugolm84 commented 2 years ago

The SPI driver should, if possible, use as large buffer as possible. Currently, only xfer3 is adhering to the requested max blk size specified in /sys/module/spidev/parameters/bufsiz but is sending it in chunks. For all other xfer functions, the block size is limited to 4096.

I believe that xfer3 was introduced to fix this, however, it is still limited to 4096 chunks.

This PR aims to clarify xfer3 behavior and allow for arbitrary xfer buffer size.