Zephyr API Documentation  3.4.0
A Scalable Open Source RTOS
3.4.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nPM1300-specific GPIO Flags

nPM1300-specific GPIO Flags More...

nPM1300 GPIO drive strength flags

nPM1300 GPIO drive strength flags

#define NPM1300_GPIO_DRIVE_1MA   (0U << 8U)
 
#define NPM1300_GPIO_DRIVE_6MA   (1U << 8U)
 

nPM1300 GPIO debounce flags

nPM1300 GPIO debounce flags

#define NPM1300_GPIO_DEBOUNCE_OFF   (0U << 9U)
 
#define NPM1300_GPIO_DEBOUNCE_ON   (1U << 9U)
 

Detailed Description

nPM1300-specific GPIO Flags

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

Macro Definition Documentation

◆ NPM1300_GPIO_DEBOUNCE_OFF

#define NPM1300_GPIO_DEBOUNCE_OFF   (0U << 9U)

◆ NPM1300_GPIO_DEBOUNCE_ON

#define NPM1300_GPIO_DEBOUNCE_ON   (1U << 9U)

◆ NPM1300_GPIO_DRIVE_1MA

#define NPM1300_GPIO_DRIVE_1MA   (0U << 8U)

◆ NPM1300_GPIO_DRIVE_6MA

#define NPM1300_GPIO_DRIVE_6MA   (1U << 8U)