Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
infineon-xmc4xxx-intc.h File Reference

Go to the source code of this file.

Macros

#define XMC4XXX_INTC_PORT_POS   0
 
#define XMC4XXX_INTC_PORT_MASK   0xf
 
#define XMC4XXX_INTC_PIN_POS   4
 
#define XMC4XXX_INTC_PIN_MASK   0xf
 
#define XMC4XXX_INTC_LINE_POS   8
 
#define XMC4XXX_INTC_LINE_MASK   0x7
 
#define XMC4XXX_INTC_ERU_SRC_POS   11
 
#define XMC4XXX_INTC_ERU_SRC_MASK   0x7
 
#define XMC4XXX_INTC_GET_PORT(mx)   ((mx >> XMC4XXX_INTC_PORT_POS) & XMC4XXX_INTC_PORT_MASK)
 
#define XMC4XXX_INTC_GET_PIN(mx)   ((mx >> XMC4XXX_INTC_PIN_POS) & XMC4XXX_INTC_PIN_MASK)
 
#define XMC4XXX_INTC_GET_LINE(mx)   ((mx >> XMC4XXX_INTC_LINE_POS) & XMC4XXX_INTC_LINE_MASK)
 
#define XMC4XXX_INTC_GET_ERU_SRC(mx)   ((mx >> XMC4XXX_INTC_ERU_SRC_POS) & XMC4XXX_INTC_ERU_SRC_MASK)
 
#define XMC4XXX_INTC_SET_LINE_MAP(port, pin, eru_src, line)
 

Macro Definition Documentation

◆ XMC4XXX_INTC_ERU_SRC_MASK

#define XMC4XXX_INTC_ERU_SRC_MASK   0x7

◆ XMC4XXX_INTC_ERU_SRC_POS

#define XMC4XXX_INTC_ERU_SRC_POS   11

◆ XMC4XXX_INTC_GET_ERU_SRC

#define XMC4XXX_INTC_GET_ERU_SRC (   mx)    ((mx >> XMC4XXX_INTC_ERU_SRC_POS) & XMC4XXX_INTC_ERU_SRC_MASK)

◆ XMC4XXX_INTC_GET_LINE

#define XMC4XXX_INTC_GET_LINE (   mx)    ((mx >> XMC4XXX_INTC_LINE_POS) & XMC4XXX_INTC_LINE_MASK)

◆ XMC4XXX_INTC_GET_PIN

#define XMC4XXX_INTC_GET_PIN (   mx)    ((mx >> XMC4XXX_INTC_PIN_POS) & XMC4XXX_INTC_PIN_MASK)

◆ XMC4XXX_INTC_GET_PORT

#define XMC4XXX_INTC_GET_PORT (   mx)    ((mx >> XMC4XXX_INTC_PORT_POS) & XMC4XXX_INTC_PORT_MASK)

◆ XMC4XXX_INTC_LINE_MASK

#define XMC4XXX_INTC_LINE_MASK   0x7

◆ XMC4XXX_INTC_LINE_POS

#define XMC4XXX_INTC_LINE_POS   8

◆ XMC4XXX_INTC_PIN_MASK

#define XMC4XXX_INTC_PIN_MASK   0xf

◆ XMC4XXX_INTC_PIN_POS

#define XMC4XXX_INTC_PIN_POS   4

◆ XMC4XXX_INTC_PORT_MASK

#define XMC4XXX_INTC_PORT_MASK   0xf

◆ XMC4XXX_INTC_PORT_POS

#define XMC4XXX_INTC_PORT_POS   0

◆ XMC4XXX_INTC_SET_LINE_MAP

#define XMC4XXX_INTC_SET_LINE_MAP (   port,
  pin,
  eru_src,
  line 
)
Value:
((port) << XMC4XXX_INTC_PORT_POS | (pin) << XMC4XXX_INTC_PIN_POS | \
#define XMC4XXX_INTC_ERU_SRC_POS
Definition: infineon-xmc4xxx-intc.h:19
#define XMC4XXX_INTC_LINE_POS
Definition: infineon-xmc4xxx-intc.h:16
#define XMC4XXX_INTC_PIN_POS
Definition: infineon-xmc4xxx-intc.h:13
#define XMC4XXX_INTC_PORT_POS
Definition: infineon-xmc4xxx-intc.h:10