STM32H735xx HAL User Manual
Functions
Configuration functions
FDCAN Exported Functions

FDCAN Configuration functions. More...

Functions

HAL_StatusTypeDef HAL_FDCAN_ConfigClockCalibration (FDCAN_HandleTypeDef *hfdcan, FDCAN_ClkCalUnitTypeDef *sCcuConfig)
 Configure the FDCAN clock calibration unit according to the specified parameters in the FDCAN_ClkCalUnitTypeDef structure.
uint32_t HAL_FDCAN_GetClockCalibrationState (FDCAN_HandleTypeDef *hfdcan)
 Get the clock calibration state.
HAL_StatusTypeDef HAL_FDCAN_ResetClockCalibrationState (FDCAN_HandleTypeDef *hfdcan)
 Reset the clock calibration state.
uint32_t HAL_FDCAN_GetClockCalibrationCounter (FDCAN_HandleTypeDef *hfdcan, uint32_t Counter)
 Get the clock calibration counter value.
HAL_StatusTypeDef HAL_FDCAN_ConfigFilter (FDCAN_HandleTypeDef *hfdcan, FDCAN_FilterTypeDef *sFilterConfig)
 Configure the FDCAN reception filter according to the specified parameters in the FDCAN_FilterTypeDef structure.
HAL_StatusTypeDef HAL_FDCAN_ConfigGlobalFilter (FDCAN_HandleTypeDef *hfdcan, uint32_t NonMatchingStd, uint32_t NonMatchingExt, uint32_t RejectRemoteStd, uint32_t RejectRemoteExt)
 Configure the FDCAN global filter.
HAL_StatusTypeDef HAL_FDCAN_ConfigExtendedIdMask (FDCAN_HandleTypeDef *hfdcan, uint32_t Mask)
 Configure the extended ID mask.
HAL_StatusTypeDef HAL_FDCAN_ConfigRxFifoOverwrite (FDCAN_HandleTypeDef *hfdcan, uint32_t RxFifo, uint32_t OperationMode)
 Configure the Rx FIFO operation mode.
HAL_StatusTypeDef HAL_FDCAN_ConfigFifoWatermark (FDCAN_HandleTypeDef *hfdcan, uint32_t FIFO, uint32_t Watermark)
 Configure the FIFO watermark.
HAL_StatusTypeDef HAL_FDCAN_ConfigRamWatchdog (FDCAN_HandleTypeDef *hfdcan, uint32_t CounterStartValue)
 Configure the RAM watchdog.
HAL_StatusTypeDef HAL_FDCAN_ConfigTimestampCounter (FDCAN_HandleTypeDef *hfdcan, uint32_t TimestampPrescaler)
 Configure the timestamp counter.
HAL_StatusTypeDef HAL_FDCAN_EnableTimestampCounter (FDCAN_HandleTypeDef *hfdcan, uint32_t TimestampOperation)
 Enable the timestamp counter.
HAL_StatusTypeDef HAL_FDCAN_DisableTimestampCounter (FDCAN_HandleTypeDef *hfdcan)
 Disable the timestamp counter.
uint16_t HAL_FDCAN_GetTimestampCounter (FDCAN_HandleTypeDef *hfdcan)
 Get the timestamp counter value.
HAL_StatusTypeDef HAL_FDCAN_ResetTimestampCounter (FDCAN_HandleTypeDef *hfdcan)
 Reset the timestamp counter to zero.
HAL_StatusTypeDef HAL_FDCAN_ConfigTimeoutCounter (FDCAN_HandleTypeDef *hfdcan, uint32_t TimeoutOperation, uint32_t TimeoutPeriod)
 Configure the timeout counter.
HAL_StatusTypeDef HAL_FDCAN_EnableTimeoutCounter (FDCAN_HandleTypeDef *hfdcan)
 Enable the timeout counter.
HAL_StatusTypeDef HAL_FDCAN_DisableTimeoutCounter (FDCAN_HandleTypeDef *hfdcan)
 Disable the timeout counter.
uint16_t HAL_FDCAN_GetTimeoutCounter (FDCAN_HandleTypeDef *hfdcan)
 Get the timeout counter value.
