It might be a bit out there, but for a project that I am working on, my word size default is 24bits (3x8-bit), of which the first 8-bits are data and the next 16-bits are data. I would like to transfer it out of the system as fast as possible with minimal calls to the sub-routines. For this I am trying to reduce the number of calls, I have managed to reduce it from 3 to 2, Can I possibly make it 1 call.
My first attempt was to use 3x SPI.transfer() Second was to use 1x
SPI.transfer() and 1x SPI.transfer16()
I would like to know what would be the ideal way to write a SPI.transfer24 function.