39#define SDP3X_FLAG_MASS_FLOW 0x02
40#define SDP3X_FLAG_DIFF_PRESS 0x00
41#define SDP3X_FLAG_AVERAGE 0x01
42#define SDP3X_FLAG_NO_AVERAGE 0x00
Low-level GPIO peripheral driver interface definitions.
uint_fast8_t i2c_t
Default i2c_t type definition.
Low-level I2C peripheral driver interface definition.
Mutex for thread synchronization.
int8_t sdp3x_read_continuous(sdp3x_measurement_t *result, sdp3x_t *dev)
read temperature and differential pressure
@ SDP3x_WRONGSIZE
Wrong size of array for method.
@ SDP3x_NODATA
No Data available.
@ SDP3x_OK
all went as expected
@ SDP3x_IOERROR
I/O error.
@ SDP3x_CRCERROR
CRC-Check failed.
int32_t sdp3x_read_single_differential_pressure(sdp3x_t *dev, uint8_t flags)
Read current differential_pressure value.
int sdp3x_init(sdp3x_t *dev, const sdp3x_params_t *params)
Initialize SDP3x.
int8_t sdp3x_soft_reset(const sdp3x_t *dev)
Resets all I2C devices.
int32_t sdp3x_read_single_temperature(sdp3x_t *dev, uint8_t flags)
Read current temperature value.
int8_t sdp3x_stop_continuous(sdp3x_t *dev, xtimer_t *continuous_timer)
Stop Continuous Measuring.
int8_t sdp3x_exit_sleep(const sdp3x_t *dev)
Exit sleep mode.
int8_t sdp3x_read_single_measurement(sdp3x_t *dev, uint8_t flags, sdp3x_measurement_t *result)
read temperature and differential pressure
int8_t sdp3x_enter_sleep(const sdp3x_t *dev)
Activates sleep mode.
int8_t sdp3x_start_continuous(sdp3x_t *dev, uint8_t flags)
Start Continuous Measuring.
Measurement from SDP3x sensor.
int32_t temperature
Temperature measured in centiĀ°C.
int32_t differential_pressure
Differential Pressure measured in centiPa.
Device initialization parameters.
gpio_t irq_pin
IRQ pin to check data ready.
uint8_t i2c_addr
I2C address.
i2c_t i2c_dev
I2C device which is used.
Device descriptor for the SDP3x sensor.
mutex_t mutex
Mutex for this sdp3x dev.
bool continuous_measurement
Device measuring data continuously.
sdp3x_params_t params
Device initialization parameters.
Functionality for reading [S]ensor [A]ctuator [U]ber [L]ayer sensors as SenML.
xtimer interface definitions