Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
baro_board.c File Reference
+ Include dependency graph for baro_board.c:

Go to the source code of this file.

Macros

#define BARO_ABS_ADDR   0x90
 
#define BARO_DIFF_ADDR   0x92
 

Functions

static void baro_board_write_to_register (uint8_t baro_addr, uint8_t reg_addr, uint8_t val_msb, uint8_t val_lsb)
 
static void baro_board_read_from_register (uint8_t baro_addr, uint8_t reg_addr)
 
static void baro_board_set_current_register (uint8_t baro_addr, uint8_t reg_addr)
 
static void baro_board_read_from_current_register (uint8_t baro_addr)
 
void baro_init (void)
 
void baro_periodic (void)
 
void baro_board_send_config_abs (void)
 
void baro_board_send_config_diff (void)
 
void baro_board_send_reset (void)
 

Variables

struct Baro baro
 
struct BaroBoard baro_board
 
struct i2c_transaction baro_trans
 

Macro Definition Documentation

#define BARO_ABS_ADDR   0x90

Definition at line 14 of file baro_board.c.

Referenced by baro_board_send_config_abs(), and baro_periodic().

#define BARO_DIFF_ADDR   0x92

Definition at line 16 of file baro_board.c.

Referenced by baro_board_send_config_diff(), and baro_periodic().

Function Documentation

static void baro_board_read_from_current_register ( uint8_t  baro_addr)
inlinestatic

Definition at line 123 of file baro_board.c.

References baro_trans, i2c_submit(), I2CTransRx, i2c_transaction::len_r, i2c_transaction::slave_addr, and i2c_transaction::type.

Referenced by baro_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void baro_board_read_from_register ( uint8_t  baro_addr,
uint8_t  reg_addr 
)
inlinestatic
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.

Referenced by baro_periodic().

+ Here is the caller graph for this function:

static void baro_board_set_current_register ( uint8_t  baro_addr,
uint8_t  reg_addr 
)
inlinestatic

Definition at line 113 of file baro_board.c.

References baro_trans, i2c_transaction::buf, i2c_submit(), I2CTransTx, i2c_transaction::len_w, i2c_transaction::slave_addr, and i2c_transaction::type.

Referenced by baro_periodic().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void baro_board_write_to_register ( uint8_t  baro_addr,
uint8_t  reg_addr,
uint8_t  val_msb,
uint8_t  val_lsb 
)
inlinestatic

Definition at line 92 of file baro_board.c.

References baro_trans, i2c_transaction::buf, i2c_submit(), I2CTransTx, i2c_transaction::len_w, i2c_transaction::slave_addr, and i2c_transaction::type.

Referenced by baro_board_send_config_abs(), and baro_board_send_config_diff().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void baro_init ( void  )

Variable Documentation

struct Baro baro

Definition at line 4 of file baro_board.c.

struct BaroBoard baro_board

Definition at line 5 of file baro_board.c.