7#ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_ADC_NPCX_THRESHOLD_H_
8#define ZEPHYR_INCLUDE_DRIVERS_ADC_ADC_NPCX_THRESHOLD_H_
27 ADC_NPCX_THRESHOLD_PARAM_MAX,
adc_npcx_threshold_param_l_h
Definition adc_npcx_threshold.h:12
@ ADC_NPCX_THRESHOLD_PARAM_L_H_LOWER
Definition adc_npcx_threshold.h:14
@ ADC_NPCX_THRESHOLD_PARAM_L_H_HIGHER
Definition adc_npcx_threshold.h:13
adc_npcx_threshold_param_type
Definition adc_npcx_threshold.h:17
@ ADC_NPCX_THRESHOLD_PARAM_WORK
Sets worker queue thread to be notified.
Definition adc_npcx_threshold.h:25
@ ADC_NPCX_THRESHOLD_PARAM_CHNSEL
Selects ADC channel to be used for measurement.
Definition adc_npcx_threshold.h:19
@ ADC_NPCX_THRESHOLD_PARAM_L_H
Sets relation between measured value and assertion threshold value.
Definition adc_npcx_threshold.h:21
@ ADC_NPCX_THRESHOLD_PARAM_THVAL
Sets the threshold value to which measured data is compared.
Definition adc_npcx_threshold.h:23
int adc_npcx_threshold_ctrl_set_param(const struct device *dev, const uint8_t th_sel, const struct adc_npcx_threshold_param *param)
Set ADC threshold parameter.
int adc_npcx_threshold_ctrl_enable(const struct device *dev, uint8_t th_sel, const bool enable)
Enables/Disables ADC threshold interruption.
int adc_npcx_threshold_mv_to_thrval(const struct device *dev, uint32_t val_mv, uint32_t *thrval)
Convert input value in millivolts to corresponding threshold register value.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Definition adc_npcx_threshold.h:31
uint32_t val
Parameter value.
Definition adc_npcx_threshold.h:35
enum adc_npcx_threshold_param_type type
Threshold control parameter.
Definition adc_npcx_threshold.h:33
Runtime device structure (in ROM) per driver instance.
Definition device.h:513