HAL_StatusTypeDef HAL_FDCAN_ResetTimeoutCounter (FDCAN_HandleTypeDef *hfdcan)
 Reset the timeout counter to its start value.
HAL_StatusTypeDef HAL_FDCAN_ConfigTxDelayCompensation (FDCAN_HandleTypeDef *hfdcan, uint32_t TdcOffset, uint32_t TdcFilter)
 Configure the transmitter delay compensation.
HAL_StatusTypeDef HAL_FDCAN_EnableTxDelayCompensation (FDCAN_HandleTypeDef *hfdcan)
 Enable the transmitter delay compensation.
HAL_StatusTypeDef HAL_FDCAN_DisableTxDelayCompensation (FDCAN_HandleTypeDef *hfdcan)
 Disable the transmitter delay compensation.
HAL_StatusTypeDef HAL_FDCAN_EnableISOMode (FDCAN_HandleTypeDef *hfdcan)
 Enable ISO 11898-1 protocol mode.
HAL_StatusTypeDef HAL_FDCAN_DisableISOMode (FDCAN_HandleTypeDef *hfdcan)
 Disable ISO 11898-1 protocol mode.
HAL_StatusTypeDef HAL_FDCAN_EnableEdgeFiltering (FDCAN_HandleTypeDef *hfdcan)
 Enable edge filtering during bus integration.
HAL_StatusTypeDef HAL_FDCAN_DisableEdgeFiltering (FDCAN_HandleTypeDef *hfdcan)
 Disable edge filtering during bus integration.

Detailed Description

FDCAN Configuration functions.

  ==============================================================================
              ##### Configuration functions #####
  ==============================================================================
    [..]  This section provides functions allowing to:
      (+) HAL_FDCAN_ConfigClockCalibration        : Configure the FDCAN clock calibration unit
        (+) HAL_FDCAN_GetClockCalibrationState      : Get the clock calibration state
        (+) HAL_FDCAN_ResetClockCalibrationState    : Reset the clock calibration state
        (+) HAL_FDCAN_GetClockCalibrationCounter    : Get the clock calibration counters values
      (+) HAL_FDCAN_ConfigFilter                  : Configure the FDCAN reception filters
      (+) HAL_FDCAN_ConfigGlobalFilter            : Configure the FDCAN global filter
      (+) HAL_FDCAN_ConfigExtendedIdMask          : Configure the extended ID mask
      (+) HAL_FDCAN_ConfigRxFifoOverwrite         : Configure the Rx FIFO operation mode
      (+) HAL_FDCAN_ConfigFifoWatermark           : Configure the FIFO watermark
      (+) HAL_FDCAN_ConfigRamWatchdog             : Configure the RAM watchdog
      (+) HAL_FDCAN_ConfigTimestampCounter        : Configure the timestamp counter
        (+) HAL_FDCAN_EnableTimestampCounter        : Enable the timestamp counter
        (+) HAL_FDCAN_DisableTimestampCounter       : Disable the timestamp counter
        (+) HAL_FDCAN_GetTimestampCounter           : Get the timestamp counter value
        (+) HAL_FDCAN_ResetTimestampCounter         : Reset the timestamp counter to zero
      (+) HAL_FDCAN_ConfigTimeoutCounter          : Configure the timeout counter
        (+) HAL_FDCAN_EnableTimeoutCounter          : Enable the timeout counter
        (+) HAL_FDCAN_DisableTimeoutCounter         : Disable the timeout counter
        (+) HAL_FDCAN_GetTimeoutCounter             : Get the timeout counter value
        (+) HAL_FDCAN_ResetTimeoutCounter           : Reset the timeout counter to its start value
      (+) HAL_FDCAN_ConfigTxDelayCompensation     : Configure the transmitter delay compensation
        (+) HAL_FDCAN_EnableTxDelayCompensation     : Enable the transmitter delay compensation
        (+) HAL_FDCAN_DisableTxDelayCompensation    : Disable the transmitter delay compensation
      (+) HAL_FDCAN_EnableISOMode                 : Enable ISO 11898-1 protocol mode
      (+) HAL_FDCAN_DisableISOMode                : Disable ISO 11898-1 protocol mode
      (+) HAL_FDCAN_EnableEdgeFiltering           : Enable edge filtering during bus integration
      (+) HAL_FDCAN_DisableEdgeFiltering          : Disable edge filtering during bus integration


