|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
61 #define BARO_ABS_ADDR 0x90
63 #define BARO_DIFF_ADDR 0x92
66 #ifndef LISA_L_BARO_SENS
67 #define LISA_L_BARO_SENS 1.0
70 #ifndef LISA_L_DIFF_SENS
71 #define LISA_L_DIFF_SENS 1.0
159 #ifndef BARO_LOW_GAIN
160 INFO(
"Using High LisaL Baro Gain: Do not use below 1000hPa")
163 INFO(
"Using Low LisaL Baro Gain, capable of measuring below 1000hPa or more")
void lisa_l_baro_event(void)
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
static void baro_board_send_config_abs(void)
#define BARO_BOARD_SENDER_ID
default onboard baro
uint16_t len_r
Number of bytes to read/receive.
static void baro_board_set_current_register(uint8_t baro_addr, uint8_t reg_addr)
@ I2CTransTx
transmit only transaction
static void baro_board_read_from_current_register(uint8_t baro_addr)
static bool i2c_idle(struct i2c_periph *p)
Check if I2C bus is idle.
uint8_t len_w
Number of bytes to write/transmit.
@ I2CTransSuccess
transaction successfully finished by I2C driver
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
@ I2CTransRx
receive only transaction
@ LBS_INITIALIZING_DIFF_1
static void baro_board_send_config_diff(void)
enum I2CTransactionStatus status
Transaction status.
static void baro_board_write_to_register(uint8_t baro_addr, uint8_t reg_addr, uint8_t val_msb, uint8_t val_lsb)
struct i2c_transaction baro_trans
arch independent LED (Light Emitting Diodes) API
enum BaroBoardStatus status
@ I2CTransTxRx
transmit and receive transaction
I2C transaction structure.
uint8_t slave_addr
Slave address.
struct BaroBoard baro_board
@ I2CTransPending
transaction is pending in queue
static bool i2c_submit(struct i2c_periph *p, struct i2c_transaction *t)
Submit a I2C transaction.
static void baro_board_send_reset(void)
static void baro_board_read_from_register(uint8_t baro_addr, uint8_t reg_addr)
enum I2CTransactionType type
Transaction type.