Zephyr Project API 4.3.99
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
12
13#ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_LMP90XXX_H_
14#define ZEPHYR_INCLUDE_DRIVERS_ADC_LMP90XXX_H_
15
16#include <zephyr/device.h>
17#include <zephyr/drivers/gpio.h>
18
25
31#define LMP90XXX_GPIO_MAX 6
32
42int lmp90xxx_gpio_set_output(const struct device *dev, uint8_t pin);
43
53int lmp90xxx_gpio_set_input(const struct device *dev, uint8_t pin);
54
65int lmp90xxx_gpio_set_pin_value(const struct device *dev, uint8_t pin,
66 bool value);
67
78int lmp90xxx_gpio_get_pin_value(const struct device *dev, uint8_t pin,
79 bool *value);
80
90int lmp90xxx_gpio_port_get_raw(const struct device *dev,
91 gpio_port_value_t *value);
92
104 gpio_port_pins_t mask,
105 gpio_port_value_t value);
106
117 gpio_port_pins_t pins);
118
129 gpio_port_pins_t pins);
130
141 gpio_port_pins_t pins);
142
144
145#endif /* ZEPHYR_INCLUDE_DRIVERS_ADC_LMP90XXX_H_ */
Main header file for GPIO driver API.
uint32_t gpio_port_pins_t
Identifies a set of pins associated with a port.
Definition gpio.h:241
uint32_t gpio_port_value_t
Provides values for a set of pins associated with a port.
Definition gpio.h:254
int lmp90xxx_gpio_port_toggle_bits(const struct device *dev, gpio_port_pins_t pins)
Toggle bits of the GPIO port of an LMP90xxx.
int lmp90xxx_gpio_set_pin_value(const struct device *dev, uint8_t pin, bool value)
Set the value of a GPIO pin of an LMP90xxx.
int lmp90xxx_gpio_port_set_masked_raw(const struct device *dev, gpio_port_pins_t mask, gpio_port_value_t value)
Set the value of the GPIO port of an LMP90xxx with a mask.
int lmp90xxx_gpio_set_output(const struct device *dev, uint8_t pin)
Configure a GPIO pin of an LMP90xxx as an output.
int lmp90xxx_gpio_port_clear_bits_raw(const struct device *dev, gpio_port_pins_t pins)
Clear bits of the GPIO port of an LMP90xxx.
int lmp90xxx_gpio_port_get_raw(const struct device *dev, gpio_port_value_t *value)
Get the value of the GPIO port of an LMP90xxx.
int lmp90xxx_gpio_set_input(const struct device *dev, uint8_t pin)
Configure a GPIO pin of an LMP90xxx as an input.
int lmp90xxx_gpio_get_pin_value(const struct device *dev, uint8_t pin, bool *value)
Get the value of a GPIO pin of an LMP90xxx.
int lmp90xxx_gpio_port_set_bits_raw(const struct device *dev, gpio_port_pins_t pins)
Set bits of the GPIO port of an LMP90xxx.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:513