Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
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. | |
nPM6001-specific GPIO Flags
The drive flags are encoded in the 8 upper bits of gpio_dt_flags_t as follows:
#define NPM6001_GPIO_DRIVE_HIGH (1U << 8U) |
#include <zephyr/dt-bindings/gpio/nordic-npm6001-gpio.h>
High drive.
#define NPM6001_GPIO_DRIVE_NORMAL (0U << 8U) |
#include <zephyr/dt-bindings/gpio/nordic-npm6001-gpio.h>
Normal drive.
#define NPM6001_GPIO_SENSE_CMOS (1U << 9U) |
#include <zephyr/dt-bindings/gpio/nordic-npm6001-gpio.h>
CMOS input type.
#define NPM6001_GPIO_SENSE_SCHMITT (0U << 9U) |
#include <zephyr/dt-bindings/gpio/nordic-npm6001-gpio.h>
Schmitt trigger input type.