diff --git a/src/ACAN2517FD.cpp b/src/ACAN2517FD.cpp index 0497eef..2d3449b 100644 --- a/src/ACAN2517FD.cpp +++ b/src/ACAN2517FD.cpp @@ -1167,3 +1167,8 @@ uint32_t ACAN2517FD::errorCounters (void) { //---------------------------------------------------------------------------------------------------------------------- +uint32_t ACAN2517FD::diagInfos(void) { + return readRegister32(BDIAG1_REGISTER); +} + +//---------------------------------------------------------------------------------------------------------------------- diff --git a/src/ACAN2517FD.h b/src/ACAN2517FD.h index 5f6dba5..d20fbb8 100644 --- a/src/ACAN2517FD.h +++ b/src/ACAN2517FD.h @@ -86,6 +86,12 @@ class ACAN2517FD { //······················································································································ public: uint32_t errorCounters (void) ; + +//······················································································································ +// Get diagnostic information +//······················································································································ + + public: uint32_t diagInfos (void) ; //······················································································································ // Current MCP2517FD Operation Mode