STM32F10x Standard Peripherals Library  3.5.0
CAN_flags

Defines

#define CAN_FLAG_RQCP0   ((uint32_t)0x38000001)
#define CAN_FLAG_RQCP1   ((uint32_t)0x38000100)
#define CAN_FLAG_RQCP2   ((uint32_t)0x38010000)
#define CAN_FLAG_FMP0   ((uint32_t)0x12000003)
#define CAN_FLAG_FF0   ((uint32_t)0x32000008)
#define CAN_FLAG_FOV0   ((uint32_t)0x32000010)
#define CAN_FLAG_FMP1   ((uint32_t)0x14000003)
#define CAN_FLAG_FF1   ((uint32_t)0x34000008)
#define CAN_FLAG_FOV1   ((uint32_t)0x34000010)
#define CAN_FLAG_WKU   ((uint32_t)0x31000008)
#define CAN_FLAG_SLAK   ((uint32_t)0x31000012)
#define CAN_FLAG_EWG   ((uint32_t)0x10F00001)
#define CAN_FLAG_EPV   ((uint32_t)0x10F00002)
#define CAN_FLAG_BOF   ((uint32_t)0x10F00004)
#define CAN_FLAG_LEC   ((uint32_t)0x30F00070)
#define IS_CAN_GET_FLAG(FLAG)
#define IS_CAN_CLEAR_FLAG(FLAG)

Define Documentation

#define CAN_FLAG_BOF   ((uint32_t)0x10F00004)

Bus-Off Flag

Definition at line 528 of file stm32f10x_can.h.

#define CAN_FLAG_EPV   ((uint32_t)0x10F00002)

Error Passive Flag

Definition at line 527 of file stm32f10x_can.h.

#define CAN_FLAG_EWG   ((uint32_t)0x10F00001)

Error Warning Flag

Definition at line 526 of file stm32f10x_can.h.

#define CAN_FLAG_FF0   ((uint32_t)0x32000008)

FIFO 0 Full Flag

Definition at line 513 of file stm32f10x_can.h.

#define CAN_FLAG_FF1   ((uint32_t)0x34000008)

FIFO 1 Full Flag

Definition at line 516 of file stm32f10x_can.h.

#define CAN_FLAG_FMP0   ((uint32_t)0x12000003)

FIFO 0 Message Pending Flag

Definition at line 512 of file stm32f10x_can.h.

#define CAN_FLAG_FMP1   ((uint32_t)0x14000003)

FIFO 1 Message Pending Flag

Definition at line 515 of file stm32f10x_can.h.

#define CAN_FLAG_FOV0   ((uint32_t)0x32000010)

FIFO 0 Overrun Flag

Definition at line 514 of file stm32f10x_can.h.

#define CAN_FLAG_FOV1   ((uint32_t)0x34000010)

FIFO 1 Overrun Flag

Definition at line 517 of file stm32f10x_can.h.

#define CAN_FLAG_LEC   ((uint32_t)0x30F00070)

Last error code Flag

Definition at line 529 of file stm32f10x_can.h.

#define CAN_FLAG_RQCP0   ((uint32_t)0x38000001)

Request MailBox0 Flag

Definition at line 507 of file stm32f10x_can.h.

#define CAN_FLAG_RQCP1   ((uint32_t)0x38000100)

Request MailBox1 Flag

Definition at line 508 of file stm32f10x_can.h.

#define CAN_FLAG_RQCP2   ((uint32_t)0x38010000)

Request MailBox2 Flag

Definition at line 509 of file stm32f10x_can.h.

#define CAN_FLAG_SLAK   ((uint32_t)0x31000012)

Sleep acknowledge Flag

Definition at line 521 of file stm32f10x_can.h.

#define CAN_FLAG_WKU   ((uint32_t)0x31000008)

Wake up Flag

Definition at line 520 of file stm32f10x_can.h.

#define IS_CAN_CLEAR_FLAG (   FLAG)
Value:
(((FLAG) == CAN_FLAG_LEC) || ((FLAG) == CAN_FLAG_RQCP2) || \
                                ((FLAG) == CAN_FLAG_RQCP1)  || ((FLAG) == CAN_FLAG_RQCP0) || \
                                ((FLAG) == CAN_FLAG_FF0)  || ((FLAG) == CAN_FLAG_FOV0) ||\
                                ((FLAG) == CAN_FLAG_FF1) || ((FLAG) == CAN_FLAG_FOV1) || \
                                ((FLAG) == CAN_FLAG_WKU) || ((FLAG) == CAN_FLAG_SLAK))

Definition at line 540 of file stm32f10x_can.h.

#define IS_CAN_GET_FLAG (   FLAG)
Value:
(((FLAG) == CAN_FLAG_LEC)  || ((FLAG) == CAN_FLAG_BOF)   || \
                               ((FLAG) == CAN_FLAG_EPV)  || ((FLAG) == CAN_FLAG_EWG)   || \
                               ((FLAG) == CAN_FLAG_WKU)  || ((FLAG) == CAN_FLAG_FOV0)  || \
                               ((FLAG) == CAN_FLAG_FF0)  || ((FLAG) == CAN_FLAG_FMP0)  || \
                               ((FLAG) == CAN_FLAG_FOV1) || ((FLAG) == CAN_FLAG_FF1)   || \
                               ((FLAG) == CAN_FLAG_FMP1) || ((FLAG) == CAN_FLAG_RQCP2) || \
                               ((FLAG) == CAN_FLAG_RQCP1)|| ((FLAG) == CAN_FLAG_RQCP0) || \
                               ((FLAG) == CAN_FLAG_SLAK ))

Definition at line 531 of file stm32f10x_can.h.