@@ -534,12 +534,15 @@ int MXC_CAN_MessageSend(uint32_t can_idx, mxc_can_req_t *req);
534534/**
535535 * @brief Send message (non-blocking).
536536 *
537+ *
537538 * @param can_idx Index of the CAN peripheral to send the message from
538539 * @param req Contains information about the format and data of message to send
539540 *
540541 * @return Success/Fail, see \ref MXC_Error_Codes for a list of return codes.
541542 *
542543 * @warning MAX32690 does not support CAN FD, setting req->msg_info->fdf will return an error.
544+ * @warning The structure pointed to by 'req' must remain unchanged and in scope until the
545+ * TX complete event has been signaled.
543546 */
544547int MXC_CAN_MessageSendAsync (uint32_t can_idx , mxc_can_req_t * req );
545548
@@ -552,6 +555,8 @@ int MXC_CAN_MessageSendAsync(uint32_t can_idx, mxc_can_req_t *req);
552555 * @return Success/Fail, see \ref MXC_Error_Codes for a list of return codes.
553556 *
554557 * @warning MAX32690 does not support CAN FD, setting req->msg_info->fdf will return an error.
558+ * @warning The structure pointed to by 'req' must remain unchanged and in scope until the
559+ * TX complete event has been signaled.
555560 */
556561int MXC_CAN_MessageSendDMA (uint32_t can_idx , mxc_can_req_t * req );
557562
@@ -576,6 +581,8 @@ int MXC_CAN_MessageRead(uint32_t can_idx, mxc_can_req_t *req);
576581 * @return Success/Fail, see \ref MXC_Error_Codes for a list of return codes.
577582 *
578583 * @warning MAX32690 does not support receiving CAN FD messages.
584+ * @warning The structure pointed to by 'req' must remain unchanged and in scope until the
585+ * RX complete event has been signaled.
579586 */
580587int MXC_CAN_MessageReadAsync (uint32_t can_idx , mxc_can_req_t * req );
581588
@@ -588,6 +595,8 @@ int MXC_CAN_MessageReadAsync(uint32_t can_idx, mxc_can_req_t *req);
588595 * @return Success/Fail, see \ref MXC_Error_Codes for a list of return codes.
589596 *
590597 * @warning MAX32690 does not support receiving CAN FD messages.
598+ * @warning The structure pointed to by 'req' must remain unchanged and in scope until the
599+ * RX complete event has been signaled.
591600 */
592601int MXC_CAN_MessageReadDMA (uint32_t can_idx , mxc_can_req_t * req , void (* dma_cb )(int , int ));
593602
0 commit comments