1 /*
2  * Copyright (c) 2022  The Chromium OS Authors
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_DRIVERS_USBC_VBUS_ADC_PRIV_H_
8 #define ZEPHYR_DRIVERS_USBC_VBUS_ADC_PRIV_H_
9 
10 #include <zephyr/drivers/gpio.h>
11 #include <zephyr/drivers/adc.h>
12 
13 /**
14  * @brief Driver config
15  */
16 struct usbc_vbus_config {
17 	uint32_t output_ohm;
18 	uint32_t full_ohm;
19 	struct adc_dt_spec adc_channel;
20 	const struct gpio_dt_spec power_gpios;
21 	const struct gpio_dt_spec discharge_gpios;
22 };
23 
24 /**
25  * @brief Driver data
26  */
27 struct usbc_vbus_data {
28 	int sample;
29 	struct adc_sequence sequence;
30 };
31 
32 #endif /* ZEPHYR_DRIVERS_USBC_VBUS_ADC_PRIV_H_ */
33