1 /* 2 * Copyright (c) 2023 SILA Embedded Solutions GmbH 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_ADS114S0X_H_ 8 #define ZEPHYR_INCLUDE_DRIVERS_ADC_ADS114S0X_H_ 9 10 #include <zephyr/device.h> 11 #include <zephyr/drivers/gpio.h> 12 13 int ads114s0x_gpio_set_output(const struct device *dev, uint8_t pin, bool initial_value); 14 15 int ads114s0x_gpio_set_input(const struct device *dev, uint8_t pin); 16 17 int ads114s0x_gpio_deconfigure(const struct device *dev, uint8_t pin); 18 19 int ads114s0x_gpio_set_pin_value(const struct device *dev, uint8_t pin, 20 bool value); 21 22 int ads114s0x_gpio_get_pin_value(const struct device *dev, uint8_t pin, 23 bool *value); 24 25 int ads114s0x_gpio_port_get_raw(const struct device *dev, 26 gpio_port_value_t *value); 27 28 int ads114s0x_gpio_port_set_masked_raw(const struct device *dev, 29 gpio_port_pins_t mask, 30 gpio_port_value_t value); 31 32 int ads114s0x_gpio_port_toggle_bits(const struct device *dev, 33 gpio_port_pins_t pins); 34 35 #endif /* ZEPHYR_INCLUDE_DRIVERS_ADC_ADS114S0X_H_ */ 36