FDCAN Write
Add-On Required: This feature requires the Embedded Coder Support Package for STMicroelectronics STM32 Processors add-on.
Libraries:
Embedded Coder Support Package for STMicroelectronics STM32 Processors /
STM32G0xx Based Boards
Embedded Coder Support Package for STMicroelectronics STM32 Processors /
STM32G4xx Based Boards
Embedded Coder Support Package for STMicroelectronics STM32 Processors /
STM32H7xx Based Boards
Embedded Coder Support Package for STMicroelectronics STM32 Processors /
STM32L5xx Based Boards
Embedded Coder Support Package for STMicroelectronics STM32 Processors /
STM32U5xx Based Boards
Description
The FDCAN Write block writes messages to the Controller Area Network (CAN) network connected to the hardware.
The FDCAN Write block accepts a CAN data that needs to be sent when
operation mode is set to Data
. The block accepts a 1-D array of type
uint8
when data format is set to Raw data
.
The block accepts input as Simulink® bus signal when data format is set to CAN Message
. To extract
data from Simulink bus signal, connect it to FDCAN pack block.
Select the Operation mode and its properties using the block parameters dialog box. Configure the properties of FDCAN module in the configuration parameters.
Examples
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2023a