64#ifdef MODULE_SGP30_STRICT
89#ifdef MODULE_SGP30_STRICT
144#if defined(MODULE_SGP30_STRICT) || defined(DOXYGEN)
uint_fast8_t i2c_t
Default i2c_t type definition.
int sgp30_get_baseline(sgp30_t *dev, sgp30_data_t *data)
Returns baseline values.
bool sgp30_ready(sgp30_t *dev)
If device is ready to start reading measurements.
int sgp30_read_raw_measurements(sgp30_t *dev, sgp30_raw_data_t *data)
Read raw signals H2 (sout_H2) and Ethanol(sout_EthOH)
int sgp30_read_serial_number(sgp30_t *dev, uint8_t *buf, size_t len)
Read the serial number from the sensor.
int sgp30_set_baseline(sgp30_t *dev, sgp30_data_t *data)
Set new baseline values.
int sgp30_read_measurements(sgp30_t *dev, sgp30_data_t *data)
Read air quality signals.
int sgp30_start_air_quality(sgp30_t *dev)
Start air quality measurements, called on sgp30_init.
int sgp30_set_absolute_humidity(sgp30_t *dev, uint32_t humidity)
Set absolute humidity value for on-chop humidity compensation.
int sgp30_reset(sgp30_t *dev)
Performs a soft reset on the device.
int sgp30_read_future_set(sgp30_t *dev, uint16_t *version)
Initialize the given device.
int sgp30_init(sgp30_t *dev, const sgp30_params_t *params)
Initialize the given device.
Low-level I2C peripheral driver interface definition.
uint16_t tvoc
The last measurement of the IAQ-calculated Total Volatile Organic Compounds in ppb.
uint16_t eco2
The last measurement of the IAQ-calculated equivalent CO2 in ppm.
Device initialization parameters.
i2c_t i2c_dev
I2C dev the sensor is connected to.
Set of measured raw values.
uint16_t raw_ethanol
raw Ethanol signal, only for testing purposes
uint16_t raw_h2
raw H2 signal, only for testing purposes
Device descriptor for the driver.
sgp30_params_t params
parameters of the sensor device