| Target Support Package™ IC1 | ![]() |
Target Support Package IC1/ C166 Driver Library/ C-CAN Interface

The C-CAN Receive block receives CAN messages from a C-CAN module. The C-CAN Receive block automatically reserves one of the buffers on the C-CAN module. The C-CAN Receive block has two outputs: a data output and a function-call trigger output. The C-CAN Receive block polls its message buffer at a rate determined by the block's sample time. When the CAN Receive block detects that a message has arrived, the function-call trigger is activated. You should use a function-call subsystem, activated by the trigger, to decode the message available at the CAN Receive block data output.

Select C-CAN module 1 or 2. The C-CAN modules can receive messages independently.
The identifier of the message you want to receive.
The type of message you want to receive. Select either Standard(11-bit identifier) or Extended(29-bit identifier).
Determines the rate at which to sample the buffer to see if a new message has arrived.
Note The C-CAN Receive block sample time must be set to a value that is smaller than the minimum time between CAN messages that will be received into the corresponding buffer. If more than one message is received into a buffer during a single sample interval, the older message will be overwritten. |
![]() | CAN Transmit | C-CAN Transmit | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |