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>
|
||||
<coordinates>
|
||||
<x>645</x>
|
||||
<y>255</y>
|
||||
<w>675</w>
|
||||
<h>525</h>
|
||||
<y>75</y>
|
||||
<w>750</w>
|
||||
<h>765</h>
|
||||
</coordinates>
|
||||
<panel_attributes>_*How to use CAN interface*_
|
||||
|
||||
@ -23,19 +23,30 @@ CAN_setSender(idSender);
|
||||
CAN_startBehaviour();
|
||||
|
||||
*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: *
|
||||
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/>
|
||||
</element>
|
||||
<element>
|
||||
<id>Relation</id>
|
||||
<coordinates>
|
||||
<x>360</x>
|
||||
<y>330</y>
|
||||
<x>375</x>
|
||||
<y>255</y>
|
||||
<w>90</w>
|
||||
<h>135</h>
|
||||
</coordinates>
|
||||
@ -47,8 +58,8 @@ evInit
|
||||
<element>
|
||||
<id>UMLSpecialState</id>
|
||||
<coordinates>
|
||||
<x>360</x>
|
||||
<y>315</y>
|
||||
<x>375</x>
|
||||
<y>240</y>
|
||||
<w>30</w>
|
||||
<h>30</h>
|
||||
</coordinates>
|
||||
@ -58,37 +69,37 @@ evInit
|
||||
<element>
|
||||
<id>UMLState</id>
|
||||
<coordinates>
|
||||
<x>240</x>
|
||||
<y>435</y>
|
||||
<x>255</x>
|
||||
<y>360</y>
|
||||
<w>270</w>
|
||||
<h>90</h>
|
||||
</coordinates>
|
||||
<panel_attributes>STCA_PROCESS</panel_attributes>
|
||||
<panel_attributes>PROCESS</panel_attributes>
|
||||
<additional_attributes/>
|
||||
</element>
|
||||
<element>
|
||||
<id>Relation</id>
|
||||
<coordinates>
|
||||
<x>450</x>
|
||||
<y>465</y>
|
||||
<x>465</x>
|
||||
<y>390</y>
|
||||
<w>180</w>
|
||||
<h>180</h>
|
||||
</coordinates>
|
||||
<panel_attributes>lt=->
|
||||
m1=evCAsend
|
||||
m1=evSend
|
||||
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>
|
||||
</element>
|
||||
<element>
|
||||
<id>Relation</id>
|
||||
<coordinates>
|
||||
<x>135</x>
|
||||
<y>465</y>
|
||||
<x>150</x>
|
||||
<y>390</y>
|
||||
<w>300</w>
|
||||
<h>180</h>
|
||||
</coordinates>
|
||||
<panel_attributes>lt=->
|
||||
m1= evCAnewMsg
|
||||
m1= evNewMsg
|
||||
m1= \n/receiveCan()
|
||||
</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>
|
||||
|
Reference in New Issue
Block a user