ruuvi.drivers.c
${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
|
Go to the source code of this file.
Macros | |
#define | BME280_HUMIDITY_OFFSET (-3.0f) |
Generally, BMEs show 3% too little. Compensate. More... | |
Interface for BME280 basic usage. The underlying platform must provide functions for SPI and/or I2C access, ruuvi_interface_spi_bme280.h and ruuvi_interface_i2c_bme280.h.
Testing the interface with ruuvi_driver_sensor_test.h
Definition in file ruuvi_interface_bme280.h.
#define BME280_HUMIDITY_OFFSET (-3.0f) |
Generally, BMEs show 3% too little. Compensate.
Definition at line 49 of file ruuvi_interface_bme280.h.
void bosch_delay_ms | ( | uint32_t | time_ms | ) |
Implement delay in Bosch signature.
[in] | time_ms | time to delay |
Definition at line 128 of file ruuvi_interface_bme280.c.
rd_status_t ri_bme280_data_get | ( | rd_sensor_data_t *const | data | ) |
Definition at line 853 of file ruuvi_interface_bme280.c.
rd_status_t ri_bme280_dsp_get | ( | uint8_t * | dsp, |
uint8_t * | parameter | ||
) |
Definition at line 724 of file ruuvi_interface_bme280.c.
rd_status_t ri_bme280_dsp_set | ( | uint8_t * | dsp, |
uint8_t * | parameter | ||
) |
Definition at line 600 of file ruuvi_interface_bme280.c.
rd_status_t ri_bme280_init | ( | rd_sensor_t * | p_sensor, |
rd_bus_t | bus, | ||
uint8_t | handle | ||
) |
Initialize BME280 into low-power mode
Definition at line 209 of file ruuvi_interface_bme280.c.
rd_status_t ri_bme280_mode_get | ( | uint8_t * | mode | ) |
Definition at line 806 of file ruuvi_interface_bme280.c.
rd_status_t ri_bme280_mode_set | ( | uint8_t * | mode | ) |
Definition at line 773 of file ruuvi_interface_bme280.c.
rd_status_t ri_bme280_resolution_get | ( | uint8_t * | resolution | ) |
Definition at line 418 of file ruuvi_interface_bme280.c.
rd_status_t ri_bme280_resolution_set | ( | uint8_t * | resolution | ) |
Definition at line 390 of file ruuvi_interface_bme280.c.
rd_status_t ri_bme280_samplerate_get | ( | uint8_t * | samplerate | ) |
Definition at line 338 of file ruuvi_interface_bme280.c.
rd_status_t ri_bme280_samplerate_set | ( | uint8_t * | samplerate | ) |
Definition at line 312 of file ruuvi_interface_bme280.c.
rd_status_t ri_bme280_scale_get | ( | uint8_t * | scale | ) |
Definition at line 462 of file ruuvi_interface_bme280.c.
rd_status_t ri_bme280_scale_set | ( | uint8_t * | scale | ) |
Definition at line 434 of file ruuvi_interface_bme280.c.
rd_status_t ri_bme280_uninit | ( | rd_sensor_t * | environmental_sensor, |
rd_bus_t | bus, | ||
uint8_t | handle | ||
) |
Definition at line 257 of file ruuvi_interface_bme280.c.