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

Infineon DPS310 I2C sensor interface. More...

#include "baro_dps310.h"
#include "modules/core/abi.h"
#include "mcu_periph/sys_time.h"
Include dependency graph for baro_dps310.c:

Go to the source code of this file.

Macros

#define DPS310_SLAVE_ADDR   DPS310_I2C_ADDR
 default slave address

Functions

void baro_dps310_init (void)
void baro_dps310_periodic (void)
void baro_dps310_event (void)

Variables

struct Dps310_I2c baro_dps310

Detailed Description

Infineon DPS310 I2C sensor interface.

This code reads the values for pressure and temperature from the Infineon DPS310 sensor over I2C.

Definition in file baro_dps310.c.

Macro Definition Documentation

◆ DPS310_SLAVE_ADDR

#define DPS310_SLAVE_ADDR   DPS310_I2C_ADDR

default slave address

Definition at line 36 of file baro_dps310.c.

Referenced by baro_dps310_init().

Function Documentation

◆ baro_dps310_event()

void baro_dps310_event ( void )

Definition at line 51 of file baro_dps310.c.

References baro_dps310, BARO_DPS310_SENDER_ID, dps310_i2c_event(), get_sys_time_usec(), and TEMPERATURE_TYPE_BARO.

Here is the call graph for this function:

◆ baro_dps310_init()

void baro_dps310_init ( void )

Definition at line 41 of file baro_dps310.c.

References baro_dps310, dps310_i2c_init(), and DPS310_SLAVE_ADDR.

Here is the call graph for this function:

◆ baro_dps310_periodic()

void baro_dps310_periodic ( void )

Definition at line 46 of file baro_dps310.c.

References baro_dps310, and dps310_i2c_periodic().

Here is the call graph for this function:

Variable Documentation

◆ baro_dps310

struct Dps310_I2c baro_dps310

Definition at line 39 of file baro_dps310.c.

Referenced by baro_dps310_event(), baro_dps310_init(), and baro_dps310_periodic().