44 #ifdef MODULE_MHZ19_UART 
   50 #ifdef MODULE_MHZ19_PWM 
   68 #ifdef MODULE_MHZ19_UART 
   74     bool auto_calibration;      
 
   81     const mhz19_params_t *params;   
 
   85     uint8_t rxmem[MHZ19_BUF_SIZE];  
 
   89 #ifdef MODULE_MHZ19_PWM 
  134 #ifdef MODULE_MHZ19_UART 
  141 void mhz19_set_auto_calibration(mhz19_t *dev, 
bool enable);
 
  148 void mhz19_calibrate_zero_point(mhz19_t *dev);
 
Low-level GPIO peripheral driver interface definitions.
 
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.
 
Low-level UART peripheral driver interface definition.