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
157 #ifndef BARO_LOW_GAIN
158 INFO(
"Using High LisaL Baro Gain: Do not use below 1000hPa")
161 INFO(
"Using Low LisaL Baro Gain, capable of measuring below 1000hPa or more")
struct BaroBoard baro_board
static void baro_board_read_from_current_register(uint8_t baro_addr)
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
Common barometric sensor implementation.
uint16_t len_r
Number of bytes to read/receive.
transaction successfully finished by I2C driver
transmit and receive transaction
Main include for ABI (AirBorneInterface).
static void baro_board_write_to_register(uint8_t baro_addr, uint8_t reg_addr, uint8_t val_msb, uint8_t val_lsb)
bool i2c_idle(struct i2c_periph *p)
i2c_idle() function
void lisa_l_baro_event(void)
uint8_t len_w
Number of bytes to write/transmit.
static void baro_board_read_from_register(uint8_t baro_addr, uint8_t reg_addr)
enum BaroBoardStatus status
bool i2c_submit(struct i2c_periph *p, struct i2c_transaction *t)
i2c_submit() function
#define BARO_BOARD_SENDER_ID
default onboard baro
I2C transaction structure.
enum I2CTransactionStatus status
Transaction status.
uint8_t slave_addr
Slave address.
static void baro_board_send_config_abs(void)
struct i2c_transaction baro_trans
transmit only transaction
arch independent LED (Light Emitting Diodes) API
static void baro_board_set_current_register(uint8_t baro_addr, uint8_t reg_addr)
enum I2CTransactionType type
Transaction type.
static void baro_board_send_config_diff(void)
static void baro_board_send_reset(void)
transaction is pending in queue
Architecture independent I2C (Inter-Integrated Circuit Bus) API.