18 lines
430 B
C
18 lines
430 B
C
#ifndef SCD30_H
|
|
#define SCD30_H
|
|
|
|
#include <stdint.h>
|
|
|
|
// Data structure to hold SCD30 sensor data
|
|
typedef struct {
|
|
float co2; // CO2 concentration in ppm
|
|
float temp; // Temperature in degrees Celsius
|
|
float humidity; // Relative humidity in percentage
|
|
} scd30_data_t;
|
|
|
|
// Function prototypes
|
|
void scd30_init(void);
|
|
void scd30_start_measurement(void);
|
|
int scd30_read_data(scd30_data_t *data);
|
|
|
|
#endif // SCD30_H
|