Macros
Collaboration diagram for CAN Private Macros:

Macros

#define IS_CAN_BANKNUMBER(BANKNUMBER)   ((BANKNUMBER) <= 28U)
 
#define IS_CAN_BS1(BS1)   ((BS1) <= CAN_BS1_16TQ)
 
#define IS_CAN_BS2(BS2)   ((BS2) <= CAN_BS2_8TQ)
 
#define IS_CAN_DLC(DLC)   ((DLC) <= ((uint8_t)0x08))
 
#define IS_CAN_EXTID(EXTID)   ((EXTID) <= 0x1FFFFFFFU)
 
#define IS_CAN_FIFO(FIFO)   (((FIFO) == CAN_FIFO0) || ((FIFO) == CAN_FIFO1))
 
#define IS_CAN_FILTER_FIFO(FIFO)
 
#define IS_CAN_FILTER_MODE(MODE)
 
#define IS_CAN_FILTER_NUMBER(NUMBER)   ((NUMBER) <= 27U)
 
#define IS_CAN_FILTER_SCALE(SCALE)
 
#define IS_CAN_IDTYPE(IDTYPE)
 
#define IS_CAN_MODE(MODE)
 
#define IS_CAN_PRESCALER(PRESCALER)   (((PRESCALER) >= 1U) && ((PRESCALER) <= 1024U))
 
#define IS_CAN_RTR(RTR)   (((RTR) == CAN_RTR_DATA) || ((RTR) == CAN_RTR_REMOTE))
 
#define IS_CAN_SJW(SJW)
 
#define IS_CAN_STDID(STDID)   ((STDID) <= 0x7FFU)
 
#define IS_CAN_TRANSMITMAILBOX(TRANSMITMAILBOX)   ((TRANSMITMAILBOX) <= ((uint8_t)0x02))
 

Detailed Description

Macro Definition Documentation

◆ IS_CAN_BANKNUMBER

#define IS_CAN_BANKNUMBER (   BANKNUMBER)    ((BANKNUMBER) <= 28U)

Definition at line 736 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_BS1

#define IS_CAN_BS1 (   BS1)    ((BS1) <= CAN_BS1_16TQ)

Definition at line 726 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_BS2

#define IS_CAN_BS2 (   BS2)    ((BS2) <= CAN_BS2_8TQ)

Definition at line 727 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_DLC

#define IS_CAN_DLC (   DLC)    ((DLC) <= ((uint8_t)0x08))

Definition at line 741 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_EXTID

#define IS_CAN_EXTID (   EXTID)    ((EXTID) <= 0x1FFFFFFFU)

Definition at line 740 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_FIFO

#define IS_CAN_FIFO (   FIFO)    (((FIFO) == CAN_FIFO0) || ((FIFO) == CAN_FIFO1))

Definition at line 746 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_FILTER_FIFO

#define IS_CAN_FILTER_FIFO (   FIFO)
Value:
(((FIFO) == CAN_FILTER_FIFO0) || \
((FIFO) == CAN_FILTER_FIFO1))

Definition at line 734 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_FILTER_MODE

#define IS_CAN_FILTER_MODE (   MODE)
Value:
(((MODE) == CAN_FILTERMODE_IDMASK) || \
((MODE) == CAN_FILTERMODE_IDLIST))

Definition at line 730 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_FILTER_NUMBER

#define IS_CAN_FILTER_NUMBER (   NUMBER)    ((NUMBER) <= 27U)

Definition at line 729 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_FILTER_SCALE

#define IS_CAN_FILTER_SCALE (   SCALE)
Value:
(((SCALE) == CAN_FILTERSCALE_16BIT) || \
((SCALE) == CAN_FILTERSCALE_32BIT))

Definition at line 732 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_IDTYPE

#define IS_CAN_IDTYPE (   IDTYPE)
Value:
(((IDTYPE) == CAN_ID_STD) || \
((IDTYPE) == CAN_ID_EXT))

Definition at line 743 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_MODE

#define IS_CAN_MODE (   MODE)
Value:
(((MODE) == CAN_MODE_NORMAL) || \
((MODE) == CAN_MODE_LOOPBACK)|| \
((MODE) == CAN_MODE_SILENT) || \

Definition at line 720 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_PRESCALER

#define IS_CAN_PRESCALER (   PRESCALER)    (((PRESCALER) >= 1U) && ((PRESCALER) <= 1024U))

Definition at line 728 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_RTR

#define IS_CAN_RTR (   RTR)    (((RTR) == CAN_RTR_DATA) || ((RTR) == CAN_RTR_REMOTE))

Definition at line 745 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_SJW

#define IS_CAN_SJW (   SJW)
Value:
(((SJW) == CAN_SJW_1TQ) || ((SJW) == CAN_SJW_2TQ)|| \
((SJW) == CAN_SJW_3TQ) || ((SJW) == CAN_SJW_4TQ))

Definition at line 724 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_STDID

#define IS_CAN_STDID (   STDID)    ((STDID) <= 0x7FFU)

Definition at line 739 of file stm32f7xx_hal_can_legacy.h.

◆ IS_CAN_TRANSMITMAILBOX

#define IS_CAN_TRANSMITMAILBOX (   TRANSMITMAILBOX)    ((TRANSMITMAILBOX) <= ((uint8_t)0x02))

Definition at line 738 of file stm32f7xx_hal_can_legacy.h.

CAN_FILTER_FIFO0
#define CAN_FILTER_FIFO0
Definition: stm32f7xx_hal_can_legacy.h:362
CAN_FILTERMODE_IDLIST
#define CAN_FILTERMODE_IDLIST
Definition: stm32f7xx_hal_can_legacy.h:345
CAN_MODE_SILENT_LOOPBACK
#define CAN_MODE_SILENT_LOOPBACK
Definition: stm32f7xx_hal_can_legacy.h:287
CAN_MODE_LOOPBACK
#define CAN_MODE_LOOPBACK
Definition: stm32f7xx_hal_can_legacy.h:285
CAN_MODE_NORMAL
#define CAN_MODE_NORMAL
Definition: stm32f7xx_hal_can_legacy.h:284
CAN_SJW_2TQ
#define CAN_SJW_2TQ
Definition: stm32f7xx_hal_can_legacy.h:296
CAN_FILTERSCALE_16BIT
#define CAN_FILTERSCALE_16BIT
Definition: stm32f7xx_hal_can_legacy.h:353
CAN_SJW_1TQ
#define CAN_SJW_1TQ
Definition: stm32f7xx_hal_can_legacy.h:295
CAN_FILTER_FIFO1
#define CAN_FILTER_FIFO1
Definition: stm32f7xx_hal_can_legacy.h:363
CAN_ID_EXT
#define CAN_ID_EXT
Definition: stm32f7xx_hal_can_legacy.h:372
CAN_SJW_4TQ
#define CAN_SJW_4TQ
Definition: stm32f7xx_hal_can_legacy.h:298
CAN_FILTERSCALE_32BIT
#define CAN_FILTERSCALE_32BIT
Definition: stm32f7xx_hal_can_legacy.h:354
CAN_ID_STD
#define CAN_ID_STD
Definition: stm32f7xx_hal_can_legacy.h:371
CAN_SJW_3TQ
#define CAN_SJW_3TQ
Definition: stm32f7xx_hal_can_legacy.h:297
CAN_MODE_SILENT
#define CAN_MODE_SILENT
Definition: stm32f7xx_hal_can_legacy.h:286
CAN_FILTERMODE_IDMASK
#define CAN_FILTERMODE_IDMASK
Definition: stm32f7xx_hal_can_legacy.h:344


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:08