OceanfromXiaomi commented on code in PR #13127:
URL: https://github.com/apache/nuttx/pull/13127#discussion_r1730880722


##########
include/nuttx/can/can.h:
##########
@@ -246,6 +257,46 @@
  *                   is returned with the errno variable set to indicate the
  *                   nature of the error.
  *   Dependencies:   None
+ *
+ * CANIOC_SET_STATE

Review Comment:
   Yes, I pass` CAN_STATE_STOP` via the ioctl then I stop the controller, the 
frame currently being transferred will store in hardware mailbox and hardware 
will try to send this frame automatically. I will add 
`enter_critical_section()` in ioctl function to avoid conflict between ioctl 
and  currently queued frames.
   here have a separate call to start or stop the controller. And then an ioctl 
to obtain current controller's state (no  including error active, passive, 
etc.).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to