This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 85d0dfcdc5abbff3da0eebed1b15adec23eef32b
Author: Darryl Ring <[email protected]>
AuthorDate: Thu Nov 12 09:31:34 2026 -0700

    nuttx/can: Error counts may be a lower bound
    
    Depending on the specific CAN peripheral driver, these error counts may
    not be exact. Update the struct comments to indicate that they may be a
    lower bound.
    
    Signed-off-by: Darryl Ring <[email protected]>
---
 include/nuttx/can/can.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/nuttx/can/can.h b/include/nuttx/can/can.h
index 1dc6ff1f311..6f31aa41801 100644
--- a/include/nuttx/can/can.h
+++ b/include/nuttx/can/can.h
@@ -939,12 +939,12 @@ struct canioc_errors_s
   uint8_t               rxerr;           /* Receive error counter (REC) */
   uint32_t              errors;          /* Bus errors observed since the
                                           * device was opened, monotonic */
-  uint32_t              arb_errors;      /* Errors observed during the
-                                          * arbitration phase */
-  uint32_t              data_errors;     /* Errors observed during the
-                                          * data phase */
-  uint32_t              rx_overruns;     /* RX frames the controller
-                                          * overwrote unread */
+  uint32_t              arb_errors;      /* Error events in the arbitration
+                                          * phase, may be a lower bound */
+  uint32_t              data_errors;     /* Error events in the data phase,
+                                          * may be a lower bound */
+  uint32_t              rx_overruns;     /* RX overrun events, may be a
+                                          * lower bound */
 };
 
 /* CANIOC_GET_CONNMODES/CANIOC_SET_CONNMODES:

Reply via email to