BME680 Library  0.5
Library for the Bosch BME680 Air Quality sensor
bme680_comms.c File Reference

Sensor driver for the Bosch BME680 air quality sensor. This library supports i2c and 4-wire SPI connections, reads temperature, pressure, relative humidity, and VOC levels, and provides limited support for adjusting the sensors settings. More...

#include "bme680.h"

Functions

void bme680_read (bme680_t *dev, unsigned char reg_addr, unsigned char *reg_data, unsigned short len)
 Internal function used to write values to the specified registers of the BME680 sensor. More...
 
void bme680_write (bme680_t *dev, unsigned char reg_addr, unsigned char *reg_data, unsigned short len)
 Internal function used to read values from the specified registers of the BME680 sensor. More...
 

Detailed Description

Sensor driver for the Bosch BME680 air quality sensor. This library supports i2c and 4-wire SPI connections, reads temperature, pressure, relative humidity, and VOC levels, and provides limited support for adjusting the sensors settings.

Author
Matthew Matz
Version
0.5

Function Documentation

◆ bme680_read()

void bme680_read ( bme680_t dev,
unsigned char  reg_addr,
unsigned char *  reg_data,
unsigned short  len 
)

Internal function used to write values to the specified registers of the BME680 sensor.

Parameters
*devpointer to the bme680 device.
reg_addrthe address of first register to write to.
*reg_datathe array containing alternating data and address bytes to write.
lenthe total number of data and address bytes to write.

◆ bme680_write()

void bme680_write ( bme680_t dev,
unsigned char  reg_addr,
unsigned char *  reg_data,
unsigned short  len 
)

Internal function used to read values from the specified registers of the BME680 sensor.

Parameters
*devpointer to the bme680 device.
reg_addrthe address of register to begin reading from.
*reg_datathe array to store the received data into.
lenthe number of bytes to read.