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
106 #ifdef SENSOR_SYNC_SEND
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void baro_scp_event(void)
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
void baro_scp_periodic(void)
transaction successfully finished by I2C driver
Main include for ABI (AirBorneInterface).
uint16_t baro_scp_temperature
#define BARO_SCP_RD_PRESS_1
#define BARO_SCP_RD_PRESS_0
uint32_t baro_scp_pressure
#define BARO_SCP_SENDER_ID
Architecture independent timing functions.
static void baro_scp_start_high_res_measurement(void)
#define SCP1000_OPERATION
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.
I2C transaction structure.
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.
volatile uint32_t nb_sec
full seconds since startup
Common code for AP and FBW telemetry.
arch independent LED (Light Emitting Diodes) API
#define SCP1000_SLAVE_ADDR
struct i2c_transaction scp_trans
Architecture independent I2C (Inter-Integrated Circuit Bus) API.