|
Zephyr Project API 4.3.99
A Scalable Open Source RTOS
|
Analog Devices MAX30210 High-Accuracy Temperature Sensor. More...
Files | |
| file | max30210.h |
| Header file for extended sensor API of MAX30210 sensor. | |
Analog Devices MAX30210 High-Accuracy Temperature Sensor.
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/sensor/max30210.h>
Custom sensor attributes for MAX30210.
| Enumerator | |
|---|---|
| SENSOR_ATTR_MAX30210_INTERRUPT_POLARITY | Interrupt polarity (reserved for future use). |
| SENSOR_ATTR_MAX30210_CONTINUOUS_CONVERSION_MODE | Enable continuous conversion mode.
|
| SENSOR_ATTR_MAX30210_TEMP_INC_FAST_THRESH | Temperature sample-to-sample increment threshold (°C) for fast-change detection.
|
| SENSOR_ATTR_MAX30210_TEMP_DEC_FAST_THRESH | Temperature sample-to-sample decrement threshold (°C) for fast-change detection.
|
| SENSOR_ATTR_MAX30210_RATE_CHG_FILTER | Rate-of-change filter coefficient (0-7).
|
| SENSOR_ATTR_MAX30210_HI_TRIP_COUNT | High-temperature alarm trip count (1-4).
|
| SENSOR_ATTR_MAX30210_LO_TRIP_COUNT | Low-temperature alarm trip count (1-4).
|
| SENSOR_ATTR_MAX30210_HI_TRIP_COUNT_RESET | Reset high-temperature trip counter.
|
| SENSOR_ATTR_MAX30210_LO_TRIP_COUNT_RESET | Reset low-temperature trip counter.
|
| SENSOR_ATTR_MAX30210_HI_NON_CONSECUTIVE_MODE | High-temperature alarm non-consecutive mode.
|
| SENSOR_ATTR_MAX30210_LO_NON_CONSECUTIVE_MODE | Low-temperature alarm non-consecutive mode.
|
| SENSOR_ATTR_MAX30210_ALERT_MODE | Alert mode (comparator vs interrupt).
|
| SENSOR_ATTR_MAX30210_SOFTWARE_RESET | Perform software reset.
|
| SENSOR_ATTR_MAX30210_TEMP_CONVERT | Trigger single temperature conversion (reserved for future use). |
| SENSOR_ATTR_MAX30210_AUTO_MODE | Enable auto mode (reserved for future use). |
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/sensor/max30210.h>
Values for SENSOR_ATTR_SAMPLING_FREQUENCY (Hz)
When setting the sampling frequency, sensor_value.val1 is the integer part (Hz) and sensor_value.val2 is the fractional part in millionths. For fractional rates (e.g. 0.0625 Hz), use val1=0 and val2=62500.
#include </__w/bridle/bridle/workspace/zephyr/include/zephyr/drivers/sensor/max30210.h>
Custom sensor trigger types for MAX30210.
| Enumerator | |
|---|---|
| SENSOR_TRIG_TEMP_INC_FAST | Trigger fires when temperature increases beyond the fast threshold. |
| SENSOR_TRIG_TEMP_DEC_FAST | Trigger fires when temperature decreases beyond the fast threshold. |