WIP can sender
This commit is contained in:
		
							
								
								
									
										142
									
								
								UML/can.uxf
									
									
									
									
									
								
							
							
						
						
									
										142
									
								
								UML/can.uxf
									
									
									
									
									
								
							| @@ -4,8 +4,8 @@ | |||||||
|   <element> |   <element> | ||||||
|     <id>UMLSpecialState</id> |     <id>UMLSpecialState</id> | ||||||
|     <coordinates> |     <coordinates> | ||||||
|       <x>465</x> |       <x>450</x> | ||||||
|       <y>165</y> |       <y>150</y> | ||||||
|       <w>30</w> |       <w>30</w> | ||||||
|       <h>30</h> |       <h>30</h> | ||||||
|     </coordinates> |     </coordinates> | ||||||
| @@ -15,8 +15,8 @@ | |||||||
|   <element> |   <element> | ||||||
|     <id>UMLState</id> |     <id>UMLState</id> | ||||||
|     <coordinates> |     <coordinates> | ||||||
|       <x>405</x> |       <x>390</x> | ||||||
|       <y>255</y> |       <y>240</y> | ||||||
|       <w>150</w> |       <w>150</w> | ||||||
|       <h>60</h> |       <h>60</h> | ||||||
|     </coordinates> |     </coordinates> | ||||||
| @@ -26,33 +26,33 @@ | |||||||
|   <element> |   <element> | ||||||
|     <id>Relation</id> |     <id>Relation</id> | ||||||
|     <coordinates> |     <coordinates> | ||||||
|       <x>465</x> |       <x>450</x> | ||||||
|       <y>180</y> |       <y>165</y> | ||||||
|       <w>90</w> |       <w>120</w> | ||||||
|       <h>105</h> |       <h>105</h> | ||||||
|     </coordinates> |     </coordinates> | ||||||
|     <panel_attributes>lt=-> |     <panel_attributes>lt=-> | ||||||
| evInit | evCAinit | ||||||
| </panel_attributes> | </panel_attributes> | ||||||
|     <additional_attributes>10.0;10.0;10.0;50.0</additional_attributes> |     <additional_attributes>10.0;10.0;10.0;50.0</additional_attributes> | ||||||
|   </element> |   </element> | ||||||
|   <element> |   <element> | ||||||
|     <id>Relation</id> |     <id>Relation</id> | ||||||
|     <coordinates> |     <coordinates> | ||||||
|       <x>465</x> |       <x>450</x> | ||||||
|       <y>300</y> |       <y>285</y> | ||||||
|       <w>180</w> |       <w>165</w> | ||||||
|       <h>105</h> |       <h>105</h> | ||||||
|     </coordinates> |     </coordinates> | ||||||
|     <panel_attributes>lt=-> |     <panel_attributes>lt=-> | ||||||
| evCaNewMsg</panel_attributes> | evCAnewMsg</panel_attributes> | ||||||
|     <additional_attributes>10.0;10.0;10.0;50.0</additional_attributes> |     <additional_attributes>10.0;10.0;10.0;50.0</additional_attributes> | ||||||
|   </element> |   </element> | ||||||
|   <element> |   <element> | ||||||
|     <id>UMLState</id> |     <id>UMLState</id> | ||||||
|     <coordinates> |     <coordinates> | ||||||
|       <x>330</x> |       <x>315</x> | ||||||
|       <y>375</y> |       <y>360</y> | ||||||
|       <w>285</w> |       <w>285</w> | ||||||
|       <h>105</h> |       <h>105</h> | ||||||
|     </coordinates> |     </coordinates> | ||||||
| @@ -65,8 +65,8 @@ evCaNewMsg</panel_attributes> | |||||||
|   <element> |   <element> | ||||||
|     <id>Relation</id> |     <id>Relation</id> | ||||||
|     <coordinates> |     <coordinates> | ||||||
|       <x>495</x> |       <x>480</x> | ||||||
|       <y>270</y> |       <y>255</y> | ||||||
|       <w>225</w> |       <w>225</w> | ||||||
|       <h>360</h> |       <h>360</h> | ||||||
|     </coordinates> |     </coordinates> | ||||||
| @@ -78,8 +78,8 @@ m1=[queue empty] | |||||||
|   <element> |   <element> | ||||||
|     <id>UMLSpecialState</id> |     <id>UMLSpecialState</id> | ||||||
|     <coordinates> |     <coordinates> | ||||||
|       <x>450</x> |       <x>435</x> | ||||||
|       <y>555</y> |       <y>540</y> | ||||||
|       <w>60</w> |       <w>60</w> | ||||||
|       <h>60</h> |       <h>60</h> | ||||||
|     </coordinates> |     </coordinates> | ||||||
| @@ -89,20 +89,20 @@ m1=[queue empty] | |||||||
|   <element> |   <element> | ||||||
|     <id>Relation</id> |     <id>Relation</id> | ||||||
|     <coordinates> |     <coordinates> | ||||||
|       <x>465</x> |       <x>450</x> | ||||||
|       <y>465</y> |       <y>450</y> | ||||||
|       <w>45</w> |       <w>135</w> | ||||||
|       <h>120</h> |       <h>120</h> | ||||||
|     </coordinates> |     </coordinates> | ||||||
|     <panel_attributes>lt=-> |     <panel_attributes>lt=-> | ||||||
| </panel_attributes> | evCAdone</panel_attributes> | ||||||
|     <additional_attributes>10.0;10.0;10.0;60.0</additional_attributes> |     <additional_attributes>10.0;10.0;10.0;60.0</additional_attributes> | ||||||
|   </element> |   </element> | ||||||
|   <element> |   <element> | ||||||
|     <id>Relation</id> |     <id>Relation</id> | ||||||
|     <coordinates> |     <coordinates> | ||||||
|       <x>225</x> |       <x>210</x> | ||||||
|       <y>390</y> |       <y>375</y> | ||||||
|       <w>255</w> |       <w>255</w> | ||||||
|       <h>240</h> |       <h>240</h> | ||||||
|     </coordinates> |     </coordinates> | ||||||
| @@ -114,8 +114,8 @@ m1=[else] | |||||||
|   <element> |   <element> | ||||||
|     <id>UMLNote</id> |     <id>UMLNote</id> | ||||||
|     <coordinates> |     <coordinates> | ||||||
|       <x>750</x> |       <x>90</x> | ||||||
|       <y>300</y> |       <y>630</y> | ||||||
|       <w>615</w> |       <w>615</w> | ||||||
|       <h>270</h> |       <h>270</h> | ||||||
|     </coordinates> |     </coordinates> | ||||||
| @@ -131,4 +131,94 @@ void processCan(uint32_t canId, uint32_t canData) { | |||||||
| }</panel_attributes> | }</panel_attributes> | ||||||
|     <additional_attributes/> |     <additional_attributes/> | ||||||
|   </element> |   </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> | </diagram> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user