7#ifndef ZEPHYR_INCLUDE_DRIVERS_COMP_NRF_COMP_H_
8#define ZEPHYR_INCLUDE_DRIVERS_COMP_NRF_COMP_H_
comp_nrf_comp_extrefsel
External reference selection.
Definition nrf_comp.h:41
@ COMP_NRF_COMP_EXTREFSEL_AIN7
AIN7 external input.
Definition nrf_comp.h:57
@ COMP_NRF_COMP_EXTREFSEL_AIN3
AIN3 external input.
Definition nrf_comp.h:49
@ COMP_NRF_COMP_EXTREFSEL_AIN5
AIN5 external input.
Definition nrf_comp.h:53
@ COMP_NRF_COMP_EXTREFSEL_AIN6
AIN6 external input.
Definition nrf_comp.h:55
@ COMP_NRF_COMP_EXTREFSEL_AIN1
AIN1 external input.
Definition nrf_comp.h:45
@ COMP_NRF_COMP_EXTREFSEL_AIN2
AIN2 external input.
Definition nrf_comp.h:47
@ COMP_NRF_COMP_EXTREFSEL_AIN0
AIN0 external input.
Definition nrf_comp.h:43
@ COMP_NRF_COMP_EXTREFSEL_AIN4
AIN4 external input.
Definition nrf_comp.h:51
int comp_nrf_comp_configure_diff(const struct device *dev, const struct comp_nrf_comp_diff_config *config)
Configure comparator in differential mode.
comp_nrf_comp_refsel
Reference selection.
Definition nrf_comp.h:61
@ COMP_NRF_COMP_REFSEL_VDD
VDD reference.
Definition nrf_comp.h:71
@ COMP_NRF_COMP_REFSEL_INT_2V4
Internal 2.4V reference.
Definition nrf_comp.h:67
@ COMP_NRF_COMP_REFSEL_AVDDAO1V8
AVDD 1.8V reference.
Definition nrf_comp.h:69
@ COMP_NRF_COMP_REFSEL_AREF
Use external analog reference.
Definition nrf_comp.h:73
@ COMP_NRF_COMP_REFSEL_INT_1V8
Internal 1.8V reference.
Definition nrf_comp.h:65
@ COMP_NRF_COMP_REFSEL_INT_1V2
Internal 1.2V reference.
Definition nrf_comp.h:63
comp_nrf_comp_isource
Current source configuration.
Definition nrf_comp.h:87
@ COMP_NRF_COMP_ISOURCE_10UA
10uA current source enabled
Definition nrf_comp.h:95
@ COMP_NRF_COMP_ISOURCE_5UA
5uA current source enabled
Definition nrf_comp.h:93
@ COMP_NRF_COMP_ISOURCE_DISABLED
Current source disabled.
Definition nrf_comp.h:89
@ COMP_NRF_COMP_ISOURCE_2UA5
2.5uA current source enabled
Definition nrf_comp.h:91
comp_nrf_comp_psel
Positive input selection.
Definition nrf_comp.h:17
@ COMP_NRF_COMP_PSEL_AIN7
AIN7 external input.
Definition nrf_comp.h:33
@ COMP_NRF_COMP_PSEL_AIN5
AIN5 external input.
Definition nrf_comp.h:29
@ COMP_NRF_COMP_PSEL_AIN0
AIN0 external input.
Definition nrf_comp.h:19
@ COMP_NRF_COMP_PSEL_VDDH_DIV5
VDDH / 5.
Definition nrf_comp.h:37
@ COMP_NRF_COMP_PSEL_AIN2
AIN2 external input.
Definition nrf_comp.h:23
@ COMP_NRF_COMP_PSEL_AIN6
AIN6 external input.
Definition nrf_comp.h:31
@ COMP_NRF_COMP_PSEL_AIN3
AIN3 external input.
Definition nrf_comp.h:25
@ COMP_NRF_COMP_PSEL_VDD_DIV2
VDD / 2.
Definition nrf_comp.h:35
@ COMP_NRF_COMP_PSEL_AIN4
AIN4 external input.
Definition nrf_comp.h:27
@ COMP_NRF_COMP_PSEL_AIN1
AIN1 external input.
Definition nrf_comp.h:21
int comp_nrf_comp_configure_se(const struct device *dev, const struct comp_nrf_comp_se_config *config)
Configure comparator in single-ended mode.
comp_nrf_comp_sp_mode
Speed mode selection.
Definition nrf_comp.h:77
@ COMP_NRF_COMP_SP_MODE_LOW
Low-power mode.
Definition nrf_comp.h:79
@ COMP_NRF_COMP_SP_MODE_NORMAL
Normal mode.
Definition nrf_comp.h:81
@ COMP_NRF_COMP_SP_MODE_HIGH
High-speed mode.
Definition nrf_comp.h:83
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Differential mode configuration structure.
Definition nrf_comp.h:135
enum comp_nrf_comp_sp_mode sp_mode
Speed mode selection.
Definition nrf_comp.h:139
enum comp_nrf_comp_extrefsel extrefsel
Negative input selection.
Definition nrf_comp.h:143
enum comp_nrf_comp_isource isource
Current source configuration.
Definition nrf_comp.h:141
enum comp_nrf_comp_psel psel
Positive input selection.
Definition nrf_comp.h:137
bool enable_hyst
Hysteresis configuration.
Definition nrf_comp.h:145
Single-ended mode configuration structure.
Definition nrf_comp.h:105
enum comp_nrf_comp_refsel refsel
Reference selection.
Definition nrf_comp.h:115
enum comp_nrf_comp_isource isource
Current source configuration.
Definition nrf_comp.h:111
enum comp_nrf_comp_sp_mode sp_mode
Speed mode selection.
Definition nrf_comp.h:109
enum comp_nrf_comp_extrefsel extrefsel
External reference selection.
Definition nrf_comp.h:113
uint8_t th_up
Hysteresis up threshold configuration.
Definition nrf_comp.h:119
enum comp_nrf_comp_psel psel
Positive input selection.
Definition nrf_comp.h:107
uint8_t th_down
Hysteresis down threshold configuration.
Definition nrf_comp.h:117
Runtime device structure (in ROM) per driver instance.
Definition device.h:411