Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ms5611.c File Reference

MS5611 barometer driver common functions (I2C and SPI). More...

#include "peripherals/ms5611.h"
#include "std.h"
+ Include dependency graph for ms5611.c:

Go to the source code of this file.

Functions

bool_t ms5611_prom_crc_ok (uint16_t *prom)
 Check if CRC of PROM data is OK. More...
 
bool_t ms5611_calc (struct Ms5611Data *ms)
 Calculate temperature and compensated pressure. More...
 

Detailed Description

MS5611 barometer driver common functions (I2C and SPI).

Definition in file ms5611.c.

Function Documentation

bool_t ms5611_calc ( struct Ms5611Data ms)

Calculate temperature and compensated pressure.

Returns
TRUE if measurement was valid, FALSE otherwise

Definition at line 63 of file ms5611.c.

References Ms5611Data::c, Ms5611Data::d1, Ms5611Data::d2, dt, FALSE, p, Ms5611Data::pressure, Ms5611Data::temperature, and TRUE.

Referenced by ms5611_i2c_event(), and ms5611_spi_event().

+ Here is the caller graph for this function:

bool_t ms5611_prom_crc_ok ( uint16_t prom)

Check if CRC of PROM data is OK.

Returns
TRUE if OK, FALSE otherwise

Definition at line 36 of file ms5611.c.

References crc, FALSE, and TRUE.

Referenced by ms5611_i2c_event(), and ms5611_spi_event().

+ Here is the caller graph for this function: