Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
lmp90xxx.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Vestas Wind Systems A/S
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_LMP90XXX_H_
8#define ZEPHYR_INCLUDE_DRIVERS_ADC_LMP90XXX_H_
9
10#include <zephyr/device.h>
11#include <zephyr/drivers/gpio.h>
12
13/* LMP90xxx supports GPIO D0..D6 */
14#define LMP90XXX_GPIO_MAX 6
15
16int lmp90xxx_gpio_set_output(const struct device *dev, uint8_t pin);
17
18int lmp90xxx_gpio_set_input(const struct device *dev, uint8_t pin);
19
20int lmp90xxx_gpio_set_pin_value(const struct device *dev, uint8_t pin,
21 bool value);
22
23int lmp90xxx_gpio_get_pin_value(const struct device *dev, uint8_t pin,
24 bool *value);
25
26int lmp90xxx_gpio_port_get_raw(const struct device *dev,
27 gpio_port_value_t *value);
28
31 gpio_port_value_t value);
32
34 gpio_port_pins_t pins);
35
37 gpio_port_pins_t pins);
38
40 gpio_port_pins_t pins);
41
42#endif /* ZEPHYR_INCLUDE_DRIVERS_ADC_LMP90XXX_H_ */
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
int lmp90xxx_gpio_port_toggle_bits(const struct device *dev, gpio_port_pins_t pins)
int lmp90xxx_gpio_set_pin_value(const struct device *dev, uint8_t pin, bool value)
int lmp90xxx_gpio_port_set_masked_raw(const struct device *dev, gpio_port_pins_t mask, gpio_port_value_t value)
int lmp90xxx_gpio_set_output(const struct device *dev, uint8_t pin)
int lmp90xxx_gpio_port_clear_bits_raw(const struct device *dev, gpio_port_pins_t pins)
int lmp90xxx_gpio_port_get_raw(const struct device *dev, gpio_port_value_t *value)
int lmp90xxx_gpio_set_input(const struct device *dev, uint8_t pin)
int lmp90xxx_gpio_get_pin_value(const struct device *dev, uint8_t pin, bool *value)
int lmp90xxx_gpio_port_set_bits_raw(const struct device *dev, gpio_port_pins_t pins)
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:412