FDCAN Receive
This block handles receiving messages via the FDCAN bus in STM microcontrollers.

Table of Contents
Inputs
This block does not have any inputs.
Outputs
| Output Name | Type | Description |
|---|---|---|
| Status | uint8 | Transmission status. Returns:1 transmission successful0 transmission failed |
| ID | uint32 | ID number of the received message. |
| DLC | uint8 | Data length of the received frame. |
| Data[ ] | uint8 | Data from the received frame. |
Block Parameters
| Parameter | Description |
|---|---|
| Module number | CAN module number |
| ID Type | Message ID number type:Standard ID - standard number (11 bits)Extended ID - extended number (29 bits) |
| Init filter in loop | Enables initialization of the filter on every block execution loop |
| Type | Message filtering method selection:FDCAN_FILTER_RANGE - by range from First ID to Last IDFDCAN_FILTER_DUAL - by ID1 or ID2 numbersFDCAN_FILTER_MASK - by ID and Mask |
| Config FIFO | Receive buffer configuration:FDCAN_FILTER_TO_RXFIFO0 - filtered messages are received into FIFO 0 bufferFDCAN_FILTER_TO_RXFIFO1 - filtered messages are received into FIFO 1 bufferFDCAN_FILTER_TO_RXFIFO0_HP - filtered messages are received into FIFO 0 buffer with high priority assignedFDCAN_FILTER_TO_RXFIFO1_HP - filtered messages are received into FIFO 1 buffer with high priority assigned |
| First ID | Conditional Parameter Message ID number used for filtering. This setting is visible if the Type parameter is configured as FDCAN_FILTER_RANGE. |
| Last ID | Conditional Parameter Message ID number used for filtering. This setting is visible if the Type parameter is configured as FDCAN_FILTER_RANGE. |
| ID1 | Conditional Parameter Message ID number used for filtering. This setting is visible only if the Type parameter is configured as FDCAN_FILTER_DUAL. |
| ID2 | Conditional Parameter Message ID number used for filtering. This setting is visible if the Type parameter is configured as FDCAN_FILTER_DUAL. |
| ID | Conditional Parameter Message ID number used for filtering. This setting is visible if Type is configured as CAN_FILTERMODE_IDMASK. |
| Mask | Conditional Parameter Mask used for message filtering. This setting is visible if Type is configured as CAN_FILTERMODE_IDMASK. |
| Data length (bytes) | Maximum data length per frame (in bytes) |
| Num of buffer | Number of receive buffers. This setting affects the amount of messages that can be stored in the receive buffer before being processed. |
| Data output mode | Way data from the received frame is represented:Matrix - data is represented as a matrixVectors - data is represented as vectors |
| Timeout | How long the system will wait for the block execution |
| Sample time [s] | Function refresh rate |

Configuration of CubeMX for a Given MCU
The configuration for FDCAN can be found on the CubeMX Configuration for a Given MCU subpage.
See Also
Last updated on