Lines Matching full:mode
21 struct gpio_dt_spec mode; member
29 regulator_mode_t mode) in regulator_npm1100_set_mode() argument
33 if ((config->mode.port == NULL) || (mode > NPM1100_MODE_PWM)) { in regulator_npm1100_set_mode()
37 return gpio_pin_set_dt(&config->mode, in regulator_npm1100_set_mode()
38 mode == NPM1100_MODE_AUTO ? 0 : 1); in regulator_npm1100_set_mode()
42 regulator_mode_t *mode) in regulator_npm1100_get_mode() argument
47 if (config->mode.port == NULL) { in regulator_npm1100_get_mode()
51 ret = gpio_pin_get_dt(&config->mode); in regulator_npm1100_get_mode()
56 *mode = (ret == 0) ? NPM1100_MODE_AUTO : NPM1100_MODE_PWM; in regulator_npm1100_get_mode()
66 if (config->mode.port != NULL) { in regulator_npm1100_init()
67 if (!gpio_is_ready_dt(&config->mode)) { in regulator_npm1100_init()
71 ret = gpio_pin_configure_dt(&config->mode, in regulator_npm1100_init()
114 .mode = GPIO_DT_SPEC_GET_OR(node_id, nordic_mode_gpios, {}), \