Zephyr API Documentation  3.7.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ads114s0x.h
Go to the documentation of this file.
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
13int ads114s0x_gpio_set_output(const struct device *dev, uint8_t pin, bool initial_value);
14
15int ads114s0x_gpio_set_input(const struct device *dev, uint8_t pin);
16
17int ads114s0x_gpio_deconfigure(const struct device *dev, uint8_t pin);
18
19int ads114s0x_gpio_set_pin_value(const struct device *dev, uint8_t pin,
20 bool value);
21
22int ads114s0x_gpio_get_pin_value(const struct device *dev, uint8_t pin,
23 bool *value);
24
25int ads114s0x_gpio_port_get_raw(const struct device *dev,
26 gpio_port_value_t *value);
27
30 gpio_port_value_t value);
31
33 gpio_port_pins_t pins);
34
35#endif /* ZEPHYR_INCLUDE_DRIVERS_ADC_ADS114S0X_H_ */
int ads114s0x_gpio_set_input(const struct device *dev, uint8_t pin)
int ads114s0x_gpio_set_pin_value(const struct device *dev, uint8_t pin, bool value)
int ads114s0x_gpio_port_set_masked_raw(const struct device *dev, gpio_port_pins_t mask, gpio_port_value_t value)
int ads114s0x_gpio_set_output(const struct device *dev, uint8_t pin, bool initial_value)
int ads114s0x_gpio_deconfigure(const struct device *dev, uint8_t pin)
int ads114s0x_gpio_port_toggle_bits(const struct device *dev, gpio_port_pins_t pins)
int ads114s0x_gpio_get_pin_value(const struct device *dev, uint8_t pin, bool *value)
int ads114s0x_gpio_port_get_raw(const struct device *dev, gpio_port_value_t *value)
Public APIs for GPIO drivers.
uint32_t gpio_port_pins_t
Identifies a set of pins associated with a port.
Definition: gpio.h:233
uint32_t gpio_port_value_t
Provides values for a set of pins associated with a port.
Definition: gpio.h:246
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition: device.h:403