16 #include "pprzlink/messages.h"
19 #ifndef SENSOR_SYNC_SEND
20 #warning set SENSOR_SYNC_SEND to use baro_scp_i2c
31 #define SCP_I2C_DEV i2c0
34 #define SCP1000_SLAVE_ADDR 0x22
107 #ifdef SENSOR_SYNC_SEND
Main include for ABI (AirBorneInterface).
#define BARO_SCP_SENDER_ID
#define SCP1000_SLAVE_ADDR
uint32_t baro_scp_pressure
static void baro_scp_start_high_res_measurement(void)
void baro_scp_event(void)
void baro_scp_periodic(void)
struct i2c_transaction scp_trans
uint16_t baro_scp_temperature
#define BARO_SCP_RD_PRESS_1
#define SCP1000_OPERATION
#define BARO_SCP_RD_PRESS_0
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_transmit(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len)
Submit a write only transaction.
bool i2c_transceive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint8_t len_w, uint16_t len_r)
Submit a write/read transaction.
@ I2CTransSuccess
transaction successfully finished by I2C driver
I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
arch independent LED (Light Emitting Diodes) API
Architecture independent timing functions.
volatile uint32_t nb_sec
full seconds since startup
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.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.