Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
 4.2.99
nPM2100-specific GPIO Flags

nPM2100-specific GPIO Flags More...

nPM2100 GPIO drive strength flags

nPM2100 GPIO drive strength flags

#define NPM2100_GPIO_DRIVE_NORMAL   (0U << 8U)
 Normal drive.
#define NPM2100_GPIO_DRIVE_HIGH   (1U << 8U)
 High drive.

nPM2100 GPIO debounce flags

nPM2100 GPIO debounce flags

#define NPM2100_GPIO_DEBOUNCE_OFF   (0U << 9U)
 Normal drive.
#define NPM2100_GPIO_DEBOUNCE_ON   (1U << 9U)
 High drive.

Detailed Description

nPM2100-specific GPIO Flags

The drive flags are encoded in the 8 upper bits of gpio_dt_flags_t as follows:

  • Bit 8: Drive strength (0=1mA, 1=6mA)
  • Bit 9: Debounce (0=OFF, 1=ON)

Macro Definition Documentation

◆ NPM2100_GPIO_DEBOUNCE_OFF

#define NPM2100_GPIO_DEBOUNCE_OFF   (0U << 9U)

◆ NPM2100_GPIO_DEBOUNCE_ON

#define NPM2100_GPIO_DEBOUNCE_ON   (1U << 9U)

◆ NPM2100_GPIO_DRIVE_HIGH

#define NPM2100_GPIO_DRIVE_HIGH   (1U << 8U)

◆ NPM2100_GPIO_DRIVE_NORMAL

#define NPM2100_GPIO_DRIVE_NORMAL   (0U << 8U)