Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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)
 1mA drive
 
#define NPM1300_GPIO_DRIVE_6MA   (1U << 8U)
 6mA drive
 

nPM1300 GPIO debounce flags

nPM1300 GPIO debounce flags

#define NPM1300_GPIO_DEBOUNCE_OFF   (0U << 9U)
 Normal drive.
 
#define NPM1300_GPIO_DEBOUNCE_ON   (1U << 9U)
 High drive.
 

nPM1300 GPIO watchdog reset flags

nPM1300 GPIO watchdog reset flags

#define NPM1300_GPIO_WDT_RESET_OFF   (0U << 10U)
 Off.
 
#define NPM1300_GPIO_WDT_RESET_ON   (1U << 10U)
 On.
 

nPM1300 GPIO power loss warning flags

nPM1300 GPIO power loss warning flags

#define NPM1300_GPIO_PWRLOSSWARN_OFF   (0U << 11U)
 Off.
 
#define NPM1300_GPIO_PWRLOSSWARN_ON   (1U << 11U)
 On.
 

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)

◆ NPM1300_GPIO_PWRLOSSWARN_OFF

#define NPM1300_GPIO_PWRLOSSWARN_OFF   (0U << 11U)

◆ NPM1300_GPIO_PWRLOSSWARN_ON

#define NPM1300_GPIO_PWRLOSSWARN_ON   (1U << 11U)

◆ NPM1300_GPIO_WDT_RESET_OFF

#define NPM1300_GPIO_WDT_RESET_OFF   (0U << 10U)

◆ NPM1300_GPIO_WDT_RESET_ON

#define NPM1300_GPIO_WDT_RESET_ON   (1U << 10U)