FDCAN Read
R2026bLibraries:
STM32 Microcontroller Blockset /
STM32G0xx Based Boards
STM32 Microcontroller Blockset /
STM32G4xx Based Boards
STM32 Microcontroller Blockset /
STM32H5xx Based Boards
STM32 Microcontroller Blockset /
STM32H7xx Based Boards
STM32 Microcontroller Blockset /
STM32L5xx Based Boards
STM32 Microcontroller Blockset /
STM32U5xx Based Boards
STM32 Microcontroller Blockset /
STM32H7RSxx Based Boards
STM32 Microcontroller Blockset /
STM32N6xx 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
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"stm32g0xxblockslib/FDCAN Read"
"stm32g4xxblockslib/FDCAN Read"
"stm32h5xxblockslib/FDCAN Read"
"stm32h7xxblockslib/FDCAN Read"
"stm32l5xxblockslib/FDCAN Read"
"stm32u5xxblockslib/FDCAN Read"
"stm32h7rsxxblockslib/FDCAN Read"
"stm32n6xxblockslib/FDCAN Read"
Example: add_block("stm32g0xxblockslib/FDCAN Read","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2023a

