WIP can sender
This commit is contained in:
parent
6734467031
commit
d5c30dfea4
142
UML/can.uxf
142
UML/can.uxf
@ -4,8 +4,8 @@
|
||||
<element>
|
||||
<id>UMLSpecialState</id>
|
||||
<coordinates>
|
||||
<x>465</x>
|
||||
<y>165</y>
|
||||
<x>450</x>
|
||||
<y>150</y>
|
||||
<w>30</w>
|
||||
<h>30</h>
|
||||
</coordinates>
|
||||
@ -15,8 +15,8 @@
|
||||
<element>
|
||||
<id>UMLState</id>
|
||||
<coordinates>
|
||||
<x>405</x>
|
||||
<y>255</y>
|
||||
<x>390</x>
|
||||
<y>240</y>
|
||||
<w>150</w>
|
||||
<h>60</h>
|
||||
</coordinates>
|
||||
@ -26,33 +26,33 @@
|
||||
<element>
|
||||
<id>Relation</id>
|
||||
<coordinates>
|
||||
<x>465</x>
|
||||
<y>180</y>
|
||||
<w>90</w>
|
||||
<x>450</x>
|
||||
<y>165</y>
|
||||
<w>120</w>
|
||||
<h>105</h>
|
||||
</coordinates>
|
||||
<panel_attributes>lt=->
|
||||
evInit
|
||||
evCAinit
|
||||
</panel_attributes>
|
||||
<additional_attributes>10.0;10.0;10.0;50.0</additional_attributes>
|
||||
</element>
|
||||
<element>
|
||||
<id>Relation</id>
|
||||
<coordinates>
|
||||
<x>465</x>
|
||||
<y>300</y>
|
||||
<w>180</w>
|
||||
<x>450</x>
|
||||
<y>285</y>
|
||||
<w>165</w>
|
||||
<h>105</h>
|
||||
</coordinates>
|
||||
<panel_attributes>lt=->
|
||||
evCaNewMsg</panel_attributes>
|
||||
evCAnewMsg</panel_attributes>
|
||||
<additional_attributes>10.0;10.0;10.0;50.0</additional_attributes>
|
||||
</element>
|
||||
<element>
|
||||
<id>UMLState</id>
|
||||
<coordinates>
|
||||
<x>330</x>
|
||||
<y>375</y>
|
||||
<x>315</x>
|
||||
<y>360</y>
|
||||
<w>285</w>
|
||||
<h>105</h>
|
||||
</coordinates>
|
||||
@ -65,8 +65,8 @@ evCaNewMsg</panel_attributes>
|
||||
<element>
|
||||
<id>Relation</id>
|
||||
<coordinates>
|
||||
<x>495</x>
|
||||
<y>270</y>
|
||||
<x>480</x>
|
||||
<y>255</y>
|
||||
<w>225</w>
|
||||
<h>360</h>
|
||||
</coordinates>
|
||||
@ -78,8 +78,8 @@ m1=[queue empty]
|
||||
<element>
|
||||
<id>UMLSpecialState</id>
|
||||
<coordinates>
|
||||
<x>450</x>
|
||||
<y>555</y>
|
||||
<x>435</x>
|
||||
<y>540</y>
|
||||
<w>60</w>
|
||||
<h>60</h>
|
||||
</coordinates>
|
||||
@ -89,20 +89,20 @@ m1=[queue empty]
|
||||
<element>
|
||||
<id>Relation</id>
|
||||
<coordinates>
|
||||
<x>465</x>
|
||||
<y>465</y>
|
||||
<w>45</w>
|
||||
<x>450</x>
|
||||
<y>450</y>
|
||||
<w>135</w>
|
||||
<h>120</h>
|
||||
</coordinates>
|
||||
<panel_attributes>lt=->
|
||||
</panel_attributes>
|
||||
evCAdone</panel_attributes>
|
||||
<additional_attributes>10.0;10.0;10.0;60.0</additional_attributes>
|
||||
</element>
|
||||
<element>
|
||||
<id>Relation</id>
|
||||
<coordinates>
|
||||
<x>225</x>
|
||||
<y>390</y>
|
||||
<x>210</x>
|
||||
<y>375</y>
|
||||
<w>255</w>
|
||||
<h>240</h>
|
||||
</coordinates>
|
||||
@ -114,8 +114,8 @@ m1=[else]
|
||||
<element>
|
||||
<id>UMLNote</id>
|
||||
<coordinates>
|
||||
<x>750</x>
|
||||
<y>300</y>
|
||||
<x>90</x>
|
||||
<y>630</y>
|
||||
<w>615</w>
|
||||
<h>270</h>
|
||||
</coordinates>
|
||||
@ -131,4 +131,94 @@ void processCan(uint32_t canId, uint32_t canData) {
|
||||
}</panel_attributes>
|
||||
<additional_attributes/>
|
||||
</element>
|
||||
<element>
|
||||
<id>Relation</id>
|
||||
<coordinates>
|
||||
<x>900</x>
|
||||
<y>225</y>
|
||||
<w>90</w>
|
||||
<h>105</h>
|
||||
</coordinates>
|
||||
<panel_attributes>lt=->
|
||||
evInit
|
||||
</panel_attributes>
|
||||
<additional_attributes>10.0;10.0;10.0;50.0</additional_attributes>
|
||||
</element>
|
||||
<element>
|
||||
<id>UMLSpecialState</id>
|
||||
<coordinates>
|
||||
<x>900</x>
|
||||
<y>210</y>
|
||||
<w>30</w>
|
||||
<h>30</h>
|
||||
</coordinates>
|
||||
<panel_attributes>type=initial</panel_attributes>
|
||||
<additional_attributes/>
|
||||
</element>
|
||||
<element>
|
||||
<id>UMLState</id>
|
||||
<coordinates>
|
||||
<x>840</x>
|
||||
<y>300</y>
|
||||
<w>150</w>
|
||||
<h>60</h>
|
||||
</coordinates>
|
||||
<panel_attributes>STCS_WAIT</panel_attributes>
|
||||
<additional_attributes/>
|
||||
</element>
|
||||
<element>
|
||||
<id>UMLState</id>
|
||||
<coordinates>
|
||||
<x>810</x>
|
||||
<y>420</y>
|
||||
<w>210</w>
|
||||
<h>90</h>
|
||||
</coordinates>
|
||||
<panel_attributes>STCS_SEND
|
||||
--
|
||||
-.
|
||||
/entry sendCan</panel_attributes>
|
||||
<additional_attributes/>
|
||||
</element>
|
||||
<element>
|
||||
<id>Relation</id>
|
||||
<coordinates>
|
||||
<x>900</x>
|
||||
<y>345</y>
|
||||
<w>135</w>
|
||||
<h>105</h>
|
||||
</coordinates>
|
||||
<panel_attributes>lt=->
|
||||
evCSsend
|
||||
</panel_attributes>
|
||||
<additional_attributes>10.0;10.0;10.0;50.0</additional_attributes>
|
||||
</element>
|
||||
<element>
|
||||
<id>Relation</id>
|
||||
<coordinates>
|
||||
<x>900</x>
|
||||
<y>315</y>
|
||||
<w>270</w>
|
||||
<h>270</h>
|
||||
</coordinates>
|
||||
<panel_attributes>lt=->
|
||||
evCSdone
|
||||
</panel_attributes>
|
||||
<additional_attributes>10.0;130.0;10.0;160.0;100.0;160.0;100.0;10.0;60.0;10.0</additional_attributes>
|
||||
</element>
|
||||
<element>
|
||||
<id>UMLNote</id>
|
||||
<coordinates>
|
||||
<x>765</x>
|
||||
<y>630</y>
|
||||
<w>645</w>
|
||||
<h>150</h>
|
||||
</coordinates>
|
||||
<panel_attributes>_*How to use*_
|
||||
|
||||
CANSENDER_send(uint32_t id, uint32_t data);
|
||||
or
|
||||
CANSENDER_send(CANSENDER *me, uint8_t id, uint32_t data);</panel_attributes>
|
||||
<additional_attributes/>
|
||||
</element>
|
||||
</diagram>
|
||||
|
Reference in New Issue
Block a user