Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
comparator_wch_ch5xx.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 SMILE (smile.eu)
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
11
12#ifndef ZEPHYR_INCLUDE_DRIVERS_COMPARATOR_WCH_CH5XX_H_
13#define ZEPHYR_INCLUDE_DRIVERS_COMPARATOR_WCH_CH5XX_H_
14
15#include <zephyr/device.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
40
49int comparator_wch_set_nref_level(const struct device *dev, enum comp_nref_level level);
50
51#ifdef __cplusplus
52}
53#endif
54
55#endif /* ZEPHYR_INCLUDE_DRIVERS_COMPARATOR_WCH_CH5XX_H_ */
comp_nref_level
Available negative reference levels.
Definition comparator_wch_ch5xx.h:22
@ COMP_NREF_LEVEL_700
700 mV internal negative reference
Definition comparator_wch_ch5xx.h:36
@ COMP_NREF_LEVEL_600
600 mV internal negative reference
Definition comparator_wch_ch5xx.h:34
@ COMP_NREF_LEVEL_300
300 mV internal negative reference
Definition comparator_wch_ch5xx.h:28
@ COMP_NREF_LEVEL_100
100 mV internal negative reference
Definition comparator_wch_ch5xx.h:24
@ COMP_NREF_LEVEL_250
250 mV internal negative reference
Definition comparator_wch_ch5xx.h:27
@ COMP_NREF_LEVEL_550
550 mV internal negative reference
Definition comparator_wch_ch5xx.h:33
@ COMP_NREF_LEVEL_150
150 mV internal negative reference
Definition comparator_wch_ch5xx.h:25
@ COMP_NREF_LEVEL_350
350 mV internal negative reference
Definition comparator_wch_ch5xx.h:29
@ COMP_NREF_LEVEL_800
800 mV internal negative reference
Definition comparator_wch_ch5xx.h:38
@ COMP_NREF_LEVEL_200
200 mV internal negative reference
Definition comparator_wch_ch5xx.h:26
@ COMP_NREF_LEVEL_400
400 mV internal negative reference
Definition comparator_wch_ch5xx.h:30
@ COMP_NREF_LEVEL_650
650 mV internal negative reference
Definition comparator_wch_ch5xx.h:35
@ COMP_NREF_LEVEL_50
50 mV internal negative reference
Definition comparator_wch_ch5xx.h:23
@ COMP_NREF_LEVEL_750
750 mV internal negative reference
Definition comparator_wch_ch5xx.h:37
@ COMP_NREF_LEVEL_450
450 mV internal negative reference
Definition comparator_wch_ch5xx.h:31
@ COMP_NREF_LEVEL_500
500 mV internal negative reference
Definition comparator_wch_ch5xx.h:32
int comparator_wch_set_nref_level(const struct device *dev, enum comp_nref_level level)
Set the negative reference level for the comparator.
Runtime device structure (in ROM) per driver instance.
Definition device.h:525