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
20
extern
"C"
{
21
#endif
22
29
38
int
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_ */
device.h
APIs and macros for the Zephyr device model.
comp_adc_comp_set_threshold
int comp_adc_comp_set_threshold(const struct device *dev, int32_t ref_mv)
Set the voltage threshold for an ADC comparator.
stdint.h
int32_t
__INT32_TYPE__ int32_t
Definition
stdint.h:74
device
Runtime device structure (in ROM) per driver instance.
Definition
device.h:607
zephyr
drivers
comparator
adc_comp.h
Generated on
for Zephyr API Documentation by
1.16.1