autowp / arduino-mcp2515

Arduino MCP2515 CAN interface library
MIT License
795 stars 279 forks source link

Add functions to expose the RX/TX error counters #64

Closed designer2k2 closed 3 years ago

designer2k2 commented 3 years ago

This exposes the REC and TEC registers. They hold the error counters and can give insides before the checkError triggers.

See Figure 6-1 in the MCP2515 Datasheet how they work with : grafik

https://ww1.microchip.com/downloads/en/DeviceDoc/MCP2515-Stand-Alone-CAN-Controller-with-SPI-20001801J.pdf