Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
baro_mpl3115.c File Reference

Module for the baro MPL3115A2 from Freescale (i2c). More...

#include "modules/sensors/baro_mpl3115.h"
#include "peripherals/mpl3115.h"
#include "modules/core/abi.h"
#include "mcu_periph/sys_time.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "modules/datalink/downlink.h"
Include dependency graph for baro_mpl3115.c:

Go to the source code of this file.

Macros

#define BARO_MPL3115_I2C_DEV   i2c0
#define BARO_MPL3115_I2C_SLAVE_ADDR   MPL3115_I2C_ADDR

Functions

void baro_mpl3115_init (void)
void baro_mpl3115_read_periodic (void)
void baro_mpl3115_read_event (void)

Variables

struct Mpl3115 baro_mpl

Detailed Description

Module for the baro MPL3115A2 from Freescale (i2c).

Definition in file baro_mpl3115.c.

Macro Definition Documentation

◆ BARO_MPL3115_I2C_DEV

#define BARO_MPL3115_I2C_DEV   i2c0

Definition at line 41 of file baro_mpl3115.c.

Referenced by baro_mpl3115_init().

◆ BARO_MPL3115_I2C_SLAVE_ADDR

#define BARO_MPL3115_I2C_SLAVE_ADDR   MPL3115_I2C_ADDR

Definition at line 45 of file baro_mpl3115.c.

Referenced by baro_mpl3115_init().

Function Documentation

◆ baro_mpl3115_init()

void baro_mpl3115_init ( void )

Definition at line 51 of file baro_mpl3115.c.

References baro_mpl, BARO_MPL3115_I2C_DEV, BARO_MPL3115_I2C_SLAVE_ADDR, and mpl3115_init().

Here is the call graph for this function:

◆ baro_mpl3115_read_event()

void baro_mpl3115_read_event ( void )

Definition at line 63 of file baro_mpl3115.c.

References baro_mpl, BARO_MPL3115_SENDER_ID, get_sys_time_usec(), mpl3115_event(), Mpl3115::pressure, and TEMPERATURE_TYPE_BARO.

Here is the call graph for this function:

◆ baro_mpl3115_read_periodic()

void baro_mpl3115_read_periodic ( void )

Definition at line 57 of file baro_mpl3115.c.

References baro_mpl, and mpl3115_periodic().

Here is the call graph for this function:

Variable Documentation

◆ baro_mpl

struct Mpl3115 baro_mpl