Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
xmc4xxx-pinctrl.h File Reference

Go to the source code of this file.

Macros

#define XMC4XXX_PORT_POS   0
 
#define XMC4XXX_PORT_MASK   0xf
 
#define XMC4XXX_PIN_POS   4
 
#define XMC4XXX_PIN_MASK   0xf
 
#define XMC4XXX_ALT_POS   8
 
#define XMC4XXX_ALT_MASK   0xf
 
#define XMC4XXX_PULL_DOWN_POS   12
 
#define XMC4XXX_PULL_DOWN_MASK   0x1
 
#define XMC4XXX_PULL_UP_POS   13
 
#define XMC4XXX_PULL_UP_MASK   0x1
 
#define XMC4XXX_PUSH_PULL_POS   14
 
#define XMC4XXX_PUSH_PULL_MASK   0x1
 
#define XMC4XXX_OPEN_DRAIN_POS   15
 
#define XMC4XXX_OPEN_DRAIN_MASK   0x1
 
#define XMC4XXX_OUT_HIGH_POS   16
 
#define XMC4XXX_OUT_HIGH_MASK   0x1
 
#define XMC4XXX_OUT_LOW_POS   17
 
#define XMC4XXX_OUT_LOW_MASK   0x1
 
#define XMC4XXX_INV_INPUT_POS   18
 
#define XMC4XXX_INV_INPUT_MASK   0x1
 
#define XMC4XXX_DRIVE_POS   19
 
#define XMC4XXX_DRIVE_MASK   0x7
 
#define XMC4XXX_HWCTRL_POS   22
 
#define XMC4XXX_HWCTRL_MASK   0x3
 
#define XMC4XXX_PINMUX_SET(port, pin, alt_fun)
 
#define XMC4XXX_PINMUX_GET_PORT(mx)
 
#define XMC4XXX_PINMUX_GET_PIN(mx)
 
#define XMC4XXX_PINMUX_GET_ALT(mx)
 
#define XMC4XXX_PINMUX_GET_PULL_DOWN(mx)
 
#define XMC4XXX_PINMUX_GET_PULL_UP(mx)
 
#define XMC4XXX_PINMUX_GET_PUSH_PULL(mx)
 
#define XMC4XXX_PINMUX_GET_OPEN_DRAIN(mx)
 
#define XMC4XXX_PINMUX_GET_OUT_HIGH(mx)
 
#define XMC4XXX_PINMUX_GET_OUT_LOW(mx)
 
#define XMC4XXX_PINMUX_GET_INV_INPUT(mx)
 
#define XMC4XXX_PINMUX_GET_DRIVE(mx)
 
#define XMC4XXX_PINMUX_GET_HWCTRL(mx)
 

Macro Definition Documentation

◆ XMC4XXX_ALT_MASK

#define XMC4XXX_ALT_MASK   0xf

◆ XMC4XXX_ALT_POS

#define XMC4XXX_ALT_POS   8

◆ XMC4XXX_DRIVE_MASK

#define XMC4XXX_DRIVE_MASK   0x7

◆ XMC4XXX_DRIVE_POS

#define XMC4XXX_DRIVE_POS   19

◆ XMC4XXX_HWCTRL_MASK

#define XMC4XXX_HWCTRL_MASK   0x3

◆ XMC4XXX_HWCTRL_POS

#define XMC4XXX_HWCTRL_POS   22

◆ XMC4XXX_INV_INPUT_MASK

#define XMC4XXX_INV_INPUT_MASK   0x1

◆ XMC4XXX_INV_INPUT_POS

#define XMC4XXX_INV_INPUT_POS   18

◆ XMC4XXX_OPEN_DRAIN_MASK

#define XMC4XXX_OPEN_DRAIN_MASK   0x1

◆ XMC4XXX_OPEN_DRAIN_POS

#define XMC4XXX_OPEN_DRAIN_POS   15

◆ XMC4XXX_OUT_HIGH_MASK

#define XMC4XXX_OUT_HIGH_MASK   0x1

◆ XMC4XXX_OUT_HIGH_POS

#define XMC4XXX_OUT_HIGH_POS   16

◆ XMC4XXX_OUT_LOW_MASK

#define XMC4XXX_OUT_LOW_MASK   0x1

◆ XMC4XXX_OUT_LOW_POS

#define XMC4XXX_OUT_LOW_POS   17

◆ XMC4XXX_PIN_MASK

#define XMC4XXX_PIN_MASK   0xf

◆ XMC4XXX_PIN_POS

#define XMC4XXX_PIN_POS   4

◆ XMC4XXX_PINMUX_GET_ALT

#define XMC4XXX_PINMUX_GET_ALT ( mx)
Value:
#define XMC4XXX_ALT_POS
Definition xmc4xxx-pinctrl.h:18
#define XMC4XXX_ALT_MASK
Definition xmc4xxx-pinctrl.h:19

◆ XMC4XXX_PINMUX_GET_DRIVE

