Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
realtek-gpio.h File Reference

Go to the source code of this file.

Macros

#define RTS5912_GPIO_INDETEN   BIT(8)
 Enable input detect.
 
#define RTS5912_GPIO_OUTDRV   BIT(9)
 Set pin driving current.
 
#define RTS5912_GPIO_SLEWRATE   BIT(10)
 Set GPIO slew rate.
 
#define RTS5912_GPIO_SCHEN   BIT(11)
 Enable Schmitt-trigger.
 
#define RTS5912_GPIO_VOLTAGE_POS   12
 
#define RTS5912_GPIO_VOLTAGE_MASK   GENMASK(13, 12)
 
#define RTS5912_GPIO_VOLTAGE_DEFAULT   (0U << RTS5912_GPIO_VOLTAGE_POS)
 Set pin at the default voltage level.
 
#define RTS5912_GPIO_VOLTAGE_1V8   (1U << RTS5912_GPIO_VOLTAGE_POS)
 Set pin voltage level at 1.8 V.
 
#define RTS5912_GPIO_VOLTAGE_3V3   (2U << RTS5912_GPIO_VOLTAGE_POS)
 Set pin voltage level at 3.3 V.
 
#define RTS5912_GPIO_VOLTAGE_5V0   (3U << RTS5912_GPIO_VOLTAGE_POS)
 Set pin voltage level at 5.0 V.
 
#define RTS5912_GPIO_MFCTRL_POS   14
 Multi function.
 
#define RTS5912_GPIO_MFCTRL_MASK   GENMASK(15, 14)
 
#define RTS5912_GPIO_MFCTRL_0   (0U << RTS5912_GPIO_MFCTRL_POS)
 0x00:Function 0 0x01: Function 1 0x02: Function 2 0x03: Function 3
 
#define RTS5912_GPIO_MFCTRL_1   (1U << RTS5912_GPIO_MFCTRL_POS)
 
#define RTS5912_GPIO_MFCTRL_2   (2U << RTS5912_GPIO_MFCTRL_POS)
 
#define RTS5912_GPIO_MFCTRL_3   (3U << RTS5912_GPIO_MFCTRL_POS)
 
#define RTS5912_GPIO_INTR_MASK   (1U << 21 | 1U << 22 | 1U << 24 | 1U << 25 | 1U << 26)
 Interrupt Mask since rts5912 does not support GPIO_INT_LEVELS_LOGICAL.
 

Macro Definition Documentation

◆ RTS5912_GPIO_INDETEN

#define RTS5912_GPIO_INDETEN   BIT(8)

Enable input detect.

◆ RTS5912_GPIO_INTR_MASK

#define RTS5912_GPIO_INTR_MASK   (1U << 21 | 1U << 22 | 1U << 24 | 1U << 25 | 1U << 26)

Interrupt Mask since rts5912 does not support GPIO_INT_LEVELS_LOGICAL.

◆ RTS5912_GPIO_MFCTRL_0

#define RTS5912_GPIO_MFCTRL_0   (0U << RTS5912_GPIO_MFCTRL_POS)

0x00:Function 0 0x01: Function 1 0x02: Function 2 0x03: Function 3

◆ RTS5912_GPIO_MFCTRL_1

#define RTS5912_GPIO_MFCTRL_1   (1U << RTS5912_GPIO_MFCTRL_POS)

◆ RTS5912_GPIO_MFCTRL_2

#define RTS5912_GPIO_MFCTRL_2   (2U << RTS5912_GPIO_MFCTRL_POS)

◆ RTS5912_GPIO_MFCTRL_3

#define RTS5912_GPIO_MFCTRL_3   (3U << RTS5912_GPIO_MFCTRL_POS)

◆ RTS5912_GPIO_MFCTRL_MASK

#define RTS5912_GPIO_MFCTRL_MASK   GENMASK(15, 14)

◆ RTS5912_GPIO_MFCTRL_POS

#define RTS5912_GPIO_MFCTRL_POS   14

Multi function.

◆ RTS5912_GPIO_OUTDRV

#define RTS5912_GPIO_OUTDRV   BIT(9)

Set pin driving current.

◆ RTS5912_GPIO_SCHEN

#define RTS5912_GPIO_SCHEN   BIT(11)

Enable Schmitt-trigger.

◆ RTS5912_GPIO_SLEWRATE

#define RTS5912_GPIO_SLEWRATE   BIT(10)

Set GPIO slew rate.

◆ RTS5912_GPIO_VOLTAGE_1V8

#define RTS5912_GPIO_VOLTAGE_1V8   (1U << RTS5912_GPIO_VOLTAGE_POS)

Set pin voltage level at 1.8 V.

◆ RTS5912_GPIO_VOLTAGE_3V3

#define RTS5912_GPIO_VOLTAGE_3V3   (2U << RTS5912_GPIO_VOLTAGE_POS)

Set pin voltage level at 3.3 V.

◆ RTS5912_GPIO_VOLTAGE_5V0

#define RTS5912_GPIO_VOLTAGE_5V0   (3U << RTS5912_GPIO_VOLTAGE_POS)

Set pin voltage level at 5.0 V.

◆ RTS5912_GPIO_VOLTAGE_DEFAULT

#define RTS5912_GPIO_VOLTAGE_DEFAULT   (0U << RTS5912_GPIO_VOLTAGE_POS)

Set pin at the default voltage level.

◆ RTS5912_GPIO_VOLTAGE_MASK

#define RTS5912_GPIO_VOLTAGE_MASK   GENMASK(13, 12)

◆ RTS5912_GPIO_VOLTAGE_POS

#define RTS5912_GPIO_VOLTAGE_POS   12