|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
Sensirion SCD30 CO2 sensor. More...
Files | |
| file | scd30.h |
| Header file for extended sensor API of SCD30 sensor. | |
Enumerations | |
| enum | sensor_attribute_scd30 { SENSOR_ATTR_SCD30_TEMPERATURE_OFFSET = SENSOR_ATTR_PRIV_START , SENSOR_ATTR_SCD30_SENSOR_ALTITUDE , SENSOR_ATTR_SCD30_AMBIENT_PRESSURE , SENSOR_ATTR_SCD30_AUTOMATIC_CALIB_ENABLE , SENSOR_ATTR_SCD30_MEASUREMENT_INTERVAL } |
| Custom sensor attributes for SCD30. More... | |
Functions | |
| int | scd30_forced_recalibration (const struct device *dev, uint16_t target_concentration) |
| Perform a forced recalibration (FRC). | |
| int | scd30_soft_reset (const struct device *dev) |
| Soft-reset the SCD30. | |
Sensirion SCD30 CO2 sensor.
#include <zephyr/drivers/sensor/scd30.h>
Custom sensor attributes for SCD30.
#include <zephyr/drivers/sensor/scd30.h>
Perform a forced recalibration (FRC).
Interface manual: run continuous measurement at a 2 s interval for at least two minutes in a stable environment before calling this function. The command is sent while measurement is still running.
| dev | Pointer to the sensor device |
| target_concentration | Reference CO2 concentration in ppm (400-2000) |
| int scd30_soft_reset | ( | const struct device * | dev | ) |
#include <zephyr/drivers/sensor/scd30.h>
Soft-reset the SCD30.
Forces the same state as after power-up and blocks for the sensor boot time. The measurement interval and continuous-measurement state are reloaded from the sensor. Ambient pressure compensation is disabled.
| dev | Pointer to the sensor device |