Open mickeyl opened 2 months ago
Hi,
You want this kind of optimization to be done directly in the MCP251XFD_ReceiveMessageFromFIFO() and MCP251XFD_TransmitMessageToFIFO()? If so, we will loose the READ and WRITE CRC/SAFE capability.
If this is what you want, I can put a #ifdef directive and set this kind of optimization but I don't think I will do a direct Arduino call. What do you think?
Your driver works perfectly for me, but I wonder whether there's a chance to get more speed when sending or receiving packets. I stumbled over an optimization in https://github.com/pierremolinaro/acan2517/blob/master/src/ACAN2517.cpp where they are doing it like that:
Apparantly they manage to prepare the buffers so that they have only one SPI transfer. The origin of this is in this comment here:
https://github.com/pierremolinaro/acan2517/issues/2#issuecomment-461525728
Do you think that's a worthwhile goal to pursue?