We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cdc0141 + d7ac8f6 commit d99fc7eCopy full SHA for d99fc7e
mcp2515.cpp
@@ -754,3 +754,13 @@ void MCP2515::clearERRIF()
754
//clearInterrupts();
755
modifyRegister(MCP_CANINTF, CANINTF_ERRIF, 0);
756
}
757
+
758
+uint8_t MCP2515::errorCountRX(void)
759
+{
760
+ return readRegister(MCP_REC);
761
+}
762
763
+uint8_t MCP2515::errorCountTX(void)
764
765
+ return readRegister(MCP_TEC);
766
mcp2515.h
@@ -488,6 +488,8 @@ class MCP2515
488
void clearRXnOVR(void);
489
void clearMERR();
490
void clearERRIF();
491
+ uint8_t errorCountRX(void);
492
+ uint8_t errorCountTX(void);
493
};
494
495
#endif
0 commit comments