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

Driver for MPL3115A2 baro sensor. More...

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

Go to the source code of this file.

Functions

void mpl3115_init (struct Mpl3115 *mpl, struct i2c_periph *i2c_p, uint8_t addr)
 
static void mpl3115_send_config (struct Mpl3115 *mpl)
 
void mpl3115_configure (struct Mpl3115 *mpl)
 
void mpl3115_read (struct Mpl3115 *mpl)
 
void mpl3115_event (struct Mpl3115 *mpl)
 
void mpl3115_periodic (struct Mpl3115 *mpl)
 

Detailed Description

Driver for MPL3115A2 baro sensor.

Definition in file mpl3115.c.

Function Documentation

void mpl3115_configure ( struct Mpl3115 mpl)

Definition at line 81 of file mpl3115.c.

References I2CTransDone, I2CTransSuccess, Mpl3115::init_status, mpl3115_send_config(), MPL_CONF_UNINIT, i2c_transaction::status, and Mpl3115::trans.

Referenced by mpl3115_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mpl3115_periodic ( struct Mpl3115 mpl)

Definition at line 153 of file mpl3115.c.

References Mpl3115::initialized, mpl3115_configure(), and mpl3115_read().

Referenced by baro_mpl3115_read_periodic(), and baro_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mpl3115_read ( struct Mpl3115 mpl)