From d5c30dfea4d46e00abd0278cb856a49c574919d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Heredero?= Date: Tue, 22 Aug 2023 17:51:19 +0200 Subject: [PATCH] WIP can sender --- UML/can.uxf | 142 ++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 116 insertions(+), 26 deletions(-) diff --git a/UML/can.uxf b/UML/can.uxf index 3a06625..835b6d9 100644 --- a/UML/can.uxf +++ b/UML/can.uxf @@ -4,8 +4,8 @@ UMLSpecialState - 465 - 165 + 450 + 150 30 30 @@ -15,8 +15,8 @@ UMLState - 405 - 255 + 390 + 240 150 60 @@ -26,33 +26,33 @@ Relation - 465 - 180 - 90 + 450 + 165 + 120 105 lt=-> -evInit +evCAinit 10.0;10.0;10.0;50.0 Relation - 465 - 300 - 180 + 450 + 285 + 165 105 lt=-> -evCaNewMsg +evCAnewMsg 10.0;10.0;10.0;50.0 UMLState - 330 - 375 + 315 + 360 285 105 @@ -65,8 +65,8 @@ evCaNewMsg Relation - 495 - 270 + 480 + 255 225 360 @@ -78,8 +78,8 @@ m1=[queue empty] UMLSpecialState - 450 - 555 + 435 + 540 60 60 @@ -89,20 +89,20 @@ m1=[queue empty] Relation - 465 - 465 - 45 + 450 + 450 + 135 120 lt=-> - +evCAdone 10.0;10.0;10.0;60.0 Relation - 225 - 390 + 210 + 375 255 240 @@ -114,8 +114,8 @@ m1=[else] UMLNote - 750 - 300 + 90 + 630 615 270 @@ -131,4 +131,94 @@ void processCan(uint32_t canId, uint32_t canData) { } + + Relation + + 900 + 225 + 90 + 105 + + lt=-> +evInit + + 10.0;10.0;10.0;50.0 + + + UMLSpecialState + + 900 + 210 + 30 + 30 + + type=initial + + + + UMLState + + 840 + 300 + 150 + 60 + + STCS_WAIT + + + + UMLState + + 810 + 420 + 210 + 90 + + STCS_SEND +-- +-. +/entry sendCan + + + + Relation + + 900 + 345 + 135 + 105 + + lt=-> +evCSsend + + 10.0;10.0;10.0;50.0 + + + Relation + + 900 + 315 + 270 + 270 + + lt=-> +evCSdone + + 10.0;130.0;10.0;160.0;100.0;160.0;100.0;10.0;60.0;10.0 + + + UMLNote + + 765 + 630 + 645 + 150 + + _*How to use*_ + +CANSENDER_send(uint32_t id, uint32_t data); +or +CANSENDER_send(CANSENDER *me, uint8_t id, uint32_t data); + +