mhz19.h File Reference

Interface definition for the MH-Z19 CO2 sensor driver. More...

Detailed Description

Interface definition for the MH-Z19 CO2 sensor driver.

Author
Koen Zandberg koen@.nosp@m.berg.nosp@m.zand..nosp@m.net
Christian Manal manal.nosp@m.@uni.nosp@m.-brem.nosp@m.en.d.nosp@m.e
Bas Stottelaar basst.nosp@m.otte.nosp@m.laar@.nosp@m.gmai.nosp@m.l.com

Definition in file mhz19.h.

#include <stdbool.h>
#include "saul.h"
+ Include dependency graph for mhz19.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  { MHZ19_OK = 0, MHZ19_ERR_INIT = -1, MHZ19_ERR_TIMEOUT = -2, MHZ19_ERR_CHECKSUM = -3 }
 Status and error return codes. More...
 

Functions

int mhz19_init (mhz19_t *dev, const mhz19_params_t *params)
 Initialize a MH-Z19 device. More...
 
int mhz19_get_ppm (mhz19_t *dev, int16_t *ppm)
 Get measured CO2 ppm value. More...
 

Variables

const saul_driver_t mhz19_ppm_saul_driver
 Export SAUL endpoint.