Function Documentation

HAL_StatusTypeDef HAL_FDCAN_ConfigClockCalibration ( FDCAN_HandleTypeDef hfdcan,
FDCAN_ClkCalUnitTypeDef sCcuConfig 
)

Configure the FDCAN clock calibration unit according to the specified parameters in the FDCAN_ClkCalUnitTypeDef structure.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
sCcuConfigpointer to an FDCAN_ClkCalUnitTypeDef structure that contains the clock calibration information
Return values:
HALstatus

Definition at line 1658 of file stm32h7xx_hal_fdcan.c.

References assert_param, FDCAN_ClkCalUnitTypeDef::CalFieldLength, FDCAN_ClkCalUnitTypeDef::ClockCalibration, FDCAN_ClkCalUnitTypeDef::ClockDivider, __FDCAN_HandleTypeDef::ErrorCode, FDCAN_CLOCK_CALIBRATION_DISABLE, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_ERROR_PARAM, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, IS_FDCAN_CALIBRATION_FIELD_LENGTH, IS_FDCAN_CKDIV, IS_FDCAN_CLOCK_CALIBRATION, IS_FDCAN_MAX_VALUE, IS_FDCAN_MIN_VALUE, FDCAN_ClkCalUnitTypeDef::MinOscClkPeriods, __FDCAN_HandleTypeDef::State, FDCAN_ClkCalUnitTypeDef::TimeQuantaPerBitTime, and FDCAN_ClkCalUnitTypeDef::WatchdogStartValue.

HAL_StatusTypeDef HAL_FDCAN_ConfigExtendedIdMask ( FDCAN_HandleTypeDef hfdcan,
uint32_t  Mask 
)

Configure the extended ID mask.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
MaskExtended ID Mask. This parameter must be a number between 0 and 0x1FFFFFFF
Return values:
HALstatus

Definition at line 1959 of file stm32h7xx_hal_fdcan.c.

References assert_param, __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, IS_FDCAN_MAX_VALUE, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_ConfigFifoWatermark ( FDCAN_HandleTypeDef hfdcan,
uint32_t  FIFO,
uint32_t  Watermark 
)

Configure the FIFO watermark.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
FIFOselect the FIFO to be configured. This parameter can be a value of
  • FDCAN_FIFO_watermark.
Watermarklevel for FIFO watermark interrupt. This parameter must be a number between:
  • 0 and 32, if FIFO is FDCAN_CFG_TX_EVENT_FIFO
  • 0 and 64, if FIFO is FDCAN_CFG_RX_FIFO0 or FDCAN_CFG_RX_FIFO1
Return values:
HALstatus

Definition at line 2036 of file stm32h7xx_hal_fdcan.c.

References assert_param, __FDCAN_HandleTypeDef::ErrorCode, FDCAN_CFG_RX_FIFO0, FDCAN_CFG_TX_EVENT_FIFO, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, IS_FDCAN_FIFO_WATERMARK, IS_FDCAN_MAX_VALUE, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_ConfigFilter ( FDCAN_HandleTypeDef hfdcan,
FDCAN_FilterTypeDef sFilterConfig 
)
HAL_StatusTypeDef HAL_FDCAN_ConfigGlobalFilter ( FDCAN_HandleTypeDef hfdcan,
uint32_t  NonMatchingStd,
uint32_t  NonMatchingExt,
uint32_t  RejectRemoteStd,
uint32_t  RejectRemoteExt 
)

Configure the FDCAN global filter.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
NonMatchingStdDefines how received messages with 11-bit IDs that do not match any element of the filter list are treated. This parameter can be a value of
  • FDCAN_Non_Matching_Frames.
NonMatchingExtDefines how received messages with 29-bit IDs that do not match any element of the filter list are treated. This parameter can be a value of
  • FDCAN_Non_Matching_Frames.
