FDCAN Read
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 Read block reads messages from a Controller Area Network (CAN) network connected to the hardware.
The FDCAN Read block outputs a CAN data when operation mode is set to
Data
. The block outputs values received as [64x1]
array of type uint8
when output type is set to
Unpacked
.
The block outputs Simulink® bus signal when output type is set to Packed
. To extract data
from Simulink bus signal, connect it to CAN FD Unpack 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
Output
Parameters
Extended Capabilities
Version History
Introduced in R2023a