Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
baro_board.h File Reference
#include "std.h"
#include "mcu_periph/i2c.h"
+ Include dependency graph for baro_board.h:

Go to the source code of this file.

Data Structures

struct  BaroBoard
 

Macros

#define BaroEvent(_b_abs_handler, _b_diff_handler)
 

Enumerations

enum  LisaBaroStatus {
  LBS_UNINITIALIZED, LBS_RESETED, LBS_INITIALIZING_ABS, LBS_INITIALIZING_ABS_1,
  LBS_INITIALIZING_DIFF, LBS_INITIALIZING_DIFF_1, LBS_IDLE, LBS_READING_ABS,
  LBS_READ_ABS, LBS_READING_DIFF, LBS_READ_DIFF, LBS_UNINITIALIZED,
  LBS_REQUEST, LBS_READING, LBS_READ, LBS_REQUEST_TEMP,
  LBS_READING_TEMP, LBS_READ_TEMP
}
 

Functions

void baro_board_send_reset (void)
 
void baro_board_send_config_abs (void)
 
void baro_board_send_config_diff (void)
 

Variables

struct BaroBoard baro_board
 
struct i2c_transaction baro_trans
 

Macro Definition Documentation

#define BaroEvent (   _b_abs_handler,
  _b_diff_handler 
)
Value:
{ \
baro.absolute = tmp; \
_b_abs_handler(); \
} \
} \
_b_diff_handler(); \
} \
} \
}
if(PrimarySpektrumState.SpektrumTimer)--PrimarySpektrumState.SpektrumTimer
struct BaroBoard baro_board
Definition: baro_board.c:35
int32_t absolute
Definition: baro.h:41
int32_t differential
Definition: baro.h:42
signed short int16_t
Definition: types.h:17
enum I2CTransactionStatus status
Definition: i2c.h:83
volatile uint8_t buf[I2C_BUF_LEN]
Definition: i2c.h:82
struct Baro baro
Definition: baro_board.c:36
struct i2c_transaction baro_trans
Definition: baro_board.c:6
enum LisaBaroStatus status
Definition: baro_board.h:28

Definition at line 38 of file baro_board.h.

Enumeration Type Documentation

Enumerator
LBS_UNINITIALIZED 
LBS_RESETED 
LBS_INITIALIZING_ABS 
LBS_INITIALIZING_ABS_1 
LBS_INITIALIZING_DIFF 
LBS_INITIALIZING_DIFF_1 
LBS_IDLE 
LBS_READING_ABS 
LBS_READ_ABS 
LBS_READING_DIFF 
LBS_READ_DIFF 
LBS_UNINITIALIZED 
LBS_REQUEST 
LBS_READING 
LBS_READ 
LBS_REQUEST_TEMP 
LBS_READING_TEMP 
LBS_READ_TEMP 

Definition at line 13 of file baro_board.h.

Function Documentation

void baro_board_send_config_abs ( void  )

Definition at line 69 of file baro_board.c.

References BARO_ABS_ADDR, and baro_board_write_to_register().

Referenced by baro_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void baro_board_send_config_diff ( void  )

Definition at line 80 of file baro_board.c.

References baro_board_write_to_register(), and BARO_DIFF_ADDR.

Referenced by baro_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void baro_board_send_reset ( void  )

Definition at line 84 of file baro_board.c.

Variable Documentation

struct BaroBoard baro_board

Definition at line 35 of file baro_board.c.

struct i2c_transaction baro_trans

Definition at line 6 of file baro_board.c.