SRK Version of mDot LoRa_Sensormode_SRK

Dependencies:   libmDot mbed-rtos mbed

Fork of mDot_LoRa_Sensornode by Adrian Mitevski

Embed: (wiki syntax)

« Back to documentation index

BME280Config Class Reference

BME280Config Class Reference

A configuration container for the BME280 Sensor. More...

#include <BME280Config.h>

Public Member Functions

void build (BME280_MODE)
 Generates a configuration according to the chosen BME280_MODE.
uint8_t getOversamplingTemperature ()
 Gets the temperature measurements oversampling value for the configuration and initialization of the BME280.
uint8_t getOversamplingPressure ()
 Gets the pressure measurements oversampling value for the configuration and initialization of the BME280.
uint8_t getOversamplingHumidity ()
 Gets the humidity measurements oversampling value for the configuration and initialization of the BME280.
uint8_t getMode ()
 Gets the sensor internal Mode.

Detailed Description

A configuration container for the BME280 Sensor.

All its configuration values are stored an held inside this Class. Depending on the BME280_MODE it sets all the configuration values.

Definition at line 69 of file BME280Config.h.


Member Function Documentation

void build ( BME280_MODE  desiredMode )

Generates a configuration according to the chosen BME280_MODE.

Parameters:
desiredModethe mode to build the configuration according to

Definition at line 20 of file BME280Config.cpp.

uint8_t getMode (  )

Gets the sensor internal Mode.

Returns:
sensor internal Mode

Definition at line 119 of file BME280Config.cpp.

uint8_t getOversamplingHumidity (  )

Gets the humidity measurements oversampling value for the configuration and initialization of the BME280.

Returns:
humidity oversampling register value

Definition at line 115 of file BME280Config.cpp.

uint8_t getOversamplingPressure (  )

Gets the pressure measurements oversampling value for the configuration and initialization of the BME280.

Returns:
pressure oversampling register value

Definition at line 111 of file BME280Config.cpp.

uint8_t getOversamplingTemperature (  )

Gets the temperature measurements oversampling value for the configuration and initialization of the BME280.

Returns:
temperature oversampling register value

Definition at line 107 of file BME280Config.cpp.