|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
31 #include "pprzlink/messages.h"
35 #ifndef CHARGE_SENS_DEV
36 #define CHARGE_SENS_DEV i2c0
39 #define CHARGE_SENS_I2C_ADDR 0x78
volatile uint8_t buf[I2C_BUF_LEN]
Transaction buffer With I2C_BUF_LEN number of bytes.
void charge_sens_init(void)
struct i2c_transaction charge_trans
@ I2CTransSuccess
transaction successfully finished by I2C driver
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
#define CHARGE_SENS_I2C_ADDR
uint16_t charge[CHARGE_NB]
enum I2CTransactionStatus status
Transaction status.
void charge_sens_periodic(void)
I2C transaction structure.
Common code for AP and FBW telemetry.
void charge_sens_event(void)
@ I2CTransDone
transaction set to done by user level
bool i2c_receive(struct i2c_periph *p, struct i2c_transaction *t, uint8_t s_addr, uint16_t len)
Submit a read only transaction.