![]() |
IoT Drivers
v3.3.0 (S2022)
Engineering in Software Technology
|
Driver to CO2 using the Intelligent Infrared CO2 Module MH-Z19. More...
#include <stdbool.h>
#include <stdint.h>
#include <serial.h>
Go to the source code of this file.
Enumerations | |
enum | mh_z19_returnCode_t { MHZ19_OK, MHZ19_NO_MEASSURING_AVAILABLE, MHZ19_NO_SERIAL, MHZ19_PPM_MUST_BE_GT_999 } |
MH-Z19 Driver return codes. More... | |
Functions | |
void | mh_z19_initialise (serial_comPort_t com_port) |
Initialise the driver. More... | |
void | mh_z19_injectCallBack (void(*mh_z19_callBack)(uint16_t)) |
Inject a call-back function to the driver. More... | |
mh_z19_returnCode_t | mh_z19_takeMeassuring (void) |
Perform a new CO2 meassuring. More... | |
mh_z19_returnCode_t | mh_z19_getCo2Ppm (uint16_t *ppm) |
Get latest CO2 value. More... | |
mh_z19_returnCode_t | mh_z19_setAutoCalibration (bool on) |
Enable/disable auto calibration of the sensor. More... | |
mh_z19_returnCode_t | mh_z19_calibrateZeroPoint (void) |
Zero calibration of the sensor. More... | |
mh_z19_returnCode_t | mh_z19_calibrateSpanPoint (uint16_t ppm) |
Span calibration of the sensor. More... | |
Driver to CO2 using the Intelligent Infrared CO2 Module MH-Z19.