1#ifndef SERIAL_SIM_BMP390_H
2#define SERIAL_SIM_BMP390_H
6#ifndef BMP3_NO_OVERSAMPLING
7#define BMP3_NO_OVERSAMPLING 0x00
10#ifndef BMP3_OVERSAMPLING_2X
11#define BMP3_OVERSAMPLING_2X 0x01
14#ifndef BMP3_OVERSAMPLING_4X
15#define BMP3_OVERSAMPLING_4X 0x02
18#ifndef BMP3_OVERSAMPLING_8X
19#define BMP3_OVERSAMPLING_8X 0x03
22#ifndef BMP3_OVERSAMPLING_16X
23#define BMP3_OVERSAMPLING_16X 0x04
26#ifndef BMP3_OVERSAMPLING_32X
27#define BMP3_OVERSAMPLING_32X 0x05
30#ifndef BMP3_IIR_FILTER_COEFF_3
31#define BMP3_IIR_FILTER_COEFF_3 0x02
34#ifndef BMP3_ODR_100_HZ
35#define BMP3_ODR_100_HZ 0x01
39#define BMP3_ODR_50_HZ 0x02
74 this->temperature = temp.temperature;
100 sensors_event_t temp;
104 temp_f = temp.temperature;
#define BMP3_IIR_FILTER_COEFF_3
#define BMP3_NO_OVERSAMPLING
#define BMP3_OVERSAMPLING_2X
void setTemperatureOversampling(int oversampling)
void setConversionDelay(int delay)
void setOutputDataRate(int rate)
void setPressureOversampling(int oversampling)
void setIIRFilterCoeff(int coeff)
float readAltitude(float seaLevelPressure=1013.25)
void updateTemp(sensors_event_t &temp)
void updateAlt(float &alt)
void updatePres(float &pres)
static SerialSim & getInstance()