CARME-M4 BSP  V1.5
+ Collaboration diagram for CAN_flags:

Macros

#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)
 

Detailed Description

Macro Definition Documentation

#define CAN_FLAG_BOF   ((uint32_t)0x10F00004)

Bus-Off Flag

Definition at line 516 of file stm32f4xx_can.h.

#define CAN_FLAG_EPV   ((uint32_t)0x10F00002)

Error Passive Flag

Definition at line 515 of file stm32f4xx_can.h.

#define CAN_FLAG_EWG   ((uint32_t)0x10F00001)

Error Warning Flag

Definition at line 514 of file stm32f4xx_can.h.

#define CAN_FLAG_FF0   ((uint32_t)0x32000008)

FIFO 0 Full Flag

Definition at line 501 of file stm32f4xx_can.h.

#define CAN_FLAG_FF1   ((uint32_t)0x34000008)

FIFO 1 Full Flag

Definition at line 504 of file stm32f4xx_can.h.

#define CAN_FLAG_FMP0   ((uint32_t)0x12000003)

FIFO 0 Message Pending Flag

Definition at line 500 of file stm32f4xx_can.h.

#define CAN_FLAG_FMP1   ((uint32_t)0x14000003)

FIFO 1 Message Pending Flag

Definition at line 503 of file stm32f4xx_can.h.

#define CAN_FLAG_FOV0   ((uint32_t)0x32000010)

FIFO 0 Overrun Flag

Definition at line 502 of file stm32f4xx_can.h.

#define CAN_FLAG_FOV1   ((uint32_t)0x34000010)

FIFO 1 Overrun Flag

Definition at line 505 of file stm32f4xx_can.h.

#define CAN_FLAG_LEC   ((uint32_t)0x30F00070)

Last error code Flag

Definition at line 517 of file stm32f4xx_can.h.

#define CAN_FLAG_RQCP0   ((uint32_t)0x38000001)

Request MailBox0 Flag

Definition at line 495 of file stm32f4xx_can.h.

#define CAN_FLAG_RQCP1   ((uint32_t)0x38000100)

Request MailBox1 Flag

Definition at line 496 of file stm32f4xx_can.h.

#define CAN_FLAG_RQCP2   ((uint32_t)0x38010000)

Request MailBox2 Flag

Definition at line 497 of file stm32f4xx_can.h.

#define CAN_FLAG_SLAK   ((uint32_t)0x31000012)

Sleep acknowledge Flag

Definition at line 509 of file stm32f4xx_can.h.

#define CAN_FLAG_WKU   ((uint32_t)0x31000008)

Wake up Flag

Definition at line 508 of file stm32f4xx_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))
#define CAN_FLAG_WKU
#define CAN_FLAG_FOV0
#define CAN_FLAG_LEC
#define CAN_FLAG_SLAK
#define CAN_FLAG_FF0
#define CAN_FLAG_FOV1
#define CAN_FLAG_FF1
#define CAN_FLAG_RQCP2
#define CAN_FLAG_RQCP1
#define CAN_FLAG_RQCP0

Definition at line 528 of file stm32f4xx_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 ))
#define CAN_FLAG_FMP0
#define CAN_FLAG_WKU
#define CAN_FLAG_FOV0
#define CAN_FLAG_FMP1
#define CAN_FLAG_EWG
#define CAN_FLAG_EPV
#define CAN_FLAG_LEC
#define CAN_FLAG_BOF
#define CAN_FLAG_SLAK
#define CAN_FLAG_FF0
#define CAN_FLAG_FOV1
#define CAN_FLAG_FF1
#define CAN_FLAG_RQCP2
#define CAN_FLAG_RQCP1
#define CAN_FLAG_RQCP0

Definition at line 519 of file stm32f4xx_can.h.