Go to the documentation of this file.
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
int32_t differential_pressure
Differential Pressure measured in centiPa.
@ SDP3x_IOERROR
I/O error.
bool continuous_measurement
Device measuring data continuously.
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.
int sdp3x_init(sdp3x_t *dev, const sdp3x_params_t *params)
Initialize SDP3x.
int32_t sdp3x_read_single_differential_pressure(sdp3x_t *dev, uint8_t flags)
Read current differential_pressure value.
unsigned int i2c_t
Default i2c_t type definition.
gpio_t irq_pin
IRQ pin to check data ready.
int8_t sdp3x_soft_reset(const sdp3x_t *dev)
Resets all I2C devices.
int8_t sdp3x_start_continuous(sdp3x_t *dev, uint8_t flags)
Start Continuous Measuring.
int8_t sdp3x_enter_sleep(const sdp3x_t *dev)
Activates sleep mode.
sdp3x_params_t params
Device initialization parameters.
@ SDP3x_WRONGSIZE
Wrong size of array for method.
int8_t sdp3x_read_single_measurement(sdp3x_t *dev, uint8_t flags, sdp3x_measurement_t *result)
read temperature and differential pressure
int32_t sdp3x_read_single_temperature(sdp3x_t *dev, uint8_t flags)
Read current temperature value.
uint8_t i2c_addr
I2C address.
Mutex for thread synchronization.
int8_t sdp3x_read_continuous(sdp3x_measurement_t *result, sdp3x_t *dev)
read temperature and differential pressure
@ SDP3x_OK
all went as expected
Low-level GPIO peripheral driver interface definitions.
@ SDP3x_NODATA
No Data available.
Device descriptor for the SDP3x sensor.
Definition of the generic [S]ensor [A]ctuator [U]ber [L]ayer.
@ SDP3x_CRCERROR
CRC-Check failed.
i2c_t i2c_dev
I2C device which is used.
Measurement from SDP3x sensor.
int32_t temperature
Temperature measured in centiĀ°C.
Low-level I2C peripheral driver interface definition.
xtimer interface definitions
Device initialization parameters.
mutex_t mutex
Mutex for this sdp3x dev.