Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bee-pinctrl.h File Reference

Realtek BEE Pinctrl Devicetree Bindings. More...

Go to the source code of this file.

Macros

#define BEE_FUN_POS   16U
 Position of the function field.
#define BEE_FUN_MSK   0xFFFFU
 Mask for the function field.
#define BEE_PIN_POS   0U
 Position of the pin field.
#define BEE_PIN_MSK   0x7FFU
 Mask for the pin field.
#define BEE_PSEL(fun, pin)
 Utility macro to construct a pinctrl configuration field.
#define BEE_PSEL_DISCONNECTED(fun)
 Utility macro to configure a function without a physical pin connection.

Detailed Description

Realtek BEE Pinctrl Devicetree Bindings.

Macro Definition Documentation

◆ BEE_FUN_MSK

#define BEE_FUN_MSK   0xFFFFU

Mask for the function field.

◆ BEE_FUN_POS

#define BEE_FUN_POS   16U

Position of the function field.

◆ BEE_PIN_MSK

#define BEE_PIN_MSK   0x7FFU

Mask for the pin field.

◆ BEE_PIN_POS

#define BEE_PIN_POS   0U

Position of the pin field.

◆ BEE_PSEL

#define BEE_PSEL ( fun,
pin )
Value:
(((((pin) & BEE_PIN_MSK) << BEE_PIN_POS) | (((BEE_##fun) & BEE_FUN_MSK) << BEE_FUN_POS)))
#define BEE_PIN_POS
Position of the pin field.
Definition bee-pinctrl.h:20
#define BEE_PIN_MSK
Mask for the pin field.
Definition bee-pinctrl.h:22
#define BEE_FUN_POS
Position of the function field.
Definition bee-pinctrl.h:16
#define BEE_FUN_MSK
Mask for the function field.
Definition bee-pinctrl.h:18

Utility macro to construct a pinctrl configuration field.

This macro generates the encoded value required by the pinctrl driver to configure a specific pin function.

Parameters
funPin function name (without the BEE_ prefix). The macro automatically prepends BEE_ to this argument.
pinPad number/ID.

◆ BEE_PSEL_DISCONNECTED

#define BEE_PSEL_DISCONNECTED ( fun)
Value:
#define BEE_PIN_DISCONNECTED
PIN_DISCONNECTED pinmux function.
Definition rtl87x2g-pinctrl.h:222

Utility macro to configure a function without a physical pin connection.

Parameters
funPin function name (without the BEE_ prefix). The macro automatically prepends BEE_ to this argument.