IZAR Flight Controller 1.0.0
IZAR Flight Controller running with an ESP32.
ms5611_c.h File Reference
#include "median.h"
#include "ms5611.h"
Include dependency graph for ms5611_c.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TAG_MS5611   "MS5611"
#define MS5611_OSR   MS5611_OSR_4096
#define MEDIAN_SIZE_PRS   50
#define MEDIAN_SIZE_TMP   50

Functions

esp_err_t ms5611_c_init (ms5611_t *dev)
 Initialize MS5611 descriptor for pressure and temperature readings.
void ms5611_read_pressure_temperature_and_altitude (ms5611_t *dev, int32_t *pressure, float *temperature, float *altitude)
 Read data from MS5611 and store pressure (Pa), temperature (ºC) and altitude (m) from sea level.

Macro Definition Documentation

◆ MEDIAN_SIZE_PRS

#define MEDIAN_SIZE_PRS   50

◆ MEDIAN_SIZE_TMP

#define MEDIAN_SIZE_TMP   50

◆ MS5611_OSR

#define MS5611_OSR   MS5611_OSR_4096

◆ TAG_MS5611

#define TAG_MS5611   "MS5611"

Function Documentation

◆ ms5611_c_init()

esp_err_t ms5611_c_init ( ms5611_t * dev)

Initialize MS5611 descriptor for pressure and temperature readings.

Parameters
devpointer where the descriptor will be stored.
Returns
esp_err_t ESP_OK if success.

< esp_err_t value indicating success (no error)

< esp_err_t value indicating success (no error)

< esp_err_t value indicating success (no error)

< esp_err_t value indicating success (no error)

< esp_err_t value indicating success (no error)

< esp_err_t value indicating success (no error)

< esp_err_t value indicating success (no error)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ms5611_read_pressure_temperature_and_altitude()

void ms5611_read_pressure_temperature_and_altitude ( ms5611_t * dev,
int32_t * pressure,
float * temperature,
float * altitude )

Read data from MS5611 and store pressure (Pa), temperature (ºC) and altitude (m) from sea level.

Parameters
devpointer to MS5611 device descriptor.
pressurepointer where pressure reading will be stored (Pa).
temperaturepointer where temperature reading will be stored (ºC).
altitudepointer where altitude estimation will be stored (m).

< esp_err_t value indicating success (no error)

Here is the call graph for this function:
Here is the caller graph for this function: