Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mcux_lpcmp.h File Reference

Data structure for the NXP MCUX low-power analog comparator (LPCMP) More...

Go to the source code of this file.

Enumerations

enum  sensor_channel_mcux_lpcmp { SENSOR_CHAN_MCUX_LPCMP_OUTPUT = SENSOR_CHAN_PRIV_START }
 lpcmp channels. More...
 
enum  sensor_trigger_type_mcux_lpcmp { SENSOR_TRIG_MCUX_LPCMP_OUTPUT_RISING = SENSOR_TRIG_PRIV_START , SENSOR_TRIG_MCUX_LPCMP_OUTPUT_FALLING }
 lpcmp trigger types. More...
 
enum  sensor_attribute_mcux_lpcmp {
  SENSOR_ATTR_MCUX_LPCMP_POSITIVE_MUX_INPUT = SENSOR_ATTR_COMMON_COUNT , SENSOR_ATTR_MCUX_LPCMP_NEGATIVE_MUX_INPUT , SENSOR_ATTR_MCUX_LPCMP_DAC_ENABLE , SENSOR_ATTR_MCUX_LPCMP_DAC_HIGH_POWER_MODE_ENABLE ,
  SENSOR_ATTR_MCUX_LPCMP_DAC_REFERENCE_VOLTAGE_SOURCE , SENSOR_ATTR_MCUX_LPCMP_DAC_OUTPUT_VOLTAGE , SENSOR_ATTR_MCUX_LPCMP_SAMPLE_ENABLE , SENSOR_ATTR_MCUX_LPCMP_FILTER_COUNT ,
  SENSOR_ATTR_MCUX_LPCMP_FILTER_PERIOD , SENSOR_ATTR_MCUX_LPCMP_COUTA_WINDOW_ENABLE , SENSOR_ATTR_MCUX_LPCMP_COUTA_WINDOW_SIGNAL_INVERT_ENABLE , SENSOR_ATTR_MCUX_LPCMP_COUTA_SIGNAL ,
  SENSOR_ATTR_MCUX_LPCMP_COUT_EVENT_TO_CLOSE_WINDOW
}
 lpcmp attribute types. More...
 

Detailed Description

Data structure for the NXP MCUX low-power analog comparator (LPCMP)

Enumeration Type Documentation

◆ sensor_attribute_mcux_lpcmp

lpcmp attribute types.

Enumerator
SENSOR_ATTR_MCUX_LPCMP_POSITIVE_MUX_INPUT 

LPCMP positive input mux.

SENSOR_ATTR_MCUX_LPCMP_NEGATIVE_MUX_INPUT 

LPCMP negative input mux.

SENSOR_ATTR_MCUX_LPCMP_DAC_ENABLE 

LPCMP internal DAC enable.

0b: disable 1b: enable

SENSOR_ATTR_MCUX_LPCMP_DAC_HIGH_POWER_MODE_ENABLE 

LPCMP internal DAC high power mode disabled.

0b: disable 1b: enable

SENSOR_ATTR_MCUX_LPCMP_DAC_REFERENCE_VOLTAGE_SOURCE 

LPCMP internal DAC voltage reference source.

SENSOR_ATTR_MCUX_LPCMP_DAC_OUTPUT_VOLTAGE 

LPCMP internal DAC output voltage value.

SENSOR_ATTR_MCUX_LPCMP_SAMPLE_ENABLE 

LPCMP internal filter sample enable.

SENSOR_ATTR_MCUX_LPCMP_FILTER_COUNT 

LPCMP internal filter sample count.

SENSOR_ATTR_MCUX_LPCMP_FILTER_PERIOD 

LPCMP internal filter sample period.

SENSOR_ATTR_MCUX_LPCMP_COUTA_WINDOW_ENABLE 

LPCMP window signal invert.

SENSOR_ATTR_MCUX_LPCMP_COUTA_WINDOW_SIGNAL_INVERT_ENABLE 

LPCMP window signal invert.

SENSOR_ATTR_MCUX_LPCMP_COUTA_SIGNAL 

LPCMP COUTA signal value when a window is closed: 00b: latched 01b: set to low 11b: set to high.

SENSOR_ATTR_MCUX_LPCMP_COUT_EVENT_TO_CLOSE_WINDOW 

LPCMP COUT event to close an active window: xx0b: COUT event cannot close an active window 001b: COUT rising edge event close an active window 011b: COUT falling edge event close an active window 1x1b: COUT both edges event close an active window.

◆ sensor_channel_mcux_lpcmp

lpcmp channels.

Enumerator
SENSOR_CHAN_MCUX_LPCMP_OUTPUT 

LPCMP output.

◆ sensor_trigger_type_mcux_lpcmp

lpcmp trigger types.

Enumerator
SENSOR_TRIG_MCUX_LPCMP_OUTPUT_RISING 

LPCMP output rising event trigger.

SENSOR_TRIG_MCUX_LPCMP_OUTPUT_FALLING 

LPCMP output falling event trigger.