IZAR Flight Controller 1.0.0
IZAR Flight Controller running with an ESP32.
ms5611.h File Reference
#include <stdint.h>
#include <i2cdev.h>
#include <esp_err.h>
Include dependency graph for ms5611.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ms5611_config_data_t
struct  ms5611_t

Macros

#define MS5611_ADDR_CSB_HIGH   0x76
#define MS5611_ADDR_CSB_LOW   0x77

Enumerations

enum  ms5611_osr_t {
  MS5611_OSR_256 = 0x00 , MS5611_OSR_512 = 0x02 , MS5611_OSR_1024 = 0x04 , MS5611_OSR_2048 = 0x06 ,
  MS5611_OSR_4096 = 0x08
}

Functions

esp_err_t ms5611_init_desc (ms5611_t *dev, uint8_t addr, i2c_port_t port, gpio_num_t sda_gpio, gpio_num_t scl_gpio)
 Initialize device descriptor.
esp_err_t ms5611_free_desc (ms5611_t *dev)
 Free device descriptor.
esp_err_t ms5611_init (ms5611_t *dev, ms5611_osr_t osr)
 Init MS5611-01BA03.
esp_err_t ms5611_get_sensor_data (ms5611_t *dev, int32_t *pressure, float *temperature)
 Measure pressure and temperature.