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
135#ifdef MODULE_MHZ19_UART
142void mhz19_set_auto_calibration(mhz19_t *dev,
bool enable);
149void mhz19_calibrate_zero_point(mhz19_t *dev);
Low-level GPIO peripheral driver interface definitions.
Low-level UART peripheral driver interface definition.
int mhz19_init(mhz19_t *dev, const mhz19_params_t *params)
Initialize a MH-Z19 device.
int mhz19_get_ppm(mhz19_t *dev, int16_t *ppm)
Get measured CO2 ppm value.
const saul_driver_t mhz19_ppm_saul_driver
Export SAUL endpoint.
@ MHZ19_ERR_CHECKSUM
checksum failure on received data
@ MHZ19_ERR_INIT
error initializing the device
@ MHZ19_OK
everything was fine
@ MHZ19_ERR_TIMEOUT
timeout on retrieving sensor data
uint_fast8_t uart_t
Define default UART type identifier.
Internal addresses, registers, constants for the MH-Z19 CO2 sensor.
Mutex for thread synchronization.
Definition of the RIOT actuator/sensor interface.
Functionality for reading [S]ensor [A]ctuator [U]ber [L]ayer sensors as SenML.