Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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:

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)