Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Nuvoton NPCX ADC threshold comparator. More...

Files

file  adc_cmp_npcx.h
 Header file for extended sensor API of NPCX ADC comparator.

Enumerations

enum  adc_cmp_npcx_comparison { ADC_CMP_NPCX_GREATER , ADC_CMP_NPCX_LESS_OR_EQUAL }
 Comparison between the ADC data and the threshold that triggers an event. More...
enum  npcx_adc_cmp_thrctl {
  ADC_CMP_NPCX_THRCTL1 , ADC_CMP_NPCX_THRCTL2 , ADC_CMP_NPCX_THRCTL3 , ADC_CMP_NPCX_THRCTL4 ,
  ADC_CMP_NPCX_THRCTL5 , ADC_CMP_NPCX_THRCTL6 , ADC_CMP_NPCX_THRCTL_COUNT
}
 ADC threshold controllers in the NPCX series. More...
enum  adc_cmp_npcx_sensor_attribute { SENSOR_ATTR_LOWER_VOLTAGE_THRESH = SENSOR_ATTR_PRIV_START , SENSOR_ATTR_UPPER_VOLTAGE_THRESH }
 Custom sensor attributes for the NPCX ADC comparator. More...

Detailed Description

Nuvoton NPCX ADC threshold comparator.

Enumeration Type Documentation

◆ adc_cmp_npcx_comparison

#include <zephyr/drivers/sensor/adc_cmp_npcx.h>

Comparison between the ADC data and the threshold that triggers an event.

Enumerator
ADC_CMP_NPCX_GREATER 

ADC data is greater than the threshold.

ADC_CMP_NPCX_LESS_OR_EQUAL 

ADC data is less than or equal to the threshold.

◆ adc_cmp_npcx_sensor_attribute

#include <zephyr/drivers/sensor/adc_cmp_npcx.h>

Custom sensor attributes for the NPCX ADC comparator.

Enumerator
SENSOR_ATTR_LOWER_VOLTAGE_THRESH 

Lower threshold, in mV.

SENSOR_ATTR_UPPER_VOLTAGE_THRESH 

Upper threshold, in mV.

◆ npcx_adc_cmp_thrctl

#include <zephyr/drivers/sensor/adc_cmp_npcx.h>

ADC threshold controllers in the NPCX series.

Enumerator
ADC_CMP_NPCX_THRCTL1 

Threshold controller 1.

ADC_CMP_NPCX_THRCTL2 

Threshold controller 2.

ADC_CMP_NPCX_THRCTL3 

Threshold controller 3.

ADC_CMP_NPCX_THRCTL4 

Threshold controller 4.

ADC_CMP_NPCX_THRCTL5 

Threshold controller 5.

ADC_CMP_NPCX_THRCTL6 

Threshold controller 6.

ADC_CMP_NPCX_THRCTL_COUNT 

Number of threshold controllers.