30 #include "pprzlink/messages.h"
34 #define BARO_HCA_ADDR 0xF0
35 #define BARO_HCA_MAX_PRESSURE 1100 // mBar
36 #define BARO_HCA_MIN_PRESSURE 800 // mBar
37 #define BARO_HCA_MAX_OUT 27852 //dec
38 #define BARO_HCA_MIN_OUT 1638 //dec
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
void baro_hca_read_event(void)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
Main include for ABI (AirBorneInterface).
struct i2c_transaction baro_hca_i2c_trans
#define BARO_HCA_SENDER_ID
#define BARO_HCA_PRESSURE_OFFSET
transaction set to done by user level
I2C transaction structure.
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.
Common code for AP and FBW telemetry.
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
void baro_hca_read_periodic(void)
Architecture independent I2C (Inter-Integrated Circuit Bus) API.