Core/Src/main.c
static void MX_FDCAN1_Init(void)
{

  /* USER CODE BEGIN FDCAN1_Init 0 */

  /* USER CODE END FDCAN1_Init 0 */

  /* USER CODE BEGIN FDCAN1_Init 1 */

  /* USER CODE END FDCAN1_Init 1 */
  hfdcan1.Instance = FDCAN1;
  hfdcan1.Init.FrameFormat = FDCAN_FRAME_CLASSIC;
  hfdcan1.Init.Mode = FDCAN_MODE_NORMAL;
  hfdcan1.Init.AutoRetransmission = ENABLE;
  hfdcan1.Init.TransmitPause = DISABLE;
  hfdcan1.Init.ProtocolException = DISABLE;
  hfdcan1.Init.NominalPrescaler = 8;
  hfdcan1.Init.NominalSyncJumpWidth = 4;
  hfdcan1.Init.NominalTimeSeg1 = 16;
  hfdcan1.Init.NominalTimeSeg2 = 16;
  hfdcan1.Init.DataPrescaler = 8;
  hfdcan1.Init.DataSyncJumpWidth = 4;
  hfdcan1.Init.DataTimeSeg1 = 16;
  hfdcan1.Init.DataTimeSeg2 = 16;
  hfdcan1.Init.MessageRAMOffset = 0;
  hfdcan1.Init.StdFiltersNbr = 0;
  hfdcan1.Init.ExtFiltersNbr = 0;
  hfdcan1.Init.RxFifo0ElmtsNbr = 4;
  hfdcan1.Init.RxFifo0ElmtSize = FDCAN_DATA_BYTES_8;
  hfdcan1.Init.RxFifo1ElmtsNbr = 4;
  hfdcan1.Init.RxFifo1ElmtSize = FDCAN_DATA_BYTES_8;
  hfdcan1.Init.RxBuffersNbr = 0;
  hfdcan1.Init.RxBufferSize = FDCAN_DATA_BYTES_8;
  hfdcan1.Init.TxEventsNbr = 0;
  hfdcan1.Init.TxBuffersNbr = 0;
  hfdcan1.Init.TxFifoQueueElmtsNbr = 2;
  hfdcan1.Init.TxFifoQueueMode = FDCAN_TX_FIFO_OPERATION;
  hfdcan1.Init.TxElmtSize = FDCAN_DATA_BYTES_8;
  if (HAL_FDCAN_Init(&hfdcan1) != HAL_OK)
  {
    Error_Handler();
  }
  /* USER CODE BEGIN FDCAN1_Init 2 */
  Experiment_CAN_DeinitPins();
  /* USER CODE END FDCAN1_Init 2 */

}
/**
  * @brief FDCAN1 Initialization Function
  * @param None
  * @retval None
  */
