File T6793_API.cpp
FileList > firmware > T6793_API.cpp
Go to the source code of this file
Implementation of the API for the Telaire T6793-5K CO2 sensor. More...
#include "T6793_API.h"#include "T67XX.h"#include "Debug.h"
Public Attributes
| Type | Name |
|---|---|
| uint16_t | t6793_co2 = 0Definition of the global variable. |
| T67XX | t6793_sensor Instance of the library object for the sensor. |
Public Functions
| Type | Name |
|---|---|
| void | t6793_inicializar (void) Initializes the T6793 sensor, configures I2C communication and disables ABC calibration. |
| bool | t6793_leer (void) Reads the CO2 value from the sensor and updates the global variable 't6793_co2'. |
Macros
| Type | Name |
|---|---|
| define | DEBUG_LEVEL [**DEBUG\_T6793**](Debug_8h.md#define-debug_t6793)Redefinition of debug level for this source file. |
| define | DEBUG_TAG "T6793\_API"Tag when sending debug messages. |
Detailed Description
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 T67XX library.
Public Attributes Documentation
variable t6793_co2
Definition of the global variable.
variable t6793_sensor
Instance of the library object for the sensor.
Public Functions Documentation
function t6793_inicializar
Initializes the T6793 sensor, configures I2C communication and disables ABC calibration.
function t6793_leer
Reads the CO2 value from the sensor and updates the global variable 't6793_co2'.
Returns:
True if the reading was successful.
Macro Definition Documentation
define DEBUG_LEVEL
Redefinition of debug level for this source file.
define DEBUG_TAG
Tag when sending debug messages.
The documentation for this class was generated from the following file firmware/T6793_API.cpp