Zephyr API 3.6.99
Loading...
Searching...
No Matches
nrf_lpcomp.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_COMP_NRF_LPCOMP_H_
8#define ZEPHYR_INCLUDE_DRIVERS_COMP_NRF_LPCOMP_H_
9
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
35
43
79
95
105int comp_nrf_lpcomp_configure(const struct device *dev,
106 const struct comp_nrf_lpcomp_config *config);
107
108#ifdef __cplusplus
109}
110#endif
111
112#endif /* ZEPHYR_INCLUDE_DRIVERS_COMP_NRF_LPCOMP_H_ */
comp_nrf_lpcomp_extrefsel
External reference selection.
Definition nrf_lpcomp.h:37
@ COMP_NRF_LPCOMP_EXTREFSEL_AIN1
AIN1 external input.
Definition nrf_lpcomp.h:41
@ COMP_NRF_LPCOMP_EXTREFSEL_AIN0
AIN0 external input.
Definition nrf_lpcomp.h:39
comp_nrf_lpcomp_refsel
Reference selection.
Definition nrf_lpcomp.h:45
@ COMP_NRF_LPCOMP_REFSEL_VDD_3_8
Use (VDD * (3/8)) as reference.
Definition nrf_lpcomp.h:51
@ COMP_NRF_LPCOMP_REFSEL_VDD_5_8
Use (VDD * (5/8)) as reference.
Definition nrf_lpcomp.h:55
@ COMP_NRF_LPCOMP_REFSEL_VDD_7_8
Use (VDD * (7/8)) as reference.
Definition nrf_lpcomp.h:59
@ COMP_NRF_LPCOMP_REFSEL_VDD_3_16
Use (VDD * (3/16)) as reference.
Definition nrf_lpcomp.h:63
@ COMP_NRF_LPCOMP_REFSEL_VDD_2_8
Use (VDD * (2/8)) as reference.
Definition nrf_lpcomp.h:49
@ COMP_NRF_LPCOMP_REFSEL_VDD_6_8
Use (VDD * (6/8)) as reference.
Definition nrf_lpcomp.h:57
@ COMP_NRF_LPCOMP_REFSEL_VDD_4_8
Use (VDD * (4/8)) as reference.
Definition nrf_lpcomp.h:53
@ COMP_NRF_LPCOMP_REFSEL_VDD_13_16
Use (VDD * (13/16)) as reference.
Definition nrf_lpcomp.h:73
@ COMP_NRF_LPCOMP_REFSEL_VDD_5_16
Use (VDD * (5/16)) as reference.
Definition nrf_lpcomp.h:65
@ COMP_NRF_LPCOMP_REFSEL_VDD_7_16
Use (VDD * (7/16)) as reference.
Definition nrf_lpcomp.h:67
@ COMP_NRF_LPCOMP_REFSEL_VDD_11_16
Use (VDD * (11/16)) as reference.
Definition nrf_lpcomp.h:71
@ COMP_NRF_LPCOMP_REFSEL_VDD_1_8
Use (VDD * (1/8)) as reference.
Definition nrf_lpcomp.h:47
@ COMP_NRF_LPCOMP_REFSEL_VDD_9_16
Use (VDD * (9/16)) as reference.
Definition nrf_lpcomp.h:69
@ COMP_NRF_LPCOMP_REFSEL_VDD_15_16
Use (VDD * (15/16)) as reference.
Definition nrf_lpcomp.h:75
@ COMP_NRF_LPCOMP_REFSEL_AREF
Use external analog reference.
Definition nrf_lpcomp.h:77
@ COMP_NRF_LPCOMP_REFSEL_VDD_1_16
Use (VDD * (1/16)) as reference.
Definition nrf_lpcomp.h:61
comp_nrf_lpcomp_psel
Positive input selection.
Definition nrf_lpcomp.h:17
@ COMP_NRF_LPCOMP_PSEL_AIN6
AIN6 external input.
Definition nrf_lpcomp.h:31
@ COMP_NRF_LPCOMP_PSEL_AIN5
AIN5 external input.
Definition nrf_lpcomp.h:29
@ COMP_NRF_LPCOMP_PSEL_AIN3
AIN3 external input.
Definition nrf_lpcomp.h:25
@ COMP_NRF_LPCOMP_PSEL_AIN2
AIN2 external input.
Definition nrf_lpcomp.h:23
@ COMP_NRF_LPCOMP_PSEL_AIN4
AIN4 external input.
Definition nrf_lpcomp.h:27
@ COMP_NRF_LPCOMP_PSEL_AIN7
AIN7 external input.
Definition nrf_lpcomp.h:33
@ COMP_NRF_LPCOMP_PSEL_AIN0
AIN0 external input.
Definition nrf_lpcomp.h:19
@ COMP_NRF_LPCOMP_PSEL_AIN1
AIN1 external input.
Definition nrf_lpcomp.h:21
int comp_nrf_lpcomp_configure(const struct device *dev, const struct comp_nrf_lpcomp_config *config)
Configure comparator.
Configuration structure.
Definition nrf_lpcomp.h:85
enum comp_nrf_lpcomp_extrefsel extrefsel
External reference selection.
Definition nrf_lpcomp.h:89
enum comp_nrf_lpcomp_psel psel
Positive input selection.
Definition nrf_lpcomp.h:87
bool enable_hyst
Hysteresis configuration.
Definition nrf_lpcomp.h:93
enum comp_nrf_lpcomp_refsel refsel
Reference selection.
Definition nrf_lpcomp.h:91
Runtime device structure (in ROM) per driver instance.
Definition device.h:403