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

Airspeed driver for the SDP3X pressure sensor via I2C. More...

#include "std.h"
Include dependency graph for airspeed_sdp3x.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  AirspeedSdp3x

Functions

void sdp3x_init (void)
void sdp3x_periodic (void)
void sdp3x_event (void)

Variables

struct AirspeedSdp3x sdp3x

Detailed Description

Airspeed driver for the SDP3X pressure sensor via I2C.

Definition in file airspeed_sdp3x.h.


Data Structure Documentation

◆ AirspeedSdp3x

struct AirspeedSdp3x

Definition at line 30 of file airspeed_sdp3x.h.

Data Fields
bool initialized init flag
float pressure (differential) pressure in Pascal
float pressure_scale Scaling factor from raw measurement to Pascal.
float temperature Temperature in deg Celcius.

Function Documentation

◆ sdp3x_event()

void sdp3x_event ( void )
extern

◆ sdp3x_init()

void sdp3x_init ( void )
extern

Definition at line 89 of file airspeed_sdp3x.c.

References I2CTransDone, sdp3x, SDP3X_PRESSURE_SCALE, and sdp3x_trans.

◆ sdp3x_periodic()

void sdp3x_periodic ( void )
extern

Definition at line 99 of file airspeed_sdp3x.c.

References i2c_receive(), i2c_transmit(), I2CTransDone, sdp3x, SDP3X_I2C_ADDR, SDP3X_MODE, and sdp3x_trans.

Here is the call graph for this function:

Variable Documentation

◆ sdp3x

struct AirspeedSdp3x sdp3x
extern

Definition at line 64 of file airspeed_sdp3x.c.

Referenced by sdp3x_event(), sdp3x_init(), and sdp3x_periodic().