Go to the documentation of this file.
38 #define SCD30_VERSION 0xD100
39 #define SCD30_STATUS 0x0202
42 #define SCD30_DATA 0x0300
44 #define SCD30_START 0x0010
45 #define SCD30_STOP 0x0104
46 #define SCD30_SOFT_RESET 0xD304
48 #define SCD30_INTERVAL 0x4600
50 #define SCD30_ASC 0x5306
51 #define SCD30_FRC 0x5204
52 #define SCD30_T_OFFSET 0x5403
53 #define SCD30_A_OFFSET 0x5102
int8_t scd30_init(scd30_t *dev, const scd30_params_t *params)
Initialize SCD30.
Device descriptor for the SCD30 sensor.
float relative_humidity
Relative humidity measured in %.
int8_t scd30_reset(scd30_t *dev)
Soft reset sensor.
int8_t scd30_stop_measurements(const scd30_t *dev)
Stop Continuous measurements.
float co2_concentration
CO2 concentration in ppm.
int8_t scd30_get_param(scd30_t *dev, uint16_t param, uint16_t *val)
Get value set for a configuration parameter on the device.
unsigned int i2c_t
Default i2c_t type definition.
i2c_t i2c_dev
I2C device which is used.
uint8_t i2c_addr
I2C address.
int scd30_start_periodic_measurement(scd30_t *dev, uint16_t *interval, uint16_t *apc)
Initializes Continuous Measurements.
int8_t scd30_set_param(const scd30_t *dev, uint16_t param, uint16_t val)
Set a configuration parameter of device.
Measurement from SCD30 sensor.
scd30_params_t params
Device initialization parameters.
@ SCD30_CRC_ERROR
Invalid value or length.
int8_t scd30_read_triggered(scd30_t *dev, scd30_measurement_t *result)
read CO2 concentration, temperature and relative humidity once
@ SCD30_NO_NEW_DATA
No new data.
@ SCD30_COM_FAILED
Communication with device failed.
Device initialization parameters.
uint8_t scd30_read_periodic(scd30_t *dev, scd30_measurement_t *result)
read co2 concentration, temperature and relative humidity when continuous measurements are being take...
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
Low-level I2C peripheral driver interface definition.
float temperature
Temperature measured in °C.
xtimer interface definitions
@ SCD30_INVALID_VALUE
Device doesn't exist.