File SEN5X_API.h
FileList > firmware > SEN5X_API.h
Go to the source code of this file
Header for the Sensirion SEN5X sensor API. More...
#include <Arduino.h>
Public Attributes
| Type | Name |
|---|---|
| float | sen5x_hum Relative humidity. |
| float | sen5x_mc_10p0 PM10 mass concentration. |
| float | sen5x_mc_1p0 PM1.0 mass concentration. |
| float | sen5x_mc_2p5 PM2.5 mass concentration. |
| float | sen5x_mc_4p0 PM4.0 mass concentration. |
| float | sen5x_nox Nitrogen Oxides (NOx) index. |
| float | sen5x_temp Temperature. |
| float | sen5x_voc Volatile Organic Compounds (VOC) index. |
Public Functions
| Type | Name |
|---|---|
| void | sen5x_inicializar (void) Initializes the SEN5X sensor. |
| bool | sen5x_leer (void) Reads the latest data measured by the sensor and updates the global variables sen5x_* with the new values. |
Detailed Description
Declares functions and global variables for interacting with the sensor.
Author:
[ALD-DSL/ATARI_RESEARCH_LAB]
Date:
[2024-07-22/2025-10-15]
Version:
2.0
Copyright:
GNU General Public License version 3 or later
Note:
This module is an abstraction layer over the SensirionI2CSen5x library.
Public Attributes Documentation
variable sen5x_hum
Relative humidity.
variable sen5x_mc_10p0
PM10 mass concentration.
variable sen5x_mc_1p0
PM1.0 mass concentration.
variable sen5x_mc_2p5
PM2.5 mass concentration.
variable sen5x_mc_4p0
PM4.0 mass concentration.
variable sen5x_nox
Nitrogen Oxides (NOx) index.
variable sen5x_temp
Temperature.
variable sen5x_voc
Volatile Organic Compounds (VOC) index.
Public Functions Documentation
function sen5x_inicializar
Initializes the SEN5X sensor.
Searches for the sensor on the I2C bus, resets it, and starts measurements.
function sen5x_leer
Reads the latest data measured by the sensor and updates the global variables sen5x_* with the new values.
Returns:
True if the reading was successful
The documentation for this class was generated from the following file firmware/SEN5X_API.h