|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
Go to the source code of this file.
Functions | |
| BME280Status | BME280Init (void) |
| BME280Status | BME280MeasureAll (BME280Data *data) |
| Measures temperature, pressure, and humidity. | |
| uint8_t | BME280MeasureTemperature (uint8_t *data, Metadata meta, uint32_t idx) |
| BME280 sensor library function. | |
| uint8_t | BME280MeasurePressure (uint8_t *data, Metadata meta, uint32_t idx) |
| uint8_t | BME280MeasureHumidity (uint8_t *data, Metadata meta, uint32_t idx) |
| BME280Status BME280Init | ( | void | ) |
Definition at line 29 of file bme280_sensor.c.
| BME280Status BME280MeasureAll | ( | BME280Data * | data | ) |
Measures temperature, pressure, and humidity.
If you only need a single measurement channel, take all measurements and only take the needed measurement. Internally all channels need to be measured to get the value of a single channel.
| data |
Definition at line 85 of file bme280_sensor.c.
References data.
Referenced by BME280MeasureHumidity(), BME280MeasurePressure(), BME280MeasureTemperature(), and main().
| uint8_t BME280MeasureHumidity | ( | uint8_t * | data, |
| Metadata | meta, | ||
| uint32_t | idx | ||
| ) |
Definition at line 175 of file bme280_sensor.c.
References BME280_STATUS_OK, BME280MeasureAll(), data, data_len, EncodeDoubleMeasurement(), and SENSOR_OK.
Referenced by main().
| uint8_t BME280MeasurePressure | ( | uint8_t * | data, |
| Metadata | meta, | ||
| uint32_t | idx | ||
| ) |
Definition at line 152 of file bme280_sensor.c.
References BME280_STATUS_OK, BME280MeasureAll(), data, data_len, EncodeDoubleMeasurement(), and SENSOR_OK.
Referenced by main().
| uint8_t BME280MeasureTemperature | ( | uint8_t * | data, |
| Metadata | meta, | ||
| uint32_t | idx | ||
| ) |
BME280 sensor library function.
All three measurements (temperature, pressure, humidity) are measured and appropriate calibration are applied. Data gets encoded into a serialized measurement.
| data | Buffer to store measurement |
| ts | System time of measurement |
| idx | Sensor index |
Definition at line 129 of file bme280_sensor.c.
References BME280_STATUS_OK, BME280MeasureAll(), data, data_len, EncodeDoubleMeasurement(), and SENSOR_OK.
Referenced by main().