ruuvi.drivers.c
${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
|
SPI read/write functions for Bosch BME280. More...
Go to the source code of this file.
Functions | |
int8_t | ri_spi_bme280_write (uint8_t dev_id, uint8_t reg_addr, uint8_t *p_reg_data, uint16_t len) |
SPI write function for BME280. More... | |
int8_t | ri_spi_bme280_read (uint8_t dev_id, uint8_t reg_addr, uint8_t *p_reg_data, uint16_t len) |
SPI Read function for BME280. More... | |
SPI read/write functions for Bosch BME280.
You'll need to get the official Bosch BME280 driver, available on GitHub. The wrappers will use Ruuvi Interface internally, so you don't have to port these to use BME280 on a new platform. You're required to port Yield and delay functions, GPIO functions and SPI functions.
General usage is:
Definition in file ruuvi_interface_spi_bme280.h.