30 #include "pprzlink/messages.h"
34 #define BARO_HCA_ADDR 0xF0
35 #define BARO_HCA_MAX_PRESSURE 1100
36 #define BARO_HCA_MIN_PRESSURE 800
37 #define BARO_HCA_MAX_OUT 27852
38 #define BARO_HCA_MIN_OUT 1638
41 #ifndef BARO_HCA_SCALE
42 #define BARO_HCA_SCALE 1.0
46 #ifndef BARO_HCA_PRESSURE_OFFSET
47 #define BARO_HCA_PRESSURE_OFFSET 101325.0
50 #ifndef BARO_HCA_I2C_DEV
51 #define BARO_HCA_I2C_DEV i2c0
108 #ifdef SENSOR_SYNC_SEND
Main include for ABI (AirBorneInterface).
#define BARO_HCA_SENDER_ID
#define BARO_HCA_PRESSURE_OFFSET
void baro_hca_read_event(void)
void baro_hca_read_periodic(void)
struct i2c_transaction baro_hca_i2c_trans
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
Common code for AP and FBW telemetry.
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
enum I2CTransactionStatus status
Transaction status.
bool i2c_receive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint16_t len)
Submit a read only transaction.
@ I2CTransDone
transaction set to done by user level
I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.