35 #include <mraa/gpio.h> 37 #include "bmp280_regs.h" 56 mraa_gpio_context gpio;
230 BMP280_USAGE_MODE_T mode);
242 BMP280_OSRS_T_T rate);
254 BMP280_OSRS_P_T rate);
266 BME280_OSRS_H_T rate);
300 BMP280_MODES_T mode);
330 uint8_t reg, uint8_t *buffer,
int len);
342 uint8_t reg, uint8_t val);
bmp280_context bmp280_init(int bus, int addr, int cs)
Definition: bmp280.c:224
struct _bmp280_context * bmp280_context
uint8_t bmp280_get_status(const bmp280_context dev)
Definition: bmp280.c:680
void bmp280_set_measure_mode(const bmp280_context dev, BMP280_MODES_T mode)
Definition: bmp280.c:623
upm_result_t bmp280_update(const bmp280_context dev)
Definition: bmp280.c:359
void bmp280_set_oversample_rate_pressure(const bmp280_context dev, BMP280_OSRS_P_T rate)
Definition: bmp280.c:637
void bmp280_set_oversample_rate_humidity(const bmp280_context dev, BME280_OSRS_H_T rate)
Definition: bmp280.c:664
uint8_t bmp280_get_chip_id(const bmp280_context dev)
Definition: bmp280.c:558
uint8_t bmp280_read_reg(const bmp280_context dev, uint8_t reg)
Definition: bmp280.c:454
void bmp280_set_filter(const bmp280_context dev, BMP280_FILTER_T filter)
Definition: bmp280.c:598
float bmp280_get_temperature(const bmp280_context dev)
Definition: bmp280.c:573
float bmp280_get_altitude(const bmp280_context dev)
Definition: bmp280.c:445
void bmp280_set_oversample_rate_temperature(const bmp280_context dev, BMP280_OSRS_T_T rate)
Definition: bmp280.c:650
upm_result_t bmp280_write_reg(const bmp280_context dev, uint8_t reg, uint8_t val)
Definition: bmp280.c:524
int bmp280_read_regs(const bmp280_context dev, uint8_t reg, uint8_t *buffer, int len)
Definition: bmp280.c:482
void bmp280_set_usage_mode(const bmp280_context dev, BMP280_USAGE_MODE_T mode)
Definition: bmp280.c:687
float bmp280_get_pressure(const bmp280_context dev)
Definition: bmp280.c:580
void bmp280_close(bmp280_context dev)
Definition: bmp280.c:343
void bmp280_reset(const bmp280_context dev)
Definition: bmp280.c:565
void bmp280_set_timer_standby(const bmp280_context dev, BMP280_T_SB_T tsb)
Definition: bmp280.c:610
float bmp280_get_humidity(const bmp280_context dev)
Definition: bmp280.c:588
void bmp280_set_sea_level_pressure(const bmp280_context dev, float seaLevelhPA)
Definition: bmp280.c:437