update CAN uml for last fix
This commit is contained in:
parent
a3d6c9ae6c
commit
3f1672996d
BIN
UML/can.pdf
BIN
UML/can.pdf
Binary file not shown.
47
UML/can.uxf
47
UML/can.uxf
@ -5,9 +5,9 @@
|
|||||||
<id>UMLNote</id>
|
<id>UMLNote</id>
|
||||||
<coordinates>
|
<coordinates>
|
||||||
<x>645</x>
|
<x>645</x>
|
||||||
<y>255</y>
|
<y>75</y>
|
||||||
<w>675</w>
|
<w>750</w>
|
||||||
<h>525</h>
|
<h>765</h>
|
||||||
</coordinates>
|
</coordinates>
|
||||||
<panel_attributes>_*How to use CAN interface*_
|
<panel_attributes>_*How to use CAN interface*_
|
||||||
|
|
||||||
@ -23,19 +23,30 @@ CAN_setSender(idSender);
|
|||||||
CAN_startBehaviour();
|
CAN_startBehaviour();
|
||||||
|
|
||||||
*Somewhere for process input can message:*
|
*Somewhere for process input can message:*
|
||||||
void receiveCan(uint8_t idSender, uint8_t idMsg, uint32_t canData) {
|
void receiveCan(uint8_t idSender, uint8_t idMsg, bool rtr, uint32_t canData) {
|
||||||
.....
|
.....
|
||||||
}
|
}
|
||||||
|
|
||||||
*For send can message: *
|
*For send can message: *
|
||||||
CAN_sendCanMsg(uint8_t idRecipient, uint8_t idMsg, uint32_t data);</panel_attributes>
|
CAN_Send(uint8_t idRecipient, uint8_t idMsg, uint32_t data);
|
||||||
|
CAN_send_4_bytes(
|
||||||
|
uint8_t idRecipient,
|
||||||
|
uint8_t idMsg,
|
||||||
|
uint8_t byte0,
|
||||||
|
uint8_t byte1,
|
||||||
|
uint8_t byte2,
|
||||||
|
uint8_t byte3);
|
||||||
|
CAN_send_2_bytes(uint8_t idRecipient, uint8_t idMsg, uint16_t data);
|
||||||
|
CAN_send_1_byte(uint8_t idRecipient, uint8_t idMsg, uint8_t data);
|
||||||
|
CAN_send_0_byte(uint8_t idRecipient, uint8_t idMsg);
|
||||||
|
CAN_send_rtr(uint8_t idRecipient, uint8_t idMsg);</panel_attributes>
|
||||||
<additional_attributes/>
|
<additional_attributes/>
|
||||||
</element>
|
</element>
|
||||||
<element>
|
<element>
|
||||||
<id>Relation</id>
|
<id>Relation</id>
|
||||||
<coordinates>
|
<coordinates>
|
||||||
<x>360</x>
|
<x>375</x>
|
||||||
<y>330</y>
|
<y>255</y>
|
||||||
<w>90</w>
|
<w>90</w>
|
||||||
<h>135</h>
|
<h>135</h>
|
||||||
</coordinates>
|
</coordinates>
|
||||||
@ -47,8 +58,8 @@ evInit
|
|||||||
<element>
|
<element>
|
||||||
<id>UMLSpecialState</id>
|
<id>UMLSpecialState</id>
|
||||||
<coordinates>
|
<coordinates>
|
||||||
<x>360</x>
|
<x>375</x>
|
||||||
<y>315</y>
|
<y>240</y>
|
||||||
<w>30</w>
|
<w>30</w>
|
||||||
<h>30</h>
|
<h>30</h>
|
||||||
</coordinates>
|
</coordinates>
|
||||||
@ -58,37 +69,37 @@ evInit
|
|||||||
<element>
|
<element>
|
||||||
<id>UMLState</id>
|
<id>UMLState</id>
|
||||||
<coordinates>
|
<coordinates>
|
||||||
<x>240</x>
|
<x>255</x>
|
||||||
<y>435</y>
|
<y>360</y>
|
||||||
<w>270</w>
|
<w>270</w>
|
||||||
<h>90</h>
|
<h>90</h>
|
||||||
</coordinates>
|
</coordinates>
|
||||||
<panel_attributes>STCA_PROCESS</panel_attributes>
|
<panel_attributes>PROCESS</panel_attributes>
|
||||||
<additional_attributes/>
|
<additional_attributes/>
|
||||||
</element>
|
</element>
|
||||||
<element>
|
<element>
|
||||||
<id>Relation</id>
|
<id>Relation</id>
|
||||||
<coordinates>
|
<coordinates>
|
||||||
<x>450</x>
|
<x>465</x>
|
||||||
<y>465</y>
|
<y>390</y>
|
||||||
<w>180</w>
|
<w>180</w>
|
||||||
<h>180</h>
|
<h>180</h>
|
||||||
</coordinates>
|
</coordinates>
|
||||||
<panel_attributes>lt=->
|
<panel_attributes>lt=->
|
||||||
m1=evCAsend
|
m1=evSend
|
||||||
m1=\n/sendCan()</panel_attributes>
|
m1=\n/sendCan()</panel_attributes>
|
||||||
<additional_attributes>10.0;40.0;10.0;100.0;100.0;100.0;100.0;10.0;40.0;10.0</additional_attributes>
|
<additional_attributes>10.0;40.0;10.0;100.0;100.0;100.0;100.0;10.0;40.0;10.0</additional_attributes>
|
||||||
</element>
|
</element>
|
||||||
<element>
|
<element>
|
||||||
<id>Relation</id>
|
<id>Relation</id>
|
||||||
<coordinates>
|
<coordinates>
|
||||||
<x>135</x>
|
<x>150</x>
|
||||||
<y>465</y>
|
<y>390</y>
|
||||||
<w>300</w>
|
<w>300</w>
|
||||||
<h>180</h>
|
<h>180</h>
|
||||||
</coordinates>
|
</coordinates>
|
||||||
<panel_attributes>lt=->
|
<panel_attributes>lt=->
|
||||||
m1= evCAnewMsg
|
m1= evNewMsg
|
||||||
m1= \n/receiveCan()
|
m1= \n/receiveCan()
|
||||||
</panel_attributes>
|
</panel_attributes>
|
||||||
<additional_attributes>100.0;40.0;100.0;100.0;10.0;100.0;10.0;10.0;70.0;10.0</additional_attributes>
|
<additional_attributes>100.0;40.0;100.0;100.0;10.0;100.0;10.0;10.0;70.0;10.0</additional_attributes>
|
||||||
|
Reference in New Issue
Block a user