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")
Main include for ABI (AirBorneInterface).
#define BARO_BOARD_SENDER_ID
default onboard baro
Common barometric sensor implementation.
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
uint16_t len_r
Number of bytes to read/receive.
enum I2CTransactionType type
Transaction type.
enum I2CTransactionStatus status
Transaction status.
uint8_t slave_addr
Slave address.
uint8_t len_w
Number of bytes to write/transmit.
static bool i2c_submit(struct i2c_periph *p, struct i2c_transaction *t)
Submit a I2C transaction.
static bool i2c_idle(struct i2c_periph *p)
Check if I2C bus is idle.
@ I2CTransSuccess
transaction successfully finished by I2C driver
@ I2CTransPending
transaction is pending in queue
@ I2CTransRx
receive only transaction
@ I2CTransTx
transmit only transaction
@ I2CTransTxRx
transmit and receive transaction
I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
arch independent LED (Light Emitting Diodes) API
static void baro_board_send_reset(void)
static void baro_board_read_from_register(uint8_t baro_addr, uint8_t reg_addr)
enum LisaBaroStatus status
static void baro_board_send_config_diff(void)
static void baro_board_send_config_abs(void)
static void baro_board_write_to_register(uint8_t baro_addr, uint8_t reg_addr, uint8_t val_msb, uint8_t val_lsb)
void lisa_l_baro_event(void)
static void baro_board_read_from_current_register(uint8_t baro_addr)
struct BaroBoard baro_board
struct i2c_transaction baro_trans
static void baro_board_set_current_register(uint8_t baro_addr, uint8_t reg_addr)
@ LBS_INITIALIZING_DIFF_1
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.