bmp280 more options

add option to user for temp oversampling and possibility to skipp a specific measure
This commit is contained in:
lilian 2016-09-15 10:42:58 +02:00
parent 12d0da0c58
commit b430bf86cb
2 changed files with 5 additions and 5 deletions

View file

@ -65,6 +65,7 @@ typedef enum {
* Pressure oversampling settings
*/
typedef enum {
BMP280_SKIPPED = 0, /* no measurement */
BMP280_ULTRA_LOW_POWER = 1, /* oversampling x1 */
BMP280_LOW_POWER = 2, /* oversampling x2 */
BMP280_STANDARD = 3, /* oversampling x4 */
@ -94,6 +95,7 @@ typedef struct {
BMP280_Mode mode;
BMP280_Filter filter;
BMP280_Oversampling oversampling; // pressure oversampling
BMP280_Oversampling oversampling_temperature; // temperature oversampling
BMP280_Oversampling oversampling_humidity;
BMP280_StandbyTime standby;
} bmp280_params_t;