STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
Collaboration diagram for CAN Error Code:

Macros

#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_FOV0   0x00000200U
 
#define HAL_CAN_ERROR_FOV1   0x00000400U
 
#define HAL_CAN_ERROR_TXFAIL   0x00000800U
 
#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 HAL_CAN_ERROR_INTERNAL   (0x00800000U)
 

Detailed Description

Macro Definition Documentation

◆ HAL_CAN_ERROR_NONE [1/2]

#define HAL_CAN_ERROR_NONE   0x00000000U

◆ HAL_CAN_ERROR_EWG [1/2]

#define HAL_CAN_ERROR_EWG   0x00000001U

#include <stm32f4xx_hal_can_legacy.h>

EWG error

Protocol Error Warning

Definition at line 244 of file stm32f4xx_hal_can_legacy.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_EPV [1/2]

#define HAL_CAN_ERROR_EPV   0x00000002U

#include <stm32f4xx_hal_can_legacy.h>

EPV error

Error Passive

Definition at line 245 of file stm32f4xx_hal_can_legacy.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_BOF [1/2]

#define HAL_CAN_ERROR_BOF   0x00000004U

#include <stm32f4xx_hal_can_legacy.h>

BOF error

Bus-off error

Definition at line 246 of file stm32f4xx_hal_can_legacy.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_STF [1/2]

#define HAL_CAN_ERROR_STF   0x00000008U

#include <stm32f4xx_hal_can_legacy.h>

Stuff error

Definition at line 247 of file stm32f4xx_hal_can_legacy.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_FOR [1/2]

#define HAL_CAN_ERROR_FOR   0x00000010U

#include <stm32f4xx_hal_can_legacy.h>

Form error

Definition at line 248 of file stm32f4xx_hal_can_legacy.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_ACK [1/2]

#define HAL_CAN_ERROR_ACK   0x00000020U

#include <stm32f4xx_hal_can_legacy.h>

Acknowledgment error

Acknowledgment error

Definition at line 249 of file stm32f4xx_hal_can_legacy.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_BR [1/2]

#define HAL_CAN_ERROR_BR   0x00000040U

#include <stm32f4xx_hal_can_legacy.h>

Bit recessive

Bit recessive error

Definition at line 250 of file stm32f4xx_hal_can_legacy.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_BD [1/2]

#define HAL_CAN_ERROR_BD   0x00000080U

#include <stm32f4xx_hal_can_legacy.h>

LEC dominant

Bit dominant error

Definition at line 251 of file stm32f4xx_hal_can_legacy.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_CRC [1/2]

#define HAL_CAN_ERROR_CRC   0x00000100U

#include <stm32f4xx_hal_can_legacy.h>

LEC transfer error

CRC error

Definition at line 252 of file stm32f4xx_hal_can_legacy.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_FOV0

#define HAL_CAN_ERROR_FOV0   0x00000200U

#include <stm32f4xx_hal_can_legacy.h>

FIFO0 overrun error

Definition at line 253 of file stm32f4xx_hal_can_legacy.h.

◆ HAL_CAN_ERROR_FOV1

#define HAL_CAN_ERROR_FOV1   0x00000400U

#include <stm32f4xx_hal_can_legacy.h>

FIFO1 overrun error

Definition at line 254 of file stm32f4xx_hal_can_legacy.h.

◆ HAL_CAN_ERROR_TXFAIL

#define HAL_CAN_ERROR_TXFAIL   0x00000800U

#include <stm32f4xx_hal_can_legacy.h>

Transmit failure

Definition at line 255 of file stm32f4xx_hal_can_legacy.h.

◆ HAL_CAN_ERROR_NONE [2/2]

#define HAL_CAN_ERROR_NONE   (0x00000000U)

#include <stm32f4xx_hal_can.h>

No error

Definition at line 292 of file stm32f4xx_hal_can.h.

◆ HAL_CAN_ERROR_EWG [2/2]

#define HAL_CAN_ERROR_EWG   (0x00000001U)

#include <stm32f4xx_hal_can.h>

Protocol Error Warning

Definition at line 293 of file stm32f4xx_hal_can.h.

◆ HAL_CAN_ERROR_EPV [2/2]

#define HAL_CAN_ERROR_EPV   (0x00000002U)

#include <stm32f4xx_hal_can.h>

Error Passive

Definition at line 294 of file stm32f4xx_hal_can.h.

◆ HAL_CAN_ERROR_BOF [2/2]

#define HAL_CAN_ERROR_BOF   (0x00000004U)

#include <stm32f4xx_hal_can.h>

Bus-off error

Definition at line 295 of file stm32f4xx_hal_can.h.

◆ HAL_CAN_ERROR_STF [2/2]

#define HAL_CAN_ERROR_STF   (0x00000008U)

