]> rtime.felk.cvut.cz Git - jenkicar/rpp-simulink.git/commitdiff
doc: complete the CAN blocks description
authorMichal Horn <hornmich@fel.cvut.cz>
Wed, 10 Dec 2014 14:57:31 +0000 (15:57 +0100)
committerMichal Horn <hornmich@fel.cvut.cz>
Wed, 10 Dec 2014 14:57:31 +0000 (15:57 +0100)
rpp/blocks/sfunction_canreceive.c
rpp/blocks/sfunction_cantransmit.c

index 6894536423a9b676592bb2dfa663f468605a6176..d52434c39145c8f4988dd58eafc055daff5d9e3b 100644 (file)
@@ -96,6 +96,11 @@ Help: |
   The mailbox numbers are shared between CAN Transmit and CAN Receive
   blocks with the same CAN port (module) parameter.
 
+  The order in which the messages are received and their priority depends on their
+  mailbox numbers. The lower the mailbox number is, the higher is the priority.
+  If you want to have the priority of the messages under control, you have to specify
+  the numbers of the mailboxes manually. 
+
   The output of this block is a message data in selected format: uint8, uint16, uint32
   or CAN\_MESSAGE. The CAN\_MESSAGE object can be unpacked by `CAN Unpack` block.
 
index a4152aae5aeda62ec7e9d1537fc327d00b70192f..b016e443cd0dbe40110591d23a63596bf37e38de 100644 (file)
@@ -79,6 +79,11 @@ Help: |
   The mailbox numbers are shared between CAN Transmit and CAN Receive
   blocks with the same CAN port (module) parameter.
 
+  The order in which the messages are transmitted depends on their mailbox numbers.
+  The lower the mailbox number is, the higher is the priority of the message and the
+  sooner will it be transmitted. If you want to have the priority of the messages
+  under control, you have to specify the numbers of the mailboxes manually. 
+
   In order to use this block, there must be a `CAN Configure` block in the model.
 
 Status: Stable