convenience struct
This commit is contained in:
parent
0461e5679b
commit
cc7035c7a9
17
include/scd4x_data.h
Normal file
17
include/scd4x_data.h
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#ifndef SCD4X_DATA_H
|
||||||
|
#define SCD4X_DATA_H
|
||||||
|
|
||||||
|
struct scd4x_data {
|
||||||
|
uint16_t co2;
|
||||||
|
int32_t temperature;
|
||||||
|
int32_t humidity;
|
||||||
|
};
|
||||||
|
typedef struct scd4x_data scd4x_data_t;
|
||||||
|
|
||||||
|
struct scd4x_config {
|
||||||
|
scd4x_data_t* measure;
|
||||||
|
uint16_t delay;
|
||||||
|
};
|
||||||
|
typedef struct scd4x_config scd4x_config_t;
|
||||||
|
|
||||||
|
#endif
|
Loading…
x
Reference in New Issue
Block a user