2023-08-22 13:53:38 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2023-08-23 11:55:46 +00:00
|
|
|
<diagram program="umlet" version="15.0.0">
|
2023-08-22 13:53:38 +00:00
|
|
|
<zoom_level>15</zoom_level>
|
|
|
|
<element>
|
|
|
|
<id>UMLNote</id>
|
|
|
|
<coordinates>
|
2023-08-23 11:55:46 +00:00
|
|
|
<x>645</x>
|
|
|
|
<y>255</y>
|
|
|
|
<w>675</w>
|
|
|
|
<h>525</h>
|
2023-08-22 13:53:38 +00:00
|
|
|
</coordinates>
|
2023-08-23 11:55:46 +00:00
|
|
|
<panel_attributes>_*How to use CAN interface*_
|
|
|
|
|
|
|
|
*In Factory_Init: *
|
|
|
|
CAN_init();
|
2023-08-22 13:53:38 +00:00
|
|
|
|
|
|
|
*In Factory_build: *
|
2023-08-23 11:55:46 +00:00
|
|
|
ECAN_SetRXBnInterruptHandler(CAN_newMsg);
|
|
|
|
CAN_onReceiveCan(&receiveCan);
|
|
|
|
CAN_setSender(idSender);
|
2023-08-22 13:53:38 +00:00
|
|
|
|
2023-08-23 11:55:46 +00:00
|
|
|
*In Factory_start:*
|
|
|
|
CAN_startBehaviour();
|
|
|
|
|
|
|
|
*Somewhere for process input can message:*
|
|
|
|
void receiveCan(uint8_t idSender, uint8_t idMsg, uint32_t canData) {
|
2023-08-22 13:53:38 +00:00
|
|
|
.....
|
2023-08-23 11:55:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
*For send can message: *
|
|
|
|
CAN_sendCanMsg(uint8_t idRecipient, uint8_t idMsg, uint32_t data);</panel_attributes>
|
2023-08-22 13:53:38 +00:00
|
|
|
<additional_attributes/>
|
|
|
|
</element>
|
2023-08-22 15:51:19 +00:00
|
|
|
<element>
|
|
|
|
<id>Relation</id>
|
|
|
|
<coordinates>
|
2023-08-23 11:55:46 +00:00
|
|
|
<x>360</x>
|
|
|
|
<y>330</y>
|
2023-08-22 15:51:19 +00:00
|
|
|
<w>90</w>
|
2023-08-23 11:55:46 +00:00
|
|
|
<h>135</h>
|
2023-08-22 15:51:19 +00:00
|
|
|
</coordinates>
|
|
|
|
<panel_attributes>lt=->
|
|
|
|
evInit
|
|
|
|
</panel_attributes>
|
2023-08-23 11:55:46 +00:00
|
|
|
<additional_attributes>10.0;10.0;10.0;70.0</additional_attributes>
|
2023-08-22 15:51:19 +00:00
|
|
|
</element>
|
|
|
|
<element>
|
|
|
|
<id>UMLSpecialState</id>
|
|
|
|
<coordinates>
|
2023-08-23 11:55:46 +00:00
|
|
|
<x>360</x>
|
|
|
|
<y>315</y>
|
2023-08-22 15:51:19 +00:00
|
|
|
<w>30</w>
|
|
|
|
<h>30</h>
|
|
|
|
</coordinates>
|
|
|
|
<panel_attributes>type=initial</panel_attributes>
|
|
|
|
<additional_attributes/>
|
|
|
|
</element>
|
|
|
|
<element>
|
|
|
|
<id>UMLState</id>
|
|
|
|
<coordinates>
|
2023-08-23 11:55:46 +00:00
|
|
|
<x>240</x>
|
|
|
|
<y>435</y>
|
|
|
|
<w>270</w>
|
2023-08-22 15:51:19 +00:00
|
|
|
<h>90</h>
|
|
|
|
</coordinates>
|
2023-08-23 11:55:46 +00:00
|
|
|
<panel_attributes>STCA_PROCESS</panel_attributes>
|
2023-08-22 15:51:19 +00:00
|
|
|
<additional_attributes/>
|
|
|
|
</element>
|
|
|
|
<element>
|
|
|
|
<id>Relation</id>
|
|
|
|
<coordinates>
|
2023-08-23 11:55:46 +00:00
|
|
|
<x>450</x>
|
|
|
|
<y>465</y>
|
|
|
|
<w>180</w>
|
|
|
|
<h>180</h>
|
2023-08-22 15:51:19 +00:00
|
|
|
</coordinates>
|
|
|
|
<panel_attributes>lt=->
|
2023-08-23 11:55:46 +00:00
|
|
|
m1=evCAsend
|
|
|
|
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>
|
2023-08-22 15:51:19 +00:00
|
|
|
</element>
|
|
|
|
<element>
|
|
|
|
<id>Relation</id>
|
|
|
|
<coordinates>
|
2023-08-23 11:55:46 +00:00
|
|
|
<x>135</x>
|
|
|
|
<y>465</y>
|
|
|
|
<w>300</w>
|
|
|
|
<h>180</h>
|
2023-08-22 15:51:19 +00:00
|
|
|
</coordinates>
|
|
|
|
<panel_attributes>lt=->
|
2023-08-23 11:55:46 +00:00
|
|
|
m1= evCAnewMsg
|
|
|
|
m1= \n/receiveCan()
|
2023-08-22 15:51:19 +00:00
|
|
|
</panel_attributes>
|
2023-08-23 11:55:46 +00:00
|
|
|
<additional_attributes>100.0;40.0;100.0;100.0;10.0;100.0;10.0;10.0;70.0;10.0</additional_attributes>
|
2023-08-22 15:51:19 +00:00
|
|
|
</element>
|
2023-08-22 13:53:38 +00:00
|
|
|
</diagram>
|