pierremolinaro / acan2515

MCP2515 CAN Controller Driver for Arduino
MIT License
77 stars 30 forks source link

request: instrumentation counters #8

Open obdevel opened 5 years ago

obdevel commented 5 years ago

Firstly, thank you for such well-written and documented libraries for the 2515 and 2517.

It would be helpful if you could maintain a number of counters regarding buffer usage. This would enable users of memory-constrained MCUs to tune the buffer count and memory use. e.g.

Thank you.

pierremolinaro commented 5 years ago

Hello,

Thank you very much for your message.

Yes, it is a very good idea. I have planned to write this feature, available from a routine that returns a bit field of alert flags, i.e. zero if no warning. Unfortunatly, I have no time at this moment do write this feature, I expect to do it before the end of June.

Best regards,

Pierre Molinaro

Le 2 mai 2019 à 15:06, obdevel notifications@github.com a écrit :

Firstly, thank you for such well-written and documented libraries for the 2515 and 2517.

It would be helpful if you could maintain a number of counters regarding buffer usage. This would enable users of memory-constrained MCUs to tune the buffer count and memory use. e.g.

buffer high-water-mark = the highest buffer use, to identify unused buffers dropped messages count = lost messages due to insufficient buffer space Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan2515/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AEWKZVANUEDLFYIV32SL5KDPTLRLTANCNFSM4HJ6FJQQ.