ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_interface_spi_bme280.h
Go to the documentation of this file.
1 #ifndef RUUVI_INTERFACE_SPI_BME280_H
2 #define RUUVI_INTERFACE_SPI_BME280_H
3 #include "ruuvi_driver_error.h"
4 #include <stdbool.h>
5 #include <stddef.h>
6 #include <stdint.h>
46 int8_t ri_spi_bme280_write (uint8_t dev_id, uint8_t reg_addr,
47  uint8_t * p_reg_data, uint16_t len);
48 
60 int8_t ri_spi_bme280_read (uint8_t dev_id, uint8_t reg_addr,
61  uint8_t * p_reg_data, uint16_t len);
63 #endif
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.
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.
Ruuvi error codes and error check function.