Go to the documentation of this file.
45 #ifdef MODULE_MHZ19_UART
51 #ifdef MODULE_MHZ19_PWM
69 #ifdef MODULE_MHZ19_UART
75 bool auto_calibration;
82 const mhz19_params_t *params;
86 uint8_t rxmem[MHZ19_BUF_SIZE];
90 #ifdef MODULE_MHZ19_PWM
120 int mhz19_init(mhz19_t *dev,
const mhz19_params_t *params);
135 #ifdef MODULE_MHZ19_UART
142 void mhz19_set_auto_calibration(mhz19_t *dev,
bool enable);
149 void mhz19_calibrate_zero_point(mhz19_t *dev);
Internal addresses, registers, constants for the MH-Z19 CO2 sensor.
int mhz19_get_ppm(mhz19_t *dev, int16_t *ppm)
Get measured CO2 ppm value.
@ MHZ19_ERR_INIT
error initializing the device
const saul_driver_t mhz19_ppm_saul_driver
Export SAUL endpoint.
unsigned int uart_t
Define default UART type identifier.
Low-level UART peripheral driver interface definition.
Definition of the RIOT actuator/sensor interface.
Mutex for thread synchronization.
@ MHZ19_ERR_CHECKSUM
checksum failure on received data
Low-level GPIO peripheral driver interface definitions.
@ MHZ19_ERR_TIMEOUT
timeout on retrieving sensor data
int mhz19_init(mhz19_t *dev, const mhz19_params_t *params)
Initialize a MH-Z19 device.
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
@ MHZ19_OK
everything was fine