#include <stm32f4xx_hal_can.h>

Stuff error

Definition at line 296 of file stm32f4xx_hal_can.h.

◆ HAL_CAN_ERROR_FOR [2/2]

#define HAL_CAN_ERROR_FOR   (0x00000010U)

#include <stm32f4xx_hal_can.h>

Form error

Definition at line 297 of file stm32f4xx_hal_can.h.

◆ HAL_CAN_ERROR_ACK [2/2]

#define HAL_CAN_ERROR_ACK   (0x00000020U)

#include <stm32f4xx_hal_can.h>

Acknowledgment error

Definition at line 298 of file stm32f4xx_hal_can.h.

◆ HAL_CAN_ERROR_BR [2/2]

#define HAL_CAN_ERROR_BR   (0x00000040U)

#include <stm32f4xx_hal_can.h>

Bit recessive error

Definition at line 299 of file stm32f4xx_hal_can.h.

◆ HAL_CAN_ERROR_BD [2/2]

#define HAL_CAN_ERROR_BD   (0x00000080U)

#include <stm32f4xx_hal_can.h>

Bit dominant error

Definition at line 300 of file stm32f4xx_hal_can.h.

◆ HAL_CAN_ERROR_CRC [2/2]

#define HAL_CAN_ERROR_CRC   (0x00000100U)

#include <stm32f4xx_hal_can.h>

CRC error

Definition at line 301 of file stm32f4xx_hal_can.h.

◆ HAL_CAN_ERROR_RX_FOV0

#define HAL_CAN_ERROR_RX_FOV0   (0x00000200U)

#include <stm32f4xx_hal_can.h>

Rx FIFO0 overrun error

Definition at line 302 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_RX_FOV1

#define HAL_CAN_ERROR_RX_FOV1   (0x00000400U)

#include <stm32f4xx_hal_can.h>

Rx FIFO1 overrun error

Definition at line 303 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_TX_ALST0

#define HAL_CAN_ERROR_TX_ALST0   (0x00000800U)

#include <stm32f4xx_hal_can.h>

TxMailbox 0 transmit failure due to arbitration lost

Definition at line 304 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_TX_TERR0

#define HAL_CAN_ERROR_TX_TERR0   (0x00001000U)

#include <stm32f4xx_hal_can.h>

TxMailbox 0 transmit failure due to transmit error

Definition at line 305 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_TX_ALST1

#define HAL_CAN_ERROR_TX_ALST1   (0x00002000U)

#include <stm32f4xx_hal_can.h>

TxMailbox 1 transmit failure due to arbitration lost

Definition at line 306 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_TX_TERR1

#define HAL_CAN_ERROR_TX_TERR1   (0x00004000U)

#include <stm32f4xx_hal_can.h>

TxMailbox 1 transmit failure due to transmit error

Definition at line 307 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_TX_ALST2

#define HAL_CAN_ERROR_TX_ALST2   (0x00008000U)

#include <stm32f4xx_hal_can.h>

TxMailbox 2 transmit failure due to arbitration lost

Definition at line 308 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_TX_TERR2

#define HAL_CAN_ERROR_TX_TERR2   (0x00010000U)

#include <stm32f4xx_hal_can.h>

TxMailbox 2 transmit failure due to transmit error

Definition at line 309 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_IRQHandler().

◆ HAL_CAN_ERROR_TIMEOUT

#define HAL_CAN_ERROR_TIMEOUT   (0x00020000U)

#include <stm32f4xx_hal_can.h>

Timeout error

Definition at line 310 of file stm32f4xx_hal_can.h.

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

◆ HAL_CAN_ERROR_NOT_INITIALIZED

◆ HAL_CAN_ERROR_NOT_READY

#define HAL_CAN_ERROR_NOT_READY   (0x00080000U)

#include <stm32f4xx_hal_can.h>

Peripheral not ready

Definition at line 312 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_Start().

◆ HAL_CAN_ERROR_NOT_STARTED

#define HAL_CAN_ERROR_NOT_STARTED   (0x00100000U)

#include <stm32f4xx_hal_can.h>

Peripheral not started

Definition at line 313 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_Stop().

◆ HAL_CAN_ERROR_PARAM

#define HAL_CAN_ERROR_PARAM   (0x00200000U)

#include <stm32f4xx_hal_can.h>

Parameter error

Definition at line 314 of file stm32f4xx_hal_can.h.

Referenced by HAL_CAN_AddTxMessage(), and HAL_CAN_GetRxMessage().

◆ HAL_CAN_ERROR_INTERNAL

#define HAL_CAN_ERROR_INTERNAL   (0x00800000U)

#include <stm32f4xx_hal_can.h>

Internal error

Definition at line 319 of file stm32f4xx_hal_can.h.