Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
silabs-pinctrl-dbus.h File Reference

Go to the source code of this file.

Macros

#define SILABS_PINCTRL_GPIO_PORT_MASK   0x0000000FUL
 
#define SILABS_PINCTRL_GPIO_PIN_MASK   0x000000F0UL
 
#define SILABS_PINCTRL_PERIPH_BASE_MASK   0x0003FF00UL
 
#define SILABS_PINCTRL_HAVE_EN_MASK   0x00040000UL
 
#define SILABS_PINCTRL_EN_BIT_MASK   0x00F80000UL
 
#define SILABS_PINCTRL_ROUTE_MASK   0x1F000000UL
 
#define SILABS_DBUS(port, pin, periph_base, en_present, en_bit, route)
 

Macro Definition Documentation

◆ SILABS_DBUS

#define SILABS_DBUS ( port,
pin,
periph_base,
en_present,
en_bit,
route )
Value:
FIELD_PREP(SILABS_PINCTRL_GPIO_PIN_MASK, pin) | \
FIELD_PREP(SILABS_PINCTRL_PERIPH_BASE_MASK, periph_base) | \
FIELD_PREP(SILABS_PINCTRL_HAVE_EN_MASK, en_present) | \
FIELD_PREP(SILABS_PINCTRL_EN_BIT_MASK, en_bit) | \
FIELD_PREP(SILABS_PINCTRL_ROUTE_MASK, route))
#define FIELD_PREP(mask, value)
Prepare a bitfield element using value with mask representing its field position and width.
Definition util_macro.h:110
#define SILABS_PINCTRL_HAVE_EN_MASK
Definition silabs-pinctrl-dbus.h:28
#define SILABS_PINCTRL_GPIO_PIN_MASK
Definition silabs-pinctrl-dbus.h:26
#define SILABS_PINCTRL_EN_BIT_MASK
Definition silabs-pinctrl-dbus.h:29
#define SILABS_PINCTRL_ROUTE_MASK
Definition silabs-pinctrl-dbus.h:30
#define SILABS_PINCTRL_PERIPH_BASE_MASK
Definition silabs-pinctrl-dbus.h:27
#define SILABS_PINCTRL_GPIO_PORT_MASK
Definition silabs-pinctrl-dbus.h:25

◆ SILABS_PINCTRL_EN_BIT_MASK

#define SILABS_PINCTRL_EN_BIT_MASK   0x00F80000UL

◆ SILABS_PINCTRL_GPIO_PIN_MASK

#define SILABS_PINCTRL_GPIO_PIN_MASK   0x000000F0UL

◆ SILABS_PINCTRL_GPIO_PORT_MASK

#define SILABS_PINCTRL_GPIO_PORT_MASK   0x0000000FUL

◆ SILABS_PINCTRL_HAVE_EN_MASK

#define SILABS_PINCTRL_HAVE_EN_MASK   0x00040000UL

◆ SILABS_PINCTRL_PERIPH_BASE_MASK

#define SILABS_PINCTRL_PERIPH_BASE_MASK   0x0003FF00UL

◆ SILABS_PINCTRL_ROUTE_MASK

#define SILABS_PINCTRL_ROUTE_MASK   0x1F000000UL