Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
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. | |
nPM1300-specific GPIO Flags
The drive flags are encoded in the 8 upper bits of gpio_dt_flags_t as follows:
#define NPM1300_GPIO_DEBOUNCE_OFF (0U << 9U) |
#include <zephyr/dt-bindings/gpio/nordic-npm1300-gpio.h>
Normal drive.
#define NPM1300_GPIO_DEBOUNCE_ON (1U << 9U) |
#include <zephyr/dt-bindings/gpio/nordic-npm1300-gpio.h>
High drive.
#define NPM1300_GPIO_DRIVE_1MA (0U << 8U) |
#include <zephyr/dt-bindings/gpio/nordic-npm1300-gpio.h>
1mA drive
#define NPM1300_GPIO_DRIVE_6MA (1U << 8U) |
#include <zephyr/dt-bindings/gpio/nordic-npm1300-gpio.h>
6mA drive
#define NPM1300_GPIO_PWRLOSSWARN_OFF (0U << 11U) |
#include <zephyr/dt-bindings/gpio/nordic-npm1300-gpio.h>
Off.
#define NPM1300_GPIO_PWRLOSSWARN_ON (1U << 11U) |
#include <zephyr/dt-bindings/gpio/nordic-npm1300-gpio.h>
On.
#define NPM1300_GPIO_WDT_RESET_OFF (0U << 10U) |
#include <zephyr/dt-bindings/gpio/nordic-npm1300-gpio.h>
Off.
#define NPM1300_GPIO_WDT_RESET_ON (1U << 10U) |
#include <zephyr/dt-bindings/gpio/nordic-npm1300-gpio.h>
On.