36 #include "pprzlink/messages.h"
40 #ifndef DPICCO_I2C_DEV
41 #define DPICCO_I2C_DEV i2c0
44 #define DPICCO_SLAVE_ADDR 0xF0
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.
@ I2CTransSuccess
transaction successfully finished by I2C driver
@ I2CTransDone
transaction set to done by user level
I2C transaction structure.
#define DPICCO_SLAVE_ADDR
struct i2c_transaction dpicco_trans
void dpicco_periodic(void)
DigiPicco I2C sensor interface.
#define DPICCO_TEMP_RANGE
#define DPICCO_HUMID_RANGE
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
arch independent LED (Light Emitting Diodes) API
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.