CAN Transmit

<< Click to Display Table of Contents >>

Navigation:  STM32F0 Target > Block References > On-chip Peripherals > CAN >

CAN Transmit

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?


What can be configured?


Configuration item

Selectable option/ Value


CAN Module


Select CAN module number.


Blocking | Non-Blocking

Select transfer mode.

Recommend using Blocking mode if transmit more than 3 packets in same step.

Transmit timeout (sec)

(transmit timeout)

This option available when transfer mode configured to Blocking.

Identifier Type

Standard | Extended

Select ID type, standard id (11 bits) or Extended (29 bits).

Specific Identifier (ID)

Checked | Unchecked

Option to use specific ID or variable ID.

Identifier, ID

(ID value)

11bits value for Standard ID (2.0A).

29bits value for Extended ID (2.0B)

Specified ID value to transmit.

Specific Data Length Code (DLC)

Checked | Unchecked

Option to use specific DLC or variable DLC.

Data Length Code, DLC

0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8

Select data length to transmit.

Enable Status port

Checked | Unchecked

Show/ Hide output status port.

Data Type

double | single | uint32 | int32 | uint16 | int16 | uint8 | int8

Select port data type.

Sample Time (Sec)

(Sample time)

When to use this block?

Use this block to send a packet data to the bus and accept by other device. Useful for data network communication application.

How does this block work?

This block transmit a packet data to out-going buffer (3 out mailbox). If transfer mode is Blocking, process will wait until message sent to the bus.