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

NXP MCUX analog comparator (ACMP). More...

Files

file  mcux_acmp.h
 Extended public API for the NXP MCUX Analog Comparator (ACMP).

Macros

#define MCUX_ACMP_HAS_INPSEL   0
 1 if the ACMP supports positive input port selection, 0 otherwise.
#define MCUX_ACMP_HAS_INNSEL   0
 1 if the ACMP supports negative input port selection, 0 otherwise.
#define MCUX_ACMP_HAS_OFFSET   0
 1 if the ACMP supports hard block offset control, 0 otherwise.
#define MCUX_ACMP_HAS_DISCRETE_MODE   0
 1 if the ACMP supports discrete mode, 0 otherwise.
#define MCUX_ACMP_HAS_HYSTCTR   0
 1 if the ACMP supports hysteresis control, 0 otherwise.
#define MCUX_ACMP_HAS_WINDOW_MODE   1
 1 if the ACMP supports window mode, 0 otherwise.
#define MCUX_ACMP_HAS_SAMPLE_CLOCK_SELECTION   1
 1 if the ACMP supports sample clock selection, 0 otherwise.

Enumerations

enum  sensor_channel_mcux_acmp { SENSOR_CHAN_MCUX_ACMP_OUTPUT = SENSOR_CHAN_PRIV_START }
 Custom sensor channels for MCUX ACMP. More...
enum  sensor_trigger_type_mcux_acmp { SENSOR_TRIG_MCUX_ACMP_OUTPUT_RISING = SENSOR_TRIG_PRIV_START , SENSOR_TRIG_MCUX_ACMP_OUTPUT_FALLING }
 Custom sensor triggers for MCUX ACMP. More...
enum  sensor_attribute_mcux_acmp {
  SENSOR_ATTR_MCUX_ACMP_OFFSET_LEVEL = SENSOR_ATTR_COMMON_COUNT , SENSOR_ATTR_MCUX_ACMP_HYSTERESIS_LEVEL , SENSOR_ATTR_MCUX_ACMP_DAC_VOLTAGE_REFERENCE , SENSOR_ATTR_MCUX_ACMP_DAC_VALUE ,
  SENSOR_ATTR_MCUX_ACMP_POSITIVE_PORT_INPUT , SENSOR_ATTR_MCUX_ACMP_POSITIVE_MUX_INPUT , SENSOR_ATTR_MCUX_ACMP_NEGATIVE_PORT_INPUT , SENSOR_ATTR_MCUX_ACMP_NEGATIVE_MUX_INPUT
}
 Custom sensor attributes for MCUX ACMP. More...

Detailed Description

NXP MCUX analog comparator (ACMP).

Macro Definition Documentation

◆ MCUX_ACMP_HAS_DISCRETE_MODE

#define MCUX_ACMP_HAS_DISCRETE_MODE   0

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

1 if the ACMP supports discrete mode, 0 otherwise.

◆ MCUX_ACMP_HAS_HYSTCTR

#define MCUX_ACMP_HAS_HYSTCTR   0

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

1 if the ACMP supports hysteresis control, 0 otherwise.

◆ MCUX_ACMP_HAS_INNSEL

#define MCUX_ACMP_HAS_INNSEL   0

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

1 if the ACMP supports negative input port selection, 0 otherwise.

◆ MCUX_ACMP_HAS_INPSEL

#define MCUX_ACMP_HAS_INPSEL   0

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

1 if the ACMP supports positive input port selection, 0 otherwise.

◆ MCUX_ACMP_HAS_OFFSET

#define MCUX_ACMP_HAS_OFFSET   0

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

1 if the ACMP supports hard block offset control, 0 otherwise.

◆ MCUX_ACMP_HAS_SAMPLE_CLOCK_SELECTION

#define MCUX_ACMP_HAS_SAMPLE_CLOCK_SELECTION   1

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

1 if the ACMP supports sample clock selection, 0 otherwise.

◆ MCUX_ACMP_HAS_WINDOW_MODE

#define MCUX_ACMP_HAS_WINDOW_MODE   1

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

1 if the ACMP supports window mode, 0 otherwise.

Enumeration Type Documentation

◆ sensor_attribute_mcux_acmp

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

Custom sensor attributes for MCUX ACMP.

Enumerator
SENSOR_ATTR_MCUX_ACMP_OFFSET_LEVEL 

Analog Comparator hard block offset.

SENSOR_ATTR_MCUX_ACMP_HYSTERESIS_LEVEL 

Analog Comparator hysteresis level.

SENSOR_ATTR_MCUX_ACMP_DAC_VOLTAGE_REFERENCE 

Analog Comparator Digital-to-Analog Converter voltage reference source.

SENSOR_ATTR_MCUX_ACMP_DAC_VALUE 

Analog Comparator Digital-to-Analog Converter value.

SENSOR_ATTR_MCUX_ACMP_POSITIVE_PORT_INPUT 

Analog Comparator positive port input.

SENSOR_ATTR_MCUX_ACMP_POSITIVE_MUX_INPUT 

Analog Comparator positive mux input.

SENSOR_ATTR_MCUX_ACMP_NEGATIVE_PORT_INPUT 

Analog Comparator negative port input.

SENSOR_ATTR_MCUX_ACMP_NEGATIVE_MUX_INPUT 

Analog Comparator negative mux input.

◆ sensor_channel_mcux_acmp

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

Custom sensor channels for MCUX ACMP.

Enumerator
SENSOR_CHAN_MCUX_ACMP_OUTPUT 

Analog Comparator Output.

◆ sensor_trigger_type_mcux_acmp

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

Custom sensor triggers for MCUX ACMP.

Enumerator
SENSOR_TRIG_MCUX_ACMP_OUTPUT_RISING 

Analog Comparator Output rising event trigger.

SENSOR_TRIG_MCUX_ACMP_OUTPUT_FALLING 

Analog Comparator Output falling event trigger.