Zephyr API 3.6.99
|
Go to the source code of this file.
Macros | |
#define | AXP192_GPIO_FUNC_VALID(func) |
Check if a given GPIO function value is valid. | |
#define | AXP192_GPIO_MAX_NUM 6U |
Maximum number of GPIOs supported by AXP192 PMIC. | |
Enumerations | |
enum | axp192_gpio_func { AXP192_GPIO_FUNC_INPUT = BIT(0) , AXP192_GPIO_FUNC_OUTPUT_OD = BIT(1) , AXP192_GPIO_FUNC_OUTPUT_LOW = BIT(2) , AXP192_GPIO_FUNC_LDO = BIT(3) , AXP192_GPIO_FUNC_ADC = BIT(4) , AXP192_GPIO_FUNC_PWM = BIT(5) , AXP192_GPIO_FUNC_FLOAT = BIT(6) , AXP192_GPIO_FUNC_CHARGE_CTL = BIT(7) , AXP192_GPIO_FUNC_INVALID } |
GPIO function type. More... | |
Functions | |
int | mfd_axp192_gpio_func_ctrl (const struct device *dev, const struct device *client_dev, uint8_t gpio, enum axp192_gpio_func func) |
Request a GPIO pin to be configured to a specific function. | |
int | mfd_axp192_gpio_func_get (const struct device *dev, uint8_t gpio, enum axp192_gpio_func *func) |
Read out current configuration of a specific GPIO pin. | |
int | mfd_axp192_gpio_pd_ctrl (const struct device *dev, uint8_t gpio, bool enable) |
Enable pull-down on specified GPIO pin. | |
int | mfd_axp192_gpio_pd_get (const struct device *dev, uint8_t gpio, bool *enabled) |
Read out the current pull-down configuration of a specific GPIO. | |
int | mfd_axp192_gpio_read_port (const struct device *dev, uint8_t *value) |
Read GPIO port. | |
int | mfd_axp192_gpio_write_port (const struct device *dev, uint8_t value, uint8_t mask) |
Write GPIO port. | |
#define AXP192_GPIO_FUNC_VALID | ( | func | ) |
Check if a given GPIO function value is valid.
#define AXP192_GPIO_MAX_NUM 6U |
Maximum number of GPIOs supported by AXP192 PMIC.
enum axp192_gpio_func |