Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
nPM10xx-specific GPIO Flags

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

nPM10xx GPIO drive strength flags

#define NPM10XX_GPIO_DRIVE_NORMAL   (0U << 8U)
 Normal (2mA) drive.
#define NPM10XX_GPIO_DRIVE_HIGH   (1U << 8U)
 High (4mA) drive.

nPM10xx GPIO debounce flags

#define NPM10XX_GPIO_DEBOUNCE_OFF   (0U << 9U)
 Debounce off.
#define NPM10XX_GPIO_DEBOUNCE_ON   (1U << 9U)
 Debounce on.

Detailed Description

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

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

Macro Definition Documentation

◆ NPM10XX_GPIO_DEBOUNCE_OFF

#define NPM10XX_GPIO_DEBOUNCE_OFF   (0U << 9U)

◆ NPM10XX_GPIO_DEBOUNCE_ON

#define NPM10XX_GPIO_DEBOUNCE_ON   (1U << 9U)

◆ NPM10XX_GPIO_DRIVE_HIGH

#define NPM10XX_GPIO_DRIVE_HIGH   (1U << 8U)

#include <zephyr/dt-bindings/gpio/nordic-npm10xx-gpio.h>

High (4mA) drive.

◆ NPM10XX_GPIO_DRIVE_NORMAL

#define NPM10XX_GPIO_DRIVE_NORMAL   (0U << 8U)

#include <zephyr/dt-bindings/gpio/nordic-npm10xx-gpio.h>

Normal (2mA) drive.