|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
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... | |
NXP MCUX analog comparator (ACMP).
| #define MCUX_ACMP_HAS_DISCRETE_MODE 0 |
#include <zephyr/drivers/sensor/mcux_acmp.h>
1 if the ACMP supports discrete mode, 0 otherwise.
| #define MCUX_ACMP_HAS_HYSTCTR 0 |
#include <zephyr/drivers/sensor/mcux_acmp.h>
1 if the ACMP supports hysteresis control, 0 otherwise.
| #define MCUX_ACMP_HAS_INNSEL 0 |
#include <zephyr/drivers/sensor/mcux_acmp.h>
1 if the ACMP supports negative input port selection, 0 otherwise.
| #define MCUX_ACMP_HAS_INPSEL 0 |
#include <zephyr/drivers/sensor/mcux_acmp.h>
1 if the ACMP supports positive input port selection, 0 otherwise.
| #define MCUX_ACMP_HAS_OFFSET 0 |
#include <zephyr/drivers/sensor/mcux_acmp.h>
1 if the ACMP supports hard block offset control, 0 otherwise.
| #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.
| #define MCUX_ACMP_HAS_WINDOW_MODE 1 |
#include <zephyr/drivers/sensor/mcux_acmp.h>
1 if the ACMP supports window mode, 0 otherwise.
#include <zephyr/drivers/sensor/mcux_acmp.h>
Custom sensor attributes for MCUX ACMP.
#include <zephyr/drivers/sensor/mcux_acmp.h>
Custom sensor channels for MCUX ACMP.
| Enumerator | |
|---|---|
| SENSOR_CHAN_MCUX_ACMP_OUTPUT | Analog Comparator Output. |
#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. |