@brief FDCAN1 Initialization Function
@param None
@retval None
@brief FDCAN1 Initialization Function @param None @retval None
static void MX_FDCAN1_Init(void)
{
  hfdcan1.Instance = FDCAN1;
  hfdcan1.Init.FrameFormat = FDCAN_FRAME_CLASSIC;
  hfdcan1.Init.Mode = FDCAN_MODE_NORMAL;
  hfdcan1.Init.AutoRetransmission = ENABLE;
  hfdcan1.Init.TransmitPause = DISABLE;
  hfdcan1.Init.ProtocolException = DISABLE;
  hfdcan1.Init.NominalPrescaler = 8;
  hfdcan1.Init.NominalSyncJumpWidth = 4;
  hfdcan1.Init.NominalTimeSeg1 = 16;
  hfdcan1.Init.NominalTimeSeg2 = 16;
  hfdcan1.Init.DataPrescaler = 8;
  hfdcan1.Init.DataSyncJumpWidth = 4;
  hfdcan1.Init.DataTimeSeg1 = 16;
  hfdcan1.Init.DataTimeSeg2 = 16;
  hfdcan1.Init.MessageRAMOffset = 0;
  hfdcan1.Init.StdFiltersNbr = 0;
  hfdcan1.Init.ExtFiltersNbr = 0;
  hfdcan1.Init.RxFifo0ElmtsNbr = 4;
  hfdcan1.Init.RxFifo0ElmtSize = FDCAN_DATA_BYTES_8;
  hfdcan1.Init.RxFifo1ElmtsNbr = 4;
  hfdcan1.Init.RxFifo1ElmtSize = FDCAN_DATA_BYTES_8;
  hfdcan1.Init.RxBuffersNbr = 0;
  hfdcan1.Init.RxBufferSize = FDCAN_DATA_BYTES_8;
  hfdcan1.Init.TxEventsNbr = 0;
  hfdcan1.Init.TxBuffersNbr = 0;
  hfdcan1.Init.TxFifoQueueElmtsNbr = 2;
  hfdcan1.Init.TxFifoQueueMode = FDCAN_TX_FIFO_OPERATION;
  hfdcan1.Init.TxElmtSize = FDCAN_DATA_BYTES_8;
  if (HAL_FDCAN_Init(&hfdcan1) != HAL_OK)
  {
    Error_Handler();
  }
  Experiment_CAN_DeinitPins();
}
static void MX_FDCAN1_Init ( void ) { hfdcan1 . Instance = FDCAN1 ; hfdcan1 . Init . FrameFormat = FDCAN_FRAME_CLASSIC ; hfdcan1 . Init . Mode = FDCAN_MODE_NORMAL ; hfdcan1 . Init . AutoRetransmission = ENABLE ; hfdcan1 . Init . TransmitPause = DISABLE ; hfdcan1 . Init . ProtocolException = DISABLE ; hfdcan1 . Init . NominalPrescaler = 8 ; hfdcan1 . Init . NominalSyncJumpWidth = 4 ; hfdcan1 . Init . NominalTimeSeg1 = 16 ; hfdcan1 . Init . NominalTimeSeg2 = 16 ; hfdcan1 . Init . DataPrescaler = 8 ; hfdcan1 . Init . DataSyncJumpWidth = 4 ; hfdcan1 . Init . DataTimeSeg1 = 16 ; hfdcan1 . Init . DataTimeSeg2 = 16 ; hfdcan1 . Init . MessageRAMOffset = 0 ; hfdcan1 . Init . StdFiltersNbr = 0 ; hfdcan1 . Init . ExtFiltersNbr = 0 ; hfdcan1 . Init . RxFifo0ElmtsNbr = 4 ; hfdcan1 . Init . RxFifo0ElmtSize = FDCAN_DATA_BYTES_8 ; hfdcan1 . Init . RxFifo1ElmtsNbr = 4 ; hfdcan1 . Init . RxFifo1ElmtSize = FDCAN_DATA_BYTES_8 ; hfdcan1 . Init . RxBuffersNbr = 0 ; hfdcan1 . Init . RxBufferSize = FDCAN_DATA_BYTES_8 ; hfdcan1 . Init . TxEventsNbr = 0 ; hfdcan1 . Init . TxBuffersNbr = 0 ; hfdcan1 . Init . TxFifoQueueElmtsNbr = 2 ; hfdcan1 . Init . TxFifoQueueMode = FDCAN_TX_FIFO_OPERATION ; hfdcan1 . Init . TxElmtSize = FDCAN_DATA_BYTES_8 ; if ( HAL_FDCAN_Init ( & hfdcan1 ) != HAL_OK ) { Error_Handler ( ) ; } Experiment_CAN_DeinitPins ( ) ; }
@brief FDCAN1 Initialization Function
 @param None
 @retval None
@brief FDCAN1 Initialization Function @param None @retval None
/* USER CODE BEGIN FDCAN1_Init 0 */ /* USER CODE END FDCAN1_Init 0 */ /* USER CODE BEGIN FDCAN1_Init 1 */ /* USER CODE END FDCAN1_Init 1 */ /* USER CODE BEGIN FDCAN1_Init 2 */ /* USER CODE END FDCAN1_Init 2 */