Line data Source code
1 0 : /*
2 : * Copyright (c) 2023 SILA Embedded Solutions GmbH
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 :
7 : #ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_ADS1X4S0X_H_
8 : #define ZEPHYR_INCLUDE_DRIVERS_ADC_ADS1X4S0X_H_
9 :
10 : #include <zephyr/device.h>
11 : #include <zephyr/drivers/gpio.h>
12 :
13 0 : int ads1x4s0x_gpio_set_output(const struct device *dev, uint8_t pin, bool initial_value);
14 :
15 0 : int ads1x4s0x_gpio_set_input(const struct device *dev, uint8_t pin);
16 :
17 0 : int ads1x4s0x_gpio_deconfigure(const struct device *dev, uint8_t pin);
18 :
19 0 : int ads1x4s0x_gpio_set_pin_value(const struct device *dev, uint8_t pin,
20 : bool value);
21 :
22 0 : int ads1x4s0x_gpio_get_pin_value(const struct device *dev, uint8_t pin,
23 : bool *value);
24 :
25 0 : int ads1x4s0x_gpio_port_get_raw(const struct device *dev,
26 : gpio_port_value_t *value);
27 :
28 0 : int ads1x4s0x_gpio_port_set_masked_raw(const struct device *dev,
29 : gpio_port_pins_t mask,
30 : gpio_port_value_t value);
31 :
32 0 : int ads1x4s0x_gpio_port_toggle_bits(const struct device *dev,
33 : gpio_port_pins_t pins);
34 :
35 : #endif /* ZEPHYR_INCLUDE_DRIVERS_ADC_ADS1X4S0X_H_ */
|