#define XMC4XXX_PINMUX_GET_DRIVE ( mx)
Value:
#define XMC4XXX_DRIVE_MASK
Definition xmc4xxx-pinctrl.h:43
#define XMC4XXX_DRIVE_POS
Definition xmc4xxx-pinctrl.h:42

◆ XMC4XXX_PINMUX_GET_HWCTRL

#define XMC4XXX_PINMUX_GET_HWCTRL ( mx)
Value:
#define XMC4XXX_HWCTRL_MASK
Definition xmc4xxx-pinctrl.h:46
#define XMC4XXX_HWCTRL_POS
Definition xmc4xxx-pinctrl.h:45

◆ XMC4XXX_PINMUX_GET_INV_INPUT

#define XMC4XXX_PINMUX_GET_INV_INPUT ( mx)
Value:
#define XMC4XXX_INV_INPUT_POS
Definition xmc4xxx-pinctrl.h:39
#define XMC4XXX_INV_INPUT_MASK
Definition xmc4xxx-pinctrl.h:40

◆ XMC4XXX_PINMUX_GET_OPEN_DRAIN

#define XMC4XXX_PINMUX_GET_OPEN_DRAIN ( mx)
Value:
#define XMC4XXX_OPEN_DRAIN_MASK
Definition xmc4xxx-pinctrl.h:31
#define XMC4XXX_OPEN_DRAIN_POS
Definition xmc4xxx-pinctrl.h:30

◆ XMC4XXX_PINMUX_GET_OUT_HIGH

#define XMC4XXX_PINMUX_GET_OUT_HIGH ( mx)
Value:
#define XMC4XXX_OUT_HIGH_MASK
Definition xmc4xxx-pinctrl.h:34
#define XMC4XXX_OUT_HIGH_POS
Definition xmc4xxx-pinctrl.h:33

◆ XMC4XXX_PINMUX_GET_OUT_LOW

#define XMC4XXX_PINMUX_GET_OUT_LOW ( mx)
Value:
#define XMC4XXX_OUT_LOW_POS
Definition xmc4xxx-pinctrl.h:36
#define XMC4XXX_OUT_LOW_MASK
Definition xmc4xxx-pinctrl.h:37

◆ XMC4XXX_PINMUX_GET_PIN

#define XMC4XXX_PINMUX_GET_PIN ( mx)
Value:
#define XMC4XXX_PIN_POS
Definition xmc4xxx-pinctrl.h:15
#define XMC4XXX_PIN_MASK
Definition xmc4xxx-pinctrl.h:16

◆ XMC4XXX_PINMUX_GET_PORT

#define XMC4XXX_PINMUX_GET_PORT ( mx)
Value:
#define XMC4XXX_PORT_MASK
Definition xmc4xxx-pinctrl.h:13
#define XMC4XXX_PORT_POS
Definition xmc4xxx-pinctrl.h:12

◆ XMC4XXX_PINMUX_GET_PULL_DOWN

#define XMC4XXX_PINMUX_GET_PULL_DOWN ( mx)
Value:
#define XMC4XXX_PULL_DOWN_MASK
Definition xmc4xxx-pinctrl.h:22
#define XMC4XXX_PULL_DOWN_POS
Definition xmc4xxx-pinctrl.h:21

◆ XMC4XXX_PINMUX_GET_PULL_UP

#define XMC4XXX_PINMUX_GET_PULL_UP ( mx)
Value:
#define XMC4XXX_PULL_UP_POS
Definition xmc4xxx-pinctrl.h:24
#define XMC4XXX_PULL_UP_MASK
Definition xmc4xxx-pinctrl.h:25

◆ XMC4XXX_PINMUX_GET_PUSH_PULL

#define XMC4XXX_PINMUX_GET_PUSH_PULL ( mx)
Value:
#define XMC4XXX_PUSH_PULL_MASK
Definition xmc4xxx-pinctrl.h:28
#define XMC4XXX_PUSH_PULL_POS
Definition xmc4xxx-pinctrl.h:27

◆ XMC4XXX_PINMUX_SET

#define XMC4XXX_PINMUX_SET ( port,
pin,
alt_fun )
Value:
((port) << XMC4XXX_PORT_POS | (pin) << XMC4XXX_PIN_POS | (alt_fun) << XMC4XXX_ALT_POS)

◆ XMC4XXX_PORT_MASK

#define XMC4XXX_PORT_MASK   0xf

◆ XMC4XXX_PORT_POS

#define XMC4XXX_PORT_POS   0

◆ XMC4XXX_PULL_DOWN_MASK

#define XMC4XXX_PULL_DOWN_MASK   0x1

◆ XMC4XXX_PULL_DOWN_POS

#define XMC4XXX_PULL_DOWN_POS   12

◆ XMC4XXX_PULL_UP_MASK

#define XMC4XXX_PULL_UP_MASK   0x1

◆ XMC4XXX_PULL_UP_POS

#define XMC4XXX_PULL_UP_POS   13

◆ XMC4XXX_PUSH_PULL_MASK

#define XMC4XXX_PUSH_PULL_MASK   0x1

◆ XMC4XXX_PUSH_PULL_POS

#define XMC4XXX_PUSH_PULL_POS   14