Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
adc_comp.h
Go to the documentation of this file.
1/*
2 * Copyright 2026 Google LLC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_DRIVERS_COMPARATOR_ADC_COMP_H_
14#define ZEPHYR_INCLUDE_DRIVERS_COMPARATOR_ADC_COMP_H_
15
16#include <stdint.h>
17#include <zephyr/device.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
29
38int comp_adc_comp_set_threshold(const struct device *dev, int32_t ref_mv);
39
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif /* ZEPHYR_INCLUDE_DRIVERS_COMPARATOR_ADC_COMP_H_ */
APIs and macros for the Zephyr device model.
int comp_adc_comp_set_threshold(const struct device *dev, int32_t ref_mv)
Set the voltage threshold for an ADC comparator.
__INT32_TYPE__ int32_t
Definition stdint.h:74
Runtime device structure (in ROM) per driver instance.
Definition device.h:607