Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mcux_acmp.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_MCUX_ACMP_H_
8#define ZEPHYR_INCLUDE_DRIVERS_COMP_MCUX_ACMP_H_
9
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
20
27
36
47
52
59
65
70
77
82
93
104
114
116 const struct comp_mcux_acmp_mode_config *config);
117
119 const struct comp_mcux_acmp_input_config *config);
120
122 const struct comp_mcux_acmp_filter_config *config);
123
125 const struct comp_mcux_acmp_dac_config *config);
126
128 const struct comp_mcux_acmp_dm_config *config);
129
130int comp_mcux_acmp_set_window_mode(const struct device *dev, bool enable);
131
132#ifdef __cplusplus
133}
134#endif
135
136#endif /* ZEPHYR_INCLUDE_DRIVERS_COMP_MCUX_ACMP_H_ */
comp_mcux_acmp_dm_sample_time
Definition mcux_acmp.h:83
@ COMP_MCUX_ACMP_DM_SAMPLE_TIME_T2
Definition mcux_acmp.h:85
@ COMP_MCUX_ACMP_DM_SAMPLE_TIME_T8
Definition mcux_acmp.h:87
@ COMP_MCUX_ACMP_DM_SAMPLE_TIME_T16
Definition mcux_acmp.h:88
@ COMP_MCUX_ACMP_DM_SAMPLE_TIME_T64
Definition mcux_acmp.h:90
@ COMP_MCUX_ACMP_DM_SAMPLE_TIME_T1
Definition mcux_acmp.h:84
@ COMP_MCUX_ACMP_DM_SAMPLE_TIME_T4
Definition mcux_acmp.h:86
@ COMP_MCUX_ACMP_DM_SAMPLE_TIME_T32
Definition mcux_acmp.h:89
@ COMP_MCUX_ACMP_DM_SAMPLE_TIME_T256
Definition mcux_acmp.h:91
comp_mcux_acmp_mux_input
Definition mcux_acmp.h:37
@ COMP_MCUX_ACMP_MUX_INPUT_IN4
Definition mcux_acmp.h:42
@ COMP_MCUX_ACMP_MUX_INPUT_IN1
Definition mcux_acmp.h:39
@ COMP_MCUX_ACMP_MUX_INPUT_IN5
Definition mcux_acmp.h:43
@ COMP_MCUX_ACMP_MUX_INPUT_IN6
Definition mcux_acmp.h:44
@ COMP_MCUX_ACMP_MUX_INPUT_IN7
Definition mcux_acmp.h:45
@ COMP_MCUX_ACMP_MUX_INPUT_IN3
Definition mcux_acmp.h:41
@ COMP_MCUX_ACMP_MUX_INPUT_IN2
Definition mcux_acmp.h:40
@ COMP_MCUX_ACMP_MUX_INPUT_IN0
Definition mcux_acmp.h:38
comp_mcux_acmp_offset_mode
Definition mcux_acmp.h:16
@ COMP_MCUX_ACMP_OFFSET_MODE_LEVEL1
Definition mcux_acmp.h:18
@ COMP_MCUX_ACMP_OFFSET_MODE_LEVEL0
Definition mcux_acmp.h:17
comp_mcux_acmp_port_input
Definition mcux_acmp.h:48
@ COMP_MCUX_ACMP_PORT_INPUT_MUX
Definition mcux_acmp.h:50
@ COMP_MCUX_ACMP_PORT_INPUT_DAC
Definition mcux_acmp.h:49
int comp_mcux_acmp_set_input_config(const struct device *dev, const struct comp_mcux_acmp_input_config *config)
int comp_mcux_acmp_set_filter_config(const struct device *dev, const struct comp_mcux_acmp_filter_config *config)
int comp_mcux_acmp_set_mode_config(const struct device *dev, const struct comp_mcux_acmp_mode_config *config)
int comp_mcux_acmp_set_dm_config(const struct device *dev, const struct comp_mcux_acmp_dm_config *config)
int comp_mcux_acmp_set_window_mode(const struct device *dev, bool enable)
int comp_mcux_acmp_set_dac_config(const struct device *dev, const struct comp_mcux_acmp_dac_config *config)
comp_mcux_acmp_hysteresis_mode
Definition mcux_acmp.h:21
@ COMP_MCUX_ACMP_HYSTERESIS_MODE_LEVEL3
Definition mcux_acmp.h:25
@ COMP_MCUX_ACMP_HYSTERESIS_MODE_LEVEL0
Definition mcux_acmp.h:22
@ COMP_MCUX_ACMP_HYSTERESIS_MODE_LEVEL2
Definition mcux_acmp.h:24
@ COMP_MCUX_ACMP_HYSTERESIS_MODE_LEVEL1
Definition mcux_acmp.h:23
comp_mcux_acmp_dac_vref_source
Definition mcux_acmp.h:66
@ COMP_MCUX_ACMP_DAC_VREF_SOURCE_VIN1
Definition mcux_acmp.h:67
@ COMP_MCUX_ACMP_DAC_VREF_SOURCE_VIN2
Definition mcux_acmp.h:68
comp_mcux_acmp_dm_phase_time
Definition mcux_acmp.h:94
@ COMP_MCUX_ACMP_DM_PHASE_TIME_ALT7
Definition mcux_acmp.h:102
@ COMP_MCUX_ACMP_DM_PHASE_TIME_ALT0
Definition mcux_acmp.h:95
@ COMP_MCUX_ACMP_DM_PHASE_TIME_ALT2
Definition mcux_acmp.h:97
@ COMP_MCUX_ACMP_DM_PHASE_TIME_ALT4
Definition mcux_acmp.h:99
@ COMP_MCUX_ACMP_DM_PHASE_TIME_ALT6
Definition mcux_acmp.h:101
@ COMP_MCUX_ACMP_DM_PHASE_TIME_ALT3
Definition mcux_acmp.h:98
@ COMP_MCUX_ACMP_DM_PHASE_TIME_ALT1
Definition mcux_acmp.h:96
@ COMP_MCUX_ACMP_DM_PHASE_TIME_ALT5
Definition mcux_acmp.h:100
comp_mcux_acmp_dm_clock
Definition mcux_acmp.h:78
@ COMP_MCUX_ACMP_DM_CLOCK_FAST
Definition mcux_acmp.h:80
@ COMP_MCUX_ACMP_DM_CLOCK_SLOW
Definition mcux_acmp.h:79
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Definition mcux_acmp.h:71
enum comp_mcux_acmp_dac_vref_source vref_source
Definition mcux_acmp.h:72
bool enable_high_speed_mode
Definition mcux_acmp.h:75
bool enable_output
Definition mcux_acmp.h:74
uint8_t value
Definition mcux_acmp.h:73
Definition mcux_acmp.h:105
bool enable_resistor_divider
Definition mcux_acmp.h:108
enum comp_mcux_acmp_dm_phase_time phase1_time
Definition mcux_acmp.h:111
bool enable_positive_channel
Definition mcux_acmp.h:106
enum comp_mcux_acmp_dm_sample_time sample_time
Definition mcux_acmp.h:110
enum comp_mcux_acmp_dm_clock clock_source
Definition mcux_acmp.h:109
enum comp_mcux_acmp_dm_phase_time phase2_time
Definition mcux_acmp.h:112
bool enable_negative_channel
Definition mcux_acmp.h:107
Definition mcux_acmp.h:60
uint8_t filter_period
Definition mcux_acmp.h:63
bool enable_sample
Definition mcux_acmp.h:61
uint8_t filter_count
Definition mcux_acmp.h:62
Definition mcux_acmp.h:53
enum comp_mcux_acmp_mux_input negative_mux_input
Definition mcux_acmp.h:55
enum comp_mcux_acmp_mux_input positive_mux_input
Definition mcux_acmp.h:54
enum comp_mcux_acmp_port_input positive_port_input
Definition mcux_acmp.h:56
enum comp_mcux_acmp_port_input negative_port_input
Definition mcux_acmp.h:57
Definition mcux_acmp.h:28
enum comp_mcux_acmp_hysteresis_mode hysteresis_mode
Definition mcux_acmp.h:30
bool use_unfiltered_output
Definition mcux_acmp.h:33
bool enable_pin_output
Definition mcux_acmp.h:34
bool invert_output
Definition mcux_acmp.h:32
bool enable_high_speed_mode
Definition mcux_acmp.h:31
enum comp_mcux_acmp_offset_mode offset_mode
Definition mcux_acmp.h:29
Runtime device structure (in ROM) per driver instance.
Definition device.h:412