RejectRemoteStdFilter or reject all the remote 11-bit IDs frames. This parameter can be a value of
  • FDCAN_Reject_Remote_Frames.
RejectRemoteExtFilter or reject all the remote 29-bit IDs frames. This parameter can be a value of
  • FDCAN_Reject_Remote_Frames.
Return values:
HALstatus

Definition at line 1919 of file stm32h7xx_hal_fdcan.c.

References assert_param, __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, IS_FDCAN_NON_MATCHING, IS_FDCAN_REJECT_REMOTE, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_ConfigRamWatchdog ( FDCAN_HandleTypeDef hfdcan,
uint32_t  CounterStartValue 
)

Configure the RAM watchdog.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
CounterStartValueStart value of the Message RAM Watchdog Counter, This parameter must be a number between 0x00 and 0xFF, with the reset value of 0x00 the counter is disabled.
Return values:
HALstatus

Definition at line 2086 of file stm32h7xx_hal_fdcan.c.

References assert_param, __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, IS_FDCAN_MAX_VALUE, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_ConfigRxFifoOverwrite ( FDCAN_HandleTypeDef hfdcan,
uint32_t  RxFifo,
uint32_t  OperationMode 
)

Configure the Rx FIFO operation mode.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
RxFifoRx FIFO. This parameter can be one of the following values:
  • FDCAN_RX_FIFO0: Rx FIFO 0
  • FDCAN_RX_FIFO1: Rx FIFO 1
OperationModeoperation mode. This parameter can be a value of
  • FDCAN_Rx_FIFO_operation_mode.
Return values:
HALstatus

Definition at line 1993 of file stm32h7xx_hal_fdcan.c.

References assert_param, __FDCAN_HandleTypeDef::ErrorCode, FDCAN_RX_FIFO0, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, IS_FDCAN_RX_FIFO, IS_FDCAN_RX_FIFO_MODE, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_ConfigTimeoutCounter ( FDCAN_HandleTypeDef hfdcan,
uint32_t  TimeoutOperation,
uint32_t  TimeoutPeriod 
)

Configure the timeout counter.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
TimeoutOperationTimeout counter operation. This parameter can be a value of
  • FDCAN_Timeout_Operation.
TimeoutPeriodStart value of the timeout down-counter. This parameter must be a number between 0x0000 and 0xFFFF
Return values:
HALstatus

Definition at line 2241 of file stm32h7xx_hal_fdcan.c.

References assert_param, __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, IS_FDCAN_MAX_VALUE, IS_FDCAN_TIMEOUT, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_ConfigTimestampCounter ( FDCAN_HandleTypeDef hfdcan,
uint32_t  TimestampPrescaler 
)

Configure the timestamp counter.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
TimestampPrescalerTimestamp Counter Prescaler. This parameter can be a value of
  • FDCAN_Timestamp_Prescaler.
Return values:
HALstatus

Definition at line 2116 of file stm32h7xx_hal_fdcan.c.

References assert_param, __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, IS_FDCAN_TIMESTAMP_PRESCALER, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_ConfigTxDelayCompensation ( FDCAN_HandleTypeDef hfdcan,
uint32_t  TdcOffset,
uint32_t  TdcFilter 
)

Configure the transmitter delay compensation.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
TdcOffsetTransmitter Delay Compensation Offset. This parameter must be a number between 0x00 and 0x7F.
TdcFilterTransmitter Delay Compensation Filter Window Length. This parameter must be a number between 0x00 and 0x7F.
Return values:
HALstatus

Definition at line 2361 of file stm32h7xx_hal_fdcan.c.

References assert_param, __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, IS_FDCAN_MAX_VALUE, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_DisableEdgeFiltering ( FDCAN_HandleTypeDef hfdcan)

Disable edge filtering during bus integration.

One dominant tq is required to detect an edge for hard synchronization.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
HALstatus

Definition at line 2519 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_DisableISOMode ( FDCAN_HandleTypeDef hfdcan)

Disable ISO 11898-1 protocol mode.

CAN FD frame format is according to Bosch CAN FD specification V1.0.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
HALstatus

Definition at line 2467 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_DisableTimeoutCounter ( FDCAN_HandleTypeDef hfdcan)

Disable the timeout counter.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
HALstatus

Definition at line 2295 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_DisableTimestampCounter ( FDCAN_HandleTypeDef hfdcan)

Disable the timestamp counter.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
HALstatus

Definition at line 2174 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, and __FDCAN_HandleTypeDef::State.

Disable the transmitter delay compensation.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
HALstatus

Definition at line 2415 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_EnableEdgeFiltering ( FDCAN_HandleTypeDef hfdcan)

Enable edge filtering during bus integration.

Two consecutive dominant tq are required to detect an edge for hard synchronization.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
HALstatus

Definition at line 2493 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_EnableISOMode ( FDCAN_HandleTypeDef hfdcan)

Enable ISO 11898-1 protocol mode.

CAN FD frame format is according to ISO 11898-1 standard.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
HALstatus

Definition at line 2441 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_EnableTimeoutCounter ( FDCAN_HandleTypeDef hfdcan)

Enable the timeout counter.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
HALstatus

Definition at line 2270 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_EnableTimestampCounter ( FDCAN_HandleTypeDef hfdcan,
uint32_t  TimestampOperation 
)

Enable the timestamp counter.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
TimestampOperationTimestamp counter operation. This parameter can be a value of
  • FDCAN_Timestamp.
Return values:
HALstatus

Definition at line 2146 of file stm32h7xx_hal_fdcan.c.

References assert_param, __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, IS_FDCAN_TIMESTAMP, and __FDCAN_HandleTypeDef::State.

Enable the transmitter delay compensation.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
HALstatus

Definition at line 2390 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, and __FDCAN_HandleTypeDef::State.

uint32_t HAL_FDCAN_GetClockCalibrationCounter ( FDCAN_HandleTypeDef hfdcan,
uint32_t  Counter 
)

Get the clock calibration counter value.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Counterclock calibration counter. This parameter can be a value of
  • FDCAN_calibration_counter.
Return values:
Valueclock calibration counter value

Definition at line 1776 of file stm32h7xx_hal_fdcan.c.

References assert_param, FDCAN_CALIB_CLOCK_PERIOD_COUNTER, FDCAN_CALIB_TIME_QUANTA_COUNTER, and IS_FDCAN_CALIBRATION_COUNTER.

Get the clock calibration state.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
Stateclock calibration state (can be a value of
  • FDCAN_calibration_state)

Definition at line 1726 of file stm32h7xx_hal_fdcan.c.

Get the timeout counter value.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
ValueTimeout counter value

Definition at line 2320 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::Instance.

Get the timestamp counter value.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
ValueTimestamp counter value

Definition at line 2199 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::Instance.

Reset the clock calibration state.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
HALstatus

Definition at line 1740 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::ErrorCode, HAL_FDCAN_ERROR_NOT_READY, HAL_FDCAN_ERROR_PARAM, HAL_FDCAN_STATE_READY, __FDCAN_HandleTypeDef::Instance, and __FDCAN_HandleTypeDef::State.

HAL_StatusTypeDef HAL_FDCAN_ResetTimeoutCounter ( FDCAN_HandleTypeDef hfdcan)

Reset the timeout counter to its start value.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
HALstatus

Definition at line 2331 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::ErrorCode, FDCAN_TIMEOUT_CONTINUOUS, HAL_FDCAN_ERROR_NOT_SUPPORTED, and __FDCAN_HandleTypeDef::Instance.

HAL_StatusTypeDef HAL_FDCAN_ResetTimestampCounter ( FDCAN_HandleTypeDef hfdcan)

Reset the timestamp counter to zero.

Parameters:
hfdcanpointer to an FDCAN_HandleTypeDef structure that contains the configuration information for the specified FDCAN.
Return values:
HALstatus

Definition at line 2210 of file stm32h7xx_hal_fdcan.c.

References __FDCAN_HandleTypeDef::ErrorCode, FDCAN_TIMESTAMP_EXTERNAL, HAL_FDCAN_ERROR_NOT_SUPPORTED, and __FDCAN_HandleTypeDef::Instance.