Zephyr API 3.6.99
Loading...
Searching...
No Matches
nPM6001-specific GPIO Flags

nPM6001-specific GPIO Flags More...

nPM6001 GPIO drive strength flags

nPM6001 GPIO drive strength flags

#define NPM6001_GPIO_DRIVE_NORMAL   (0U << 8U)
 Normal drive.
 
#define NPM6001_GPIO_DRIVE_HIGH   (1U << 8U)
 High drive.
 
#define NPM6001_GPIO_SENSE_SCHMITT   (0U << 9U)
 Schmitt trigger input type.
 
#define NPM6001_GPIO_SENSE_CMOS   (1U << 9U)
 CMOS input type.
 

Detailed Description

nPM6001-specific GPIO Flags

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

Macro Definition Documentation

◆ NPM6001_GPIO_DRIVE_HIGH

#define NPM6001_GPIO_DRIVE_HIGH   (1U << 8U)

◆ NPM6001_GPIO_DRIVE_NORMAL

#define NPM6001_GPIO_DRIVE_NORMAL   (0U << 8U)

◆ NPM6001_GPIO_SENSE_CMOS

#define NPM6001_GPIO_SENSE_CMOS   (1U << 9U)

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

CMOS input type.

◆ NPM6001_GPIO_SENSE_SCHMITT

#define NPM6001_GPIO_SENSE_SCHMITT   (0U << 9U)

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

Schmitt trigger input type.