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
uint_fast8_t i2c_t
Default i2c_t type definition.
Low-level I2C peripheral driver interface definition.
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...
int8_t scd30_reset(scd30_t *dev)
Soft reset sensor.
int8_t scd30_get_param(scd30_t *dev, uint16_t param, uint16_t *val)
Get value set for a configuration parameter on the device.
int scd30_start_periodic_measurement(scd30_t *dev, uint16_t *interval, uint16_t *apc)
Initializes Continuous Measurements.
int8_t scd30_stop_measurements(const scd30_t *dev)
Stop Continuous measurements.
@ SCD30_CRC_ERROR
Invalid value or length.
@ SCD30_NO_NEW_DATA
No new data.
@ SCD30_INVALID_VALUE
Device doesn't exist.
@ SCD30_COM_FAILED
Communication with device failed.
int8_t scd30_init(scd30_t *dev, const scd30_params_t *params)
Initialize SCD30.
int8_t scd30_set_param(const scd30_t *dev, uint16_t param, uint16_t val)
Set a configuration parameter of device.
int8_t scd30_read_triggered(scd30_t *dev, scd30_measurement_t *result)
read CO2 concentration, temperature and relative humidity once
Measurement from SCD30 sensor.
float temperature
Temperature measured in °C.
float co2_concentration
CO2 concentration in ppm.
float relative_humidity
Relative humidity measured in %.
Device initialization parameters.
i2c_t i2c_dev
I2C device which is used.
uint8_t i2c_addr
I2C address.
Device descriptor for the SCD30 sensor.
scd30_params_t params
Device initialization parameters.
Functionality for reading [S]ensor [A]ctuator [U]ber [L]ayer sensors as SenML.
xtimer interface definitions