STM32F439xx HAL User Manual
Defines
CAN Error Code
CAN Exported Constants

Defines

#define HAL_CAN_ERROR_NONE   (0x00000000U)
#define HAL_CAN_ERROR_EWG   (0x00000001U)
#define HAL_CAN_ERROR_EPV   (0x00000002U)
#define HAL_CAN_ERROR_BOF   (0x00000004U)
#define HAL_CAN_ERROR_STF   (0x00000008U)
#define HAL_CAN_ERROR_FOR   (0x00000010U)
#define HAL_CAN_ERROR_ACK   (0x00000020U)
#define HAL_CAN_ERROR_BR   (0x00000040U)
#define HAL_CAN_ERROR_BD   (0x00000080U)
#define HAL_CAN_ERROR_CRC   (0x00000100U)
#define HAL_CAN_ERROR_RX_FOV0   (0x00000200U)
#define HAL_CAN_ERROR_RX_FOV1   (0x00000400U)
#define HAL_CAN_ERROR_TX_ALST0   (0x00000800U)
#define HAL_CAN_ERROR_TX_TERR0   (0x00001000U)
#define HAL_CAN_ERROR_TX_ALST1   (0x00002000U)
#define HAL_CAN_ERROR_TX_TERR1   (0x00004000U)
#define HAL_CAN_ERROR_TX_ALST2   (0x00008000U)
#define HAL_CAN_ERROR_TX_TERR2   (0x00010000U)
#define HAL_CAN_ERROR_TIMEOUT   (0x00020000U)
#define HAL_CAN_ERROR_NOT_INITIALIZED   (0x00040000U)
#define HAL_CAN_ERROR_NOT_READY   (0x00080000U)
#define HAL_CAN_ERROR_NOT_STARTED   (0x00100000U)
#define HAL_CAN_ERROR_PARAM   (0x00200000U)

Define Documentation

#define HAL_CAN_ERROR_ACK   (0x00000020U)

Acknowledgment error

Definition at line 257 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_BD   (0x00000080U)

Bit dominant error

Definition at line 259 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_BOF   (0x00000004U)

Bus-off error

Definition at line 254 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_BR   (0x00000040U)

Bit recessive error

Definition at line 258 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_CRC   (0x00000100U)

CRC error

Definition at line 260 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_EPV   (0x00000002U)

Error Passive

Definition at line 253 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_EWG   (0x00000001U)

Protocol Error Warning

Definition at line 252 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_FOR   (0x00000010U)

Form error

Definition at line 256 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_NONE   (0x00000000U)

No error

Definition at line 251 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_DeInit(), HAL_CAN_Init(), HAL_CAN_IRQHandler(), and HAL_CAN_Start().

#define HAL_CAN_ERROR_NOT_INITIALIZED   (0x00040000U)
#define HAL_CAN_ERROR_NOT_READY   (0x00080000U)

Peripheral not ready

Definition at line 271 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_Start().

#define HAL_CAN_ERROR_NOT_STARTED   (0x00100000U)

Peripheral not started

Definition at line 272 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_Stop().

#define HAL_CAN_ERROR_PARAM   (0x00200000U)

Parameter error

Definition at line 273 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_AddTxMessage(), and HAL_CAN_GetRxMessage().

#define HAL_CAN_ERROR_RX_FOV0   (0x00000200U)

Rx FIFO0 overrun error

Definition at line 261 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_RX_FOV1   (0x00000400U)

Rx FIFO1 overrun error

Definition at line 262 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_STF   (0x00000008U)

Stuff error

Definition at line 255 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_TIMEOUT   (0x00020000U)

Timeout error

Definition at line 269 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_Init(), HAL_CAN_Start(), HAL_CAN_Stop(), and HAL_CAN_WakeUp().

#define HAL_CAN_ERROR_TX_ALST0   (0x00000800U)

TxMailbox 0 transmit failure due to arbitration lost

Definition at line 263 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_TX_ALST1   (0x00002000U)

TxMailbox 0 transmit failure due to arbitration lost

Definition at line 265 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_TX_ALST2   (0x00008000U)

TxMailbox 0 transmit failure due to arbitration lost

Definition at line 267 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_TX_TERR0   (0x00001000U)

TxMailbox 1 transmit failure due to tranmit error

Definition at line 264 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_TX_TERR1   (0x00004000U)

TxMailbox 1 transmit failure due to tranmit error

Definition at line 266 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

#define HAL_CAN_ERROR_TX_TERR2   (0x00010000U)

TxMailbox 1 transmit failure due to tranmit error

Definition at